This is the only way to modify the background of the selected row as there is no other way to remove the selected visual state.
As for nothing showing up when you open a window, please make sure you are using the NoXaml
dlls in your application. Additionally, you need to base your style
on the theme's default one by setting the BasedOn
property like in the sample project from my previous reply.
Do let me know how this goes. If you still come across the same issue, please send over the project you're using so that I can investigate and suggest a solution. I look forward to your reply.
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin
, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.