You can set the styles you want on the GridViewCell
element rather than on the GridViewRow
element, because some of the properties' setters won't be respected if you set them on the GridViewRow
(for example the TextDecoration
which is not inherited).
I am attaching a sample project where I have set the TextDecoration
property through a FrameworkElementFactory
to the each of the columns' CellTemplates
as suggested in this forum thread
. Can you take a look at it and let me know how it fits your scenario?
I am looking 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.