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.
Up arrow icon