Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

  • Amanda Wang - MSFT

    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.

     

    Amanda Wang
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.