<Window.Resources> <ResourceDictionary> <CollectionViewSource x:Key="Credits" Source= "Credits" ... </Window.Resources> <Window.DataContext> <ViewModel:MainViewModel/> </Window.DataContext> <Grid > <controls:DataGridEx x:Name="dataGridEx" ItemsSource="{Binding Source=Credits}" CanUserAddRows="False"> ... <GroupStyle> <GroupStyle.ContainerStyle> ... <Expander.Content> <ItemsPresenter DataContext="{DynamicResource Credits}" /> </Expander.Content>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)