Advertisement
Guest User

Untitled

a guest
May 24th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.59 KB | None | 0 0
  1. <Window bla bla bla>
  2.     <Window.Resources>
  3.         <ResourceDictionary>
  4.             <ResourceDictionary.MergedDictionaries>
  5.                 <ResourceDictionary Source="Dictionaries/DataTemplates.xaml"/>
  6.                 <ResourceDictionary>
  7.                    
  8.                     <converters:DAVMDocumentConverter x:Key="DocumentConverter"/>
  9.                    
  10.                     <c:CommandReference Command="{Binding CloseOrderCommand}" x:Key="CloseOrder"/>
  11.  
  12.  
  13.                     <DataTemplate DataType="vm:iPBXOrderViewModel">
  14.                         <Grid Visibility="{Binding Parent.IsActive}" Margin="3">
  15.                             <Grid.RowDefinitions>
  16.                                 <RowDefinition Height="25"/>
  17.                                 <RowDefinition />
  18.                             </Grid.RowDefinitions>
  19.  
  20.                             <Border Focusable="False" Name="TitleBorder" Grid.Column="0" CornerRadius="5,5,0,0" Background="{StaticResource ResourceKey=SectionBackground}" BorderBrush="{StaticResource ResourceKey=SectionHeaderBorder}" BorderThickness="1">
  21.                                 <TextBlock Foreground="Black" FontWeight="Bold" FontSize="14" FontFamily="Arial" Text="{Binding Header}"
  22.                                       Margin="2" HorizontalAlignment="Center" Focusable="False">
  23.                                 </TextBlock>
  24.                             </Border>
  25.  
  26.                             <Border Grid.Row="1" BorderBrush="{StaticResource ResourceKey=SectionHeaderBorder}" BorderThickness="0,1,0,0" Focusable="False">
  27.                                 <Border BorderBrush="#D3EAF8" BorderThickness="0,1,0,0" Focusable="False">
  28.                                     <Border Background="{StaticResource ResourceKey=HeaderBackground}" BorderBrush="#999999" BorderThickness="1,0,1,1" Focusable="False">
  29.                                         <UniformGrid Rows="1" Columns="4" Focusable="False">
  30.                                             <v:iPBXMainView  DataContext="{Binding}" IsEnabled="{Binding Path=IsEnabled}" Focusable="False"/>
  31.                                             <v:AssetListView DataContext="{Binding}" IsEnabled="{Binding Path=IsEnabled}" Focusable="False"/>
  32.                                             <v:TelephoneNumberListView DataContext="{Binding}" IsEnabled="{Binding Path=IsEnabled}" Focusable="False"/>
  33.                                             <v:VoicemailNumberListView DataContext="{Binding}" IsEnabled="{Binding Path=IsEnabled}" Focusable="False"/>
  34.                                         </UniformGrid>
  35.                                     </Border>
  36.                                 </Border>
  37.                             </Border>
  38.                         </Grid>
  39.                     </DataTemplate>
  40.                    
  41.                 </ResourceDictionary>
  42.             </ResourceDictionary.MergedDictionaries>
  43.         </ResourceDictionary>
  44.     </Window.Resources>
  45.    
  46.     <Grid>
  47.         <Grid Panel.ZIndex="1">
  48.             <Grid Grid.Column="1">
  49.                 <Border Grid.Row="3" Margin="2,0,0,0" CornerRadius="0,0,0,5" Background="#C3DAE8" BorderBrush="{StaticResource ResourceKey=SectionHeaderBorder}" BorderThickness="2,1,0,1" MinHeight="50">
  50.                     <ScrollViewer VerticalScrollBarVisibility="Visible" HorizontalScrollBarVisibility="Visible">
  51.                         <ItemsControl ItemsSource="{Binding Path=Documents}" Focusable="False" Background="Transparent">
  52.                         </ItemsControl>
  53.  
  54.                     </ScrollViewer>
  55.                 </Border>
  56.             </Grid>
  57.         </Grid>
  58.     </Grid>
  59. </Window>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement