{"action":"opened","issue":{"url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/issues/411","repository_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit","labels_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/issues/411/labels{/name}","comments_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/issues/411/comments","events_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/issues/411/events","html_url":"https://github.com/ButchersBoy/MaterialDesignInXamlToolkit/issues/411","id":159958120,"number":411,"title":"Problem with handling primary toggle button action in PopupBox","user":{"login":"DominikPalo","id":1623257,"avatar_url":"https://avatars.githubusercontent.com/u/1623257?v=3","gravatar_id":"","url":"https://api.github.com/users/DominikPalo","html_url":"https://github.com/DominikPalo","followers_url":"https://api.github.com/users/DominikPalo/followers","following_url":"https://api.github.com/users/DominikPalo/following{/other_user}","gists_url":"https://api.github.com/users/DominikPalo/gists{/gist_id}","starred_url":"https://api.github.com/users/DominikPalo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DominikPalo/subscriptions","organizations_url":"https://api.github.com/users/DominikPalo/orgs","repos_url":"https://api.github.com/users/DominikPalo/repos","events_url":"https://api.github.com/users/DominikPalo/events{/privacy}","received_events_url":"https://api.github.com/users/DominikPalo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-13T14:05:09Z","updated_at":"2016-06-13T14:05:09Z","closed_at":null,"body":"I'm using the PopupBox component in my app, but I need to attach a command also on primary toggle button, which by default closes a popup. My expected behaviour is: When I place mouse over a `PART_Toggle`, popup is opened, but clicking on this button instead of closing popup executes my command. So, I copied the `MaterialDesignMultiFloatingActionPopupBox` style to my project and changed the line:\r\n\r\n```\r\n<ToggleButton x:Name=\"PART_Toggle\" Style=\"{StaticResource ToggleButtonStyle}\" \r\n IsChecked=\"{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsPopupOpen, Mode=TwoWay}\"...\r\n```\r\n\r\nto\r\n\r\n```\r\n<ToggleButton x:Name=\"PART_Toggle\" Style=\"{StaticResource ToggleButtonStyle}\"\r\n Command=\"{Binding MyPrimaryCommand}\"... \r\n```                                \r\n\r\nbut now, `MyPrimaryCommand` is executed only on second click on the ToggleButton and first click still closes the popup. It is possible to handle also first click without making changes in the `PopupBox` class?"}}
{"actor":{"display_login":"DominikPalo"}}