Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. <Style x:Key="ListBoxStyleCheckBox" TargetType="{x:Type ListBox}" BasedOn="{StaticResource ListBoxStyle}" >
  2. <Setter Property="SelectionMode" Value="Multiple"></Setter>
  3. <Setter Property="ItemContainerStyle">
  4. <Setter.Value>
  5. <Style TargetType="{x:Type ListBoxItem}" BasedOn="{StaticResource BaseListBoxItem}" >
  6. <Setter Property="Template">
  7. <Setter.Value>
  8. <ControlTemplate TargetType="{x:Type ListBoxItem}" >
  9. <CheckBox x:Name="PART_CheckBox" Focusable="False" Margin="10,5,10,0"
  10. IsChecked="{Binding Path=IsSelected, Mode=TwoWay}" Style="{DynamicResource CheckboxStyleImg}">
  11. <ContentPresenter TextBlock.Foreground="{DynamicResource ClrText}"></ContentPresenter>
  12. </CheckBox>
  13. </ControlTemplate>
  14. </Setter.Value>
  15. </Setter>
  16. </Style>
  17. </Setter.Value>
  18. </Setter>
  19. </Style>
  20.  
  21. <ListBox BorderThickness="0" x:Name="lbBearbStatus" Grid.Row="2" Style="{DynamicResource ListBoxStyleCheckBox}" ></ListBox>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement