{"action":"closed","issue":{"url":"https://api.github.com/repos/MahApps/MahApps.Metro/issues/2856","repository_url":"https://api.github.com/repos/MahApps/MahApps.Metro","labels_url":"https://api.github.com/repos/MahApps/MahApps.Metro/issues/2856/labels{/name}","comments_url":"https://api.github.com/repos/MahApps/MahApps.Metro/issues/2856/comments","events_url":"https://api.github.com/repos/MahApps/MahApps.Metro/issues/2856/events","html_url":"https://github.com/MahApps/MahApps.Metro/issues/2856","id":207352542,"number":2856,"title":"[Question or Bug] ShowMessageAsync Highlight Buttons ","user":{"login":"BornToBeRoot","id":16019165,"avatar_url":"https://avatars.githubusercontent.com/u/16019165?v=3","gravatar_id":"","url":"https://api.github.com/users/BornToBeRoot","html_url":"https://github.com/BornToBeRoot","followers_url":"https://api.github.com/users/BornToBeRoot/followers","following_url":"https://api.github.com/users/BornToBeRoot/following{/other_user}","gists_url":"https://api.github.com/users/BornToBeRoot/gists{/gist_id}","starred_url":"https://api.github.com/users/BornToBeRoot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BornToBeRoot/subscriptions","organizations_url":"https://api.github.com/users/BornToBeRoot/orgs","repos_url":"https://api.github.com/users/BornToBeRoot/repos","events_url":"https://api.github.com/users/BornToBeRoot/events{/privacy}","received_events_url":"https://api.github.com/users/BornToBeRoot/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-02-13T22:01:46Z","updated_at":"2017-02-16T17:20:48Z","closed_at":"2017-02-16T17:20:48Z","body":"The colors of the buttons should be swapped.\r\n\r\n## What steps will reproduce this issue?\r\n\r\nWhen calling the follwing code: \r\n\r\n```csharp\r\n MetroDialogSettings dialogSettings = new MetroDialogSettings();\r\n\r\n                dialogSettings.CustomResourceDictionary = new ResourceDictionary\r\n                {\r\n                    Source = new Uri(\"NETworkManager;component/Resources/Styles/MetroDialogStyles.xaml\", UriKind.RelativeOrAbsolute)\r\n                };\r\n\r\n                await dialogCoordinator.ShowMessageAsync(this, \"Error\", \"Could not resolve host name\", MessageDialogStyle.AffirmativeAndNegative,dialogSettings)\r\n```\r\n\r\nMetroDialogStyles.xaml\r\n```xaml\r\n<Style BasedOn=\"{StaticResource MetroFlatButton}\" TargetType=\"{x:Type Button}\" />\r\n\r\n    <Style x:Key=\"AccentedDialogSquareButton\"\r\n           BasedOn=\"{StaticResource MetroFlatButton}\"\r\n           TargetType=\"{x:Type Button}\">\r\n        <Setter Property=\"Foreground\" Value=\"{DynamicResource WhiteColorBrush}\" />\r\n        <Setter Property=\"Background\" Value=\"{DynamicResource AccentColorBrush}\" />\r\n    </Style>\r\n\r\n    <Style x:Key=\"AccentedDialogHighlightedSquareButton\"\r\n           BasedOn=\"{StaticResource MetroFlatButton}\"\r\n           TargetType=\"{x:Type Button}\">\r\n        <Setter Property=\"Foreground\" Value=\"{DynamicResource WhiteColorBrush}\" />\r\n        <Setter Property=\"Background\" Value=\"{DynamicResource HighlightBrush}\" />\r\n    </Style>\r\n```\r\n\r\nIt looks like this:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/16019165/22905191/b54538f8-f23f-11e6-8caa-a01ccbf76dac.png)\r\n\r\nShouldn't be the OK-Button highlighted? \r\n\r\n### Expected outcome\r\n\r\nThe \"OK\" Button should be highlighted... \r\n\r\n### Repo\r\n\r\nhttps://github.com/BornToBeRoot/NETworkManager\r\n\r\n### Environment\r\n\r\n- MahApps.Metro __v1.4.3__\r\n- Windows OS __10__\r\n- Visual Studio __2015__\r\n- .NET Framework __4.5/4.6__\r\n"}}
{"actor":{"display_login":"BornToBeRoot"}}