Sign In|Join
Home/Silverlight.NET Forums/Programming with .NET - General/Alignment in DataGrid Control/Re: Alignment in DataGrid Control
All-Star
17236 Points
1466 Posts
Nov 20, 2008 04:51 AM | LINK
Hi,
If you want to refer the styles in the app.xaml, you can use the code like this: App.Current.Resources["AlignCenter"] as Style
If you use this code: Resources["AlignCenter"] as Style; which only can get the locally defined resource.
Amanda Wang...
All-Star
17236 Points
1466 Posts
Re: Alignment in DataGrid Control
Nov 20, 2008 04:51 AM | LINK
Hi,
If you want to refer the styles in the app.xaml, you can use the code like this: App.Current.Resources["AlignCenter"] as Style
If you use this code: Resources["AlignCenter"] as Style; which only can get the locally defined resource.
Microsoft Online Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help.