Advertisement
Guest User

Untitled

a guest
May 19th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.91 KB | None | 0 0
  1. <DataTemplate DataType="{x:Type vm:CheckboxAttributeViewModel}">
  2.         <Grid  Margin="3,3,0,0">
  3.             <Grid.ColumnDefinitions>
  4.                 <ColumnDefinition Width="115"/>
  5.                 <ColumnDefinition />
  6.             </Grid.ColumnDefinitions>
  7.             <Border Grid.Column="0" CornerRadius="10,0,0,10" Background="#4E8FB7" BorderThickness="0" BorderBrush="#4E8FB7">
  8.                 <TextBlock Foreground="#FFFFFF" FontWeight="Bold" FontSize="13" FontFamily="Arial"
  9.                           Margin="5,0,0,0" VerticalAlignment="Center" Text="{Binding DisplayName}">
  10.                 </TextBlock>
  11.             </Border>
  12.  
  13.  
  14.             <ItemsControl ItemsSource="{Binding CheckBoxes}" Grid.Column="1" Margin="0,0,5,0">
  15.                 <ItemsControl.ItemsPanel>
  16.                     <ItemsPanelTemplate>
  17.                         <StackPanel Orientation="Vertical" Margin="3,3,0,3" Background="LightBlue"/>
  18.                     </ItemsPanelTemplate>
  19.                 </ItemsControl.ItemsPanel>
  20.                 <ItemsControl.Template>
  21.                     <ControlTemplate>
  22.                         <Border BorderThickness="1" BorderBrush="#4E8FB7" CornerRadius="0,5,5,0">
  23.                             <ItemsPresenter />
  24.                         </Border>
  25.                     </ControlTemplate>
  26.                 </ItemsControl.Template>
  27.                 <ItemsControl.ItemTemplate>
  28.                     <DataTemplate>
  29.                         <Border HorizontalAlignment="Stretch" Margin="5,2,2,2">
  30.                             <CheckBox IsChecked="{Binding isChecked, Mode=TwoWay}" Content="{Binding Text}"
  31.                                      FontFamily="Arial" FontWeight="Bold" Foreground="{StaticResource ResourceKey=HeaderForeground}"/>
  32.                         </Border>
  33.                     </DataTemplate>
  34.                 </ItemsControl.ItemTemplate>
  35.             </ItemsControl>
  36.         </Grid>
  37.     </DataTemplate>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement