{"action":"created","issue":{"url":"https://api.github.com/repos/fluentribbon/Fluent.Ribbon/issues/357","repository_url":"https://api.github.com/repos/fluentribbon/Fluent.Ribbon","labels_url":"https://api.github.com/repos/fluentribbon/Fluent.Ribbon/issues/357/labels{/name}","comments_url":"https://api.github.com/repos/fluentribbon/Fluent.Ribbon/issues/357/comments","events_url":"https://api.github.com/repos/fluentribbon/Fluent.Ribbon/issues/357/events","html_url":"https://github.com/fluentribbon/Fluent.Ribbon/issues/357","id":180850444,"number":357,"title":"KeyTips for standard controls","user":{"login":"the-madcat","id":7498367,"avatar_url":"https://avatars.githubusercontent.com/u/7498367?v=3","gravatar_id":"","url":"https://api.github.com/users/the-madcat","html_url":"https://github.com/the-madcat","followers_url":"https://api.github.com/users/the-madcat/followers","following_url":"https://api.github.com/users/the-madcat/following{/other_user}","gists_url":"https://api.github.com/users/the-madcat/gists{/gist_id}","starred_url":"https://api.github.com/users/the-madcat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-madcat/subscriptions","organizations_url":"https://api.github.com/users/the-madcat/orgs","repos_url":"https://api.github.com/users/the-madcat/repos","events_url":"https://api.github.com/users/the-madcat/events{/privacy}","received_events_url":"https://api.github.com/users/the-madcat/received_events","type":"User","site_admin":false},"labels":[{"id":144239833,"url":"https://api.github.com/repos/fluentribbon/Fluent.Ribbon/labels/bug","name":"bug","color":"fc2929","default":true},{"id":144239836,"url":"https://api.github.com/repos/fluentribbon/Fluent.Ribbon/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-10-04T09:54:07Z","updated_at":"2016-10-29T15:06:10Z","closed_at":null,"body":"Hi use __Fluent.Ribbon__ for the first time and it looks great but I need to show a __[Slider](https://msdn.microsoft.com/de-de/library/system.windows.controls.slider(v=vs.110).aspx)__ on a __RibbonGroupBox__ and want to add a __KeyTip__ in order to focus it (just for the sake of completeness). Is there a possibility to do that in __XAML__?\r\n\r\n--\r\n### Environment\r\n\r\n- Fluent.Ribbon __v4.0.3.394__\r\n- Theme __Office2013__ (not needed in version 5.0 and upwards)\r\n- Windows __8.1__\r\n- .NET Framework __4.5__\r\n"},"comment":{"url":"https://api.github.com/repos/fluentribbon/Fluent.Ribbon/issues/comments/257096595","html_url":"https://github.com/fluentribbon/Fluent.Ribbon/issues/357#issuecomment-257096595","issue_url":"https://api.github.com/repos/fluentribbon/Fluent.Ribbon/issues/357","id":257096595,"user":{"login":"the-madcat","id":7498367,"avatar_url":"https://avatars.githubusercontent.com/u/7498367?v=3","gravatar_id":"","url":"https://api.github.com/users/the-madcat","html_url":"https://github.com/the-madcat","followers_url":"https://api.github.com/users/the-madcat/followers","following_url":"https://api.github.com/users/the-madcat/following{/other_user}","gists_url":"https://api.github.com/users/the-madcat/gists{/gist_id}","starred_url":"https://api.github.com/users/the-madcat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-madcat/subscriptions","organizations_url":"https://api.github.com/users/the-madcat/orgs","repos_url":"https://api.github.com/users/the-madcat/repos","events_url":"https://api.github.com/users/the-madcat/events{/privacy}","received_events_url":"https://api.github.com/users/the-madcat/received_events","type":"User","site_admin":false},"created_at":"2016-10-29T15:06:10Z","updated_at":"2016-10-29T15:06:10Z","body":"Right now I have not that much time but after a bit of debugging I can say this:\r\n\r\nIn your `Fluent.KeyTipAdorner` there is a method called `UpdateKeyTipPositions()`.\r\n\r\nIn case of no auto placement this method goes through a couple of possible cases like if the associated element is a `DialogLauncherButton` or if it is within a `RibbonGallery` and so on.\r\n\r\nIf none of these cases is `true` there is a last condition that checks if the size of the associated element is not `RibbonControlSize.Large` and if the associated element is not a `Spinner`, `ComboBox`, `TextBox` or `CheckBox`. I admit that I did not check this code very thoroughly but the conditions suggest that this case should handle all `KeyTip` placements for controls shaped like a `TextBox`.\r\nThe other case seems to handle all controls with a size set to `RibbonControlSize.Large` like a `Button`.\r\n\r\nNow because I did not change the size of my `KeyTipedSlider` and because it is neither a `Spinner`, `ComboBox`, `TextBox` or a `CheckBox` it is handled like a button. I have no idea why it works without a button in previous position but I know that setting the `Size` to `RibbonControlSize.Middle` will do the trick."}}
{"actor":{"display_login":"the-madcat"}}