{"action":"closed","issue":{"url":"https://api.github.com/repos/MahApps/MahApps.Metro/issues/1728","labels_url":"https://api.github.com/repos/MahApps/MahApps.Metro/issues/1728/labels{/name}","comments_url":"https://api.github.com/repos/MahApps/MahApps.Metro/issues/1728/comments","events_url":"https://api.github.com/repos/MahApps/MahApps.Metro/issues/1728/events","html_url":"https://github.com/MahApps/MahApps.Metro/issues/1728","id":53305550,"number":1728,"title":"DataGrid Selection Color Disappearing","user":{"login":"Camuvingian","id":4823601,"avatar_url":"https://avatars.githubusercontent.com/u/4823601?v=3","gravatar_id":"","url":"https://api.github.com/users/Camuvingian","html_url":"https://github.com/Camuvingian","followers_url":"https://api.github.com/users/Camuvingian/followers","following_url":"https://api.github.com/users/Camuvingian/following{/other_user}","gists_url":"https://api.github.com/users/Camuvingian/gists{/gist_id}","starred_url":"https://api.github.com/users/Camuvingian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Camuvingian/subscriptions","organizations_url":"https://api.github.com/users/Camuvingian/orgs","repos_url":"https://api.github.com/users/Camuvingian/repos","events_url":"https://api.github.com/users/Camuvingian/events{/privacy}","received_events_url":"https://api.github.com/users/Camuvingian/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/MahApps/MahApps.Metro/labels/Bug","name":"Bug","color":"FF5721"}],"state":"closed","locked":false,"assignee":{"login":"punker76","id":658431,"avatar_url":"https://avatars.githubusercontent.com/u/658431?v=3","gravatar_id":"","url":"https://api.github.com/users/punker76","html_url":"https://github.com/punker76","followers_url":"https://api.github.com/users/punker76/followers","following_url":"https://api.github.com/users/punker76/following{/other_user}","gists_url":"https://api.github.com/users/punker76/gists{/gist_id}","starred_url":"https://api.github.com/users/punker76/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/punker76/subscriptions","organizations_url":"https://api.github.com/users/punker76/orgs","repos_url":"https://api.github.com/users/punker76/repos","events_url":"https://api.github.com/users/punker76/events{/privacy}","received_events_url":"https://api.github.com/users/punker76/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/MahApps/MahApps.Metro/milestones/13","labels_url":"https://api.github.com/repos/MahApps/MahApps.Metro/milestones/13/labels","id":892163,"number":13,"title":"1.1.0","description":"bugfix and minor features milestone","creator":{"login":"punker76","id":658431,"avatar_url":"https://avatars.githubusercontent.com/u/658431?v=3","gravatar_id":"","url":"https://api.github.com/users/punker76","html_url":"https://github.com/punker76","followers_url":"https://api.github.com/users/punker76/followers","following_url":"https://api.github.com/users/punker76/following{/other_user}","gists_url":"https://api.github.com/users/punker76/gists{/gist_id}","starred_url":"https://api.github.com/users/punker76/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/punker76/subscriptions","organizations_url":"https://api.github.com/users/punker76/orgs","repos_url":"https://api.github.com/users/punker76/repos","events_url":"https://api.github.com/users/punker76/events{/privacy}","received_events_url":"https://api.github.com/users/punker76/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":42,"state":"open","created_at":"2014-12-04T21:42:33Z","updated_at":"2015-02-24T16:30:01Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-01-03T14:40:06Z","updated_at":"2015-02-24T16:30:01Z","closed_at":"2015-02-24T16:30:01Z","body":"I have a control which is essentially a `DataGrid`. These get housed on separate tabs in a `TabControl` via AvalonDock. The selection color is set correctly when each tab is loaded pre-MahApps V1.0.0.0, however having now updated to V1.0.0.0, when I switch tabs and then back to the previous one, the selected highlight color disappears, like the fore-color and background-color have both been set to transparent/white. See \r\n\r\n![datagridselectionerror](https://cloud.githubusercontent.com/assets/4823601/5602669/fe5fc562-9355-11e4-8270-e87224a0f953.gif)\r\n\r\nYou can see when I select a different tab and return the selection color is changed and then when I scroll out and back into view the selection coloring returns. This seems like a virtualisation issue, but it is a problem that I can fix by setting options on my `DataGrid`. For reference, the XAML for this control is \r\n\r\n\t<DataGrid x:Name=\"CoreGrid\"\r\n\t\t\t\t Panel.ZIndex=\"0\"\r\n\t\t\t\t HorizontalAlignment=\"Stretch\"\r\n\t\t\t\t VerticalAlignment=\"Stretch\"\r\n\t\t\t\t AutoGenerateColumns=\"True\" \r\n\t\t\t\t CanUserAddRows=\"False\" \r\n\t\t\t\t CanUserDeleteRows=\"True\"\r\n\t\t\t\t SelectionUnit=\"Cell\"\r\n\t\t\t\t EnableRowVirtualization=\"True\" \r\n\t\t\t\t EnableColumnVirtualization=\"True\" \r\n\t\t\t\t VirtualizingStackPanel.VirtualizationMode=\"Recycling\" \r\n\t\t\t\t SelectedItem=\"{Binding SelectedItem, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}\"\r\n\t\t\t\t GridLinesVisibility=\"{Binding GridLinesVisibility}\"\r\n\t\t\t\t Caliburn:Message.Attach=\"\r\n\t\t\t\t\t[Event CellEditEnding] = [Action CellEditEnding($this, $eventArgs)]; \r\n\t\t\t\t\t[Event SelectedCellsChanged] = [Action SelectedCellsChanged($this, $eventArgs)]\">\r\n\t\t<Interactivity:Interaction.Behaviors>\r\n\t\t\t<Behaviors:BindableSelectedItemsBehavior\r\n\t\t\t\tSelectedItems=\"{Binding SelectedItems, Mode=TwoWay}\"/>\r\n\t\t</Interactivity:Interaction.Behaviors>\t\r\n\t\t...\r\n\t</DataGrid>\r\n\t\r\nI can confirm that this problem does not occur when I use the previous version of MahApps. How can I prevent the selection/highlight color disappearing?\r\n\r\nThanks for your time."}}