Advertisement
Guest User

Untitled

a guest
Jul 25th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 7.17 KB | None | 0 0
  1. <Window x:Class="NYP_LogicalPrinter.Printer.FallsInterventionPrinter"
  2.        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3.        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4.        xmlns:sys="clr-namespace:System;assembly=mscorlib"
  5.        Title="Falls Assessment and Intervention Printer"
  6.        Height="800" Width="1000"
  7.        WindowStartupLocation="CenterScreen" Background="White">
  8.         <Window.Resources>
  9.             <ResourceDictionary>
  10.                 <ResourceDictionary.MergedDictionaries>
  11.                     <ResourceDictionary Source="../AppStyle.xaml" />
  12.                 </ResourceDictionary.MergedDictionaries>
  13.             </ResourceDictionary>
  14.         </Window.Resources>
  15.     <Grid>
  16.         <Grid.RowDefinitions>
  17.             <RowDefinition Height="Auto" />
  18.             <RowDefinition Height="*" />
  19.         </Grid.RowDefinitions>
  20.         <Grid.ColumnDefinitions>
  21.             <ColumnDefinition Width="*" />
  22.         </Grid.ColumnDefinitions>
  23.         <Button Grid.Row="0" Grid.ColumnSpan="2" Name="printButton" Height="30" Width="100"
  24.                Click="printButton_Click" Content="Print" Margin="5" Style="{StaticResource btn-primary}"/>
  25.         <TabControl Grid.Row="1" Grid.Column="0" Background="Transparent">
  26.             <TabItem Header="Bed Poster">
  27.                 <!--BED POSTER GRID-->
  28.                 <ScrollViewer Height="700" Margin="5" Padding="5">
  29.                     <Grid Name="bedPosterGrid">
  30.                         <Grid.RowDefinitions>
  31.                             <RowDefinition Height="80" />
  32.                             <RowDefinition Height="Auto" />
  33.                             <RowDefinition Height="Auto" />
  34.                             <RowDefinition Height="Auto" />
  35.                             <RowDefinition Height="*" />
  36.                             <RowDefinition Height="Auto" />
  37.                         </Grid.RowDefinitions>
  38.                         <Grid.ColumnDefinitions>
  39.                             <ColumnDefinition Width="*" />
  40.                         </Grid.ColumnDefinitions>
  41.                         <!--POSTER INFO SECTION-->
  42.                         <Image Grid.Row="0" Name="bpNYPLogo" HorizontalAlignment="Left" VerticalAlignment="Center" />
  43.                         <TextBlock Grid.Row="1" Name="patientName" TextAlignment="Center" FontSize="20" Margin="5" TextWrapping="Wrap"/>
  44.                         <TextBlock Grid.Row="2" Name="message1" TextAlignment="Center" FontSize="24" FontWeight="Bold" Margin="5" TextWrapping="Wrap"/>
  45.                         <TextBlock Grid.Row="3" Name="message2" TextAlignment="Center" FontSize="24" Margin="5" TextWrapping="Wrap"/>
  46.  
  47.                         <!--BED POSTER SECTION-->
  48.                         <Grid Grid.Row="4" HorizontalAlignment="Center">
  49.                             <Grid.RowDefinitions>
  50.                                 <RowDefinition Height="Auto" />
  51.                                 <RowDefinition Height="*" />
  52.                             </Grid.RowDefinitions>
  53.                             <Grid.ColumnDefinitions>
  54.                                 <ColumnDefinition Width="500" />
  55.                             </Grid.ColumnDefinitions>
  56.                             <Border Grid.Row="0" BorderBrush="Black" BorderThickness="4" Name="fallAndRiskBorder" Visibility="Collapsed" HorizontalAlignment="Center">
  57.                                 <Grid>
  58.                                     <Grid.RowDefinitions>
  59.                                         <RowDefinition Height="300" />
  60.                                         <RowDefinition Height="50" />
  61.                                     </Grid.RowDefinitions>
  62.                                     <Grid.ColumnDefinitions>
  63.                                         <ColumnDefinition Width="*" />
  64.                                     </Grid.ColumnDefinitions>
  65.                                     <Image Grid.Row="0" Name="fallAndRiskImage" HorizontalAlignment="Center" VerticalAlignment="Center" />
  66.                                     <TextBlock Grid.Row="1" Name="fallAndRiskDescription" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="Medium" FontSize="18" TextWrapping="Wrap" />
  67.                                 </Grid>
  68.                             </Border>
  69.                             <ItemsControl Grid.Row="2" Name="bedPosterIC" HorizontalAlignment="Center">
  70.                                 <ItemsControl.ItemsPanel>
  71.                                     <ItemsPanelTemplate>
  72.                                         <UniformGrid Columns="2" />
  73.                                     </ItemsPanelTemplate>
  74.                                 </ItemsControl.ItemsPanel>
  75.                                 <ItemsControl.ItemTemplate>
  76.                                     <DataTemplate>
  77.                                         <Border BorderBrush="Black" BorderThickness="4" >
  78.                                             <Grid>
  79.                                                 <Grid.RowDefinitions>
  80.                                                     <RowDefinition Height="*" />
  81.                                                     <RowDefinition Height="50" />
  82.                                                 </Grid.RowDefinitions>
  83.                                                 <Grid.ColumnDefinitions>
  84.                                                     <ColumnDefinition Width="*" />
  85.                                                 </Grid.ColumnDefinitions>
  86.                                                 <Image Grid.Row="0" Source="{Binding ImageSource}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  87.                                                 <TextBlock Grid.Row="1" Text="{Binding EnglishDescription}" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="Medium" FontSize="18" TextWrapping="Wrap" />
  88.                                             </Grid>
  89.                                         </Border>
  90.                                     </DataTemplate>
  91.                                 </ItemsControl.ItemTemplate>
  92.                             </ItemsControl>
  93.                         </Grid>
  94.                         <TextBlock Grid.Row="5" Name="footer" TextAlignment="Center" FontSize="20" Margin="20" TextWrapping="Wrap" />
  95.                     </Grid>
  96.                 </ScrollViewer>
  97.             </TabItem>
  98.             <TabItem Header="PT Education">
  99.                 <ScrollViewer Height="700" Margin="5" Padding="5">
  100.                     <Grid Name="PTEduGrid">
  101.                         <Grid.RowDefinitions>
  102.                             <RowDefinition Height="40" />
  103.                             <RowDefinition Height="*" />
  104.                             <RowDefinition Height="*" />
  105.                             <RowDefinition Height="*" />
  106.                         </Grid.RowDefinitions>
  107.                         <Grid.ColumnDefinitions>
  108.                             <ColumnDefinition Width="*" />
  109.                         </Grid.ColumnDefinitions>
  110.                         <Image Grid.Row="0" Name="ptNYPLogo" HorizontalAlignment="Left" VerticalAlignment="Center" />
  111.                     </Grid>
  112.                 </ScrollViewer>
  113.             </TabItem>
  114.         </TabControl>
  115.     </Grid>
  116. </Window>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement