Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Style x:Key="ListBoxStyleCheckBox" TargetType="{x:Type ListBox}" BasedOn="{StaticResource ListBoxStyle}" >
- <Setter Property="SelectionMode" Value="Multiple"></Setter>
- <Setter Property="ItemContainerStyle">
- <Setter.Value>
- <Style TargetType="{x:Type ListBoxItem}" BasedOn="{StaticResource BaseListBoxItem}" >
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ListBoxItem}" >
- <CheckBox x:Name="PART_CheckBox" Focusable="False" Margin="10,5,10,0"
- IsChecked="{Binding Path=IsSelected, Mode=TwoWay}" Style="{DynamicResource CheckboxStyleImg}">
- <ContentPresenter TextBlock.Foreground="{DynamicResource ClrText}"></ContentPresenter>
- </CheckBox>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </Setter.Value>
- </Setter>
- </Style>
- <ListBox BorderThickness="0" x:Name="lbBearbStatus" Grid.Row="2" Style="{DynamicResource ListBoxStyleCheckBox}" ></ListBox>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement