Will the changes of a property in a "StaticResource instance" reflected in UI ?
        Posted  
        
            by Anish
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Anish
        
        
        
        Published on 2010-06-01T05:04:34Z
        Indexed on 
            2010/06/01
            5:13 UTC
        
        
        Read the original article
        Hit count: 302
        
I have used object data provider to create instance of my view-model as below:
<ObjectDataProvider x:Key="Datas" ObjectType="{x:Type ViewModel:UserControlViewModel}">
</ObjectDataProvider>
<DataTemplate x:Key="SourceGrid">
<WPFToolKit:DataGrid x:Name="SourceDataGrid" ItemsSource="{Binding Source={StaticResource Datas},Path=SourceGridData}" CanUserSortColumns="True" GridLinesVisibility="None" IsSynchronizedWithCurrentItem="True" SelectionUnit="FullRow"></WPFToolKit:DataGrid>
</DataTemplate>
My question is... as I am using the instance - "Datas" as staticResource, will the changes to the property "SourceGridData" get reflected in UI?
ItemsSource="{Binding Source={StaticResource Datas},Path=SourceGridData}"
`
© Stack Overflow or respective owner