pavan machavarapu

pavan machavarapu

  • NA
  • 304
  • 18k

Items Control Topic Related

Aug 21 2019 1:22 AM
<DataGridTemplateColumn Header="MetMasts" Width="*" MinWidth="100">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate >
<ItemsControl ItemsSource="{Binding Source={StaticResource MetMasts}}" >
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel />
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.Resources>
<DataTemplate DataType="{x:Type Adapters:MetmastAssetAdapter}" >
<StackPanel Orientation="Horizontal">
<WrapPanel>
<CheckBox IsChecked="{Binding IsSelected }"/>
<TextBlock Text="{Binding Name}" Margin="2 0 0 0"/>
<Separator Width="30" Background="Transparent"></Separator>
</WrapPanel>
</StackPanel>
</DataTemplate>
</ItemsControl.Resources>
</ItemsControl>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
 
I have a code Like above Texted But My problem is When I'm selected any item Remaining Items are getting selected in checkBox but I need to select specific checkbox