We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Best practices for styling the grid

Is there a way to reference brushes defined in XAML (i.e. a ResourceDictionary) when styling a particular cell on a virtual grid. For something as simple as creating a highlight background color for every other row can easily be accomplished by mod 2 the row index and then set the e.Style.Background brush to the desired color but I'm wondering if there's some solution that allows me to define these brushes declaratively in XAML.


1 Reply

AD Administrator Syncfusion Team August 18, 2008 11:45 PM UTC

Here is a little sample that loads a brush from a Xaml resource and uses it to color odd rows.

http://www.syncfusion.com/support/user/uploads/XamlBrushes_1a2fc991.zip


Loader.
Live Chat Icon For mobile
Up arrow icon