I have a CellStyleSelector that is used in multiples datagrids and I want to code it once. Currently it is in each view as a grid.resource. Any pointers on where and how it should be coded to make it a global resource.
This is the CellStyleSelector
This is the CellStyleSelector
<
Selectors:AdjCellStyleSelector
x:Key
=
"adjCellStyleSelector"
>
<
Selectors:AdjCellStyleSelector.NormalStyle
>
<
Style
TargetType
=
"telerik:GridViewCell"
>
<
Setter
Property
=
"Background"
Value
=
"Transparent"
/>
</
Style
>
</
Selectors:AdjCellStyleSelector.NormalStyle
>
<
Selectors:AdjCellStyleSelector.AdjStyle
>
<
Style
TargetType
=
"telerik:GridViewCell"
>
<
Setter
Property
=
"Background"
Value
=
"PeachPuff"
/>
</
Style
>
</
Selectors:AdjCellStyleSelector.AdjStyle
>
</
Selectors:AdjCellStyleSelector
>