Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <DataTemplate DataType="{x:Type vm:CheckboxAttributeViewModel}">
- <Grid Margin="3,3,0,0">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="115"/>
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <Border Grid.Column="0" CornerRadius="10,0,0,10" Background="#4E8FB7" BorderThickness="0" BorderBrush="#4E8FB7">
- <TextBlock Foreground="#FFFFFF" FontWeight="Bold" FontSize="13" FontFamily="Arial"
- Margin="5,0,0,0" VerticalAlignment="Center" Text="{Binding DisplayName}">
- </TextBlock>
- </Border>
- <ItemsControl ItemsSource="{Binding CheckBoxes}" Grid.Column="1" Margin="0,0,5,0">
- <ItemsControl.ItemsPanel>
- <ItemsPanelTemplate>
- <StackPanel Orientation="Vertical" Margin="3,3,0,3" Background="LightBlue"/>
- </ItemsPanelTemplate>
- </ItemsControl.ItemsPanel>
- <ItemsControl.Template>
- <ControlTemplate>
- <Border BorderThickness="1" BorderBrush="#4E8FB7" CornerRadius="0,5,5,0">
- <ItemsPresenter />
- </Border>
- </ControlTemplate>
- </ItemsControl.Template>
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <Border HorizontalAlignment="Stretch" Margin="5,2,2,2">
- <CheckBox IsChecked="{Binding isChecked, Mode=TwoWay}" Content="{Binding Text}"
- FontFamily="Arial" FontWeight="Bold" Foreground="{StaticResource ResourceKey=HeaderForeground}"/>
- </Border>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>
- </Grid>
- </DataTemplate>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement