silverlight DataGrid style
Posted
by Piyush
on Stack Overflow
See other posts from Stack Overflow
or by Piyush
Published on 2010-04-16T13:56:23Z
Indexed on
2010/04/16
21:13 UTC
Read the original article
Hit count: 360
silverlight-3.0
|Silverlight
my Datagrid is:
<data:DataGrid x:Name="dgSearchResults" Style="{StaticResource dgStyle}" Grid.Row="1" ColumnHeaderStyle="{StaticResource dgHeaderStyle}" >
I have defined styles in my App.xaml file:
<Style x:Key="dgStyle" TargetType="data:DataGrid">
<Setter Property="Background" Value="White"/>
<Setter Property="RowBackground" Value="#FFF6F6F6"/>
<Setter Property="Foreground" Value="#FF3A3B3B"/>
<Setter Property="FontFamily" Value="Verdana"/>
<Setter Property="FontSize" Value="13.333"/>
</Style>
EXCEPTION--> Invalid attribute value data:DataGrid for property TargetType. [Line: 61 Position: 43]
© Stack Overflow or respective owner