Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Window x:Class="NYP_LogicalPrinter.Printer.FallsInterventionPrinter"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:sys="clr-namespace:System;assembly=mscorlib"
- Title="Falls Assessment and Intervention Printer"
- Height="800" Width="1000"
- WindowStartupLocation="CenterScreen" Background="White">
- <Window.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="../AppStyle.xaml" />
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
- </Window.Resources>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Button Grid.Row="0" Grid.ColumnSpan="2" Name="printButton" Height="30" Width="100"
- Click="printButton_Click" Content="Print" Margin="5" Style="{StaticResource btn-primary}"/>
- <TabControl Grid.Row="1" Grid.Column="0" Background="Transparent">
- <TabItem Header="Bed Poster">
- <!--BED POSTER GRID-->
- <ScrollViewer Height="700" Margin="5" Padding="5">
- <Grid Name="bedPosterGrid">
- <Grid.RowDefinitions>
- <RowDefinition Height="80" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="*" />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <!--POSTER INFO SECTION-->
- <Image Grid.Row="0" Name="bpNYPLogo" HorizontalAlignment="Left" VerticalAlignment="Center" />
- <TextBlock Grid.Row="1" Name="patientName" TextAlignment="Center" FontSize="20" Margin="5" TextWrapping="Wrap"/>
- <TextBlock Grid.Row="2" Name="message1" TextAlignment="Center" FontSize="24" FontWeight="Bold" Margin="5" TextWrapping="Wrap"/>
- <TextBlock Grid.Row="3" Name="message2" TextAlignment="Center" FontSize="24" Margin="5" TextWrapping="Wrap"/>
- <!--BED POSTER SECTION-->
- <Grid Grid.Row="4" HorizontalAlignment="Center">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="500" />
- </Grid.ColumnDefinitions>
- <Border Grid.Row="0" BorderBrush="Black" BorderThickness="4" Name="fallAndRiskBorder" Visibility="Collapsed" HorizontalAlignment="Center">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="300" />
- <RowDefinition Height="50" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Image Grid.Row="0" Name="fallAndRiskImage" HorizontalAlignment="Center" VerticalAlignment="Center" />
- <TextBlock Grid.Row="1" Name="fallAndRiskDescription" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="Medium" FontSize="18" TextWrapping="Wrap" />
- </Grid>
- </Border>
- <ItemsControl Grid.Row="2" Name="bedPosterIC" HorizontalAlignment="Center">
- <ItemsControl.ItemsPanel>
- <ItemsPanelTemplate>
- <UniformGrid Columns="2" />
- </ItemsPanelTemplate>
- </ItemsControl.ItemsPanel>
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <Border BorderBrush="Black" BorderThickness="4" >
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="*" />
- <RowDefinition Height="50" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Image Grid.Row="0" Source="{Binding ImageSource}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
- <TextBlock Grid.Row="1" Text="{Binding EnglishDescription}" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="Medium" FontSize="18" TextWrapping="Wrap" />
- </Grid>
- </Border>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>
- </Grid>
- <TextBlock Grid.Row="5" Name="footer" TextAlignment="Center" FontSize="20" Margin="20" TextWrapping="Wrap" />
- </Grid>
- </ScrollViewer>
- </TabItem>
- <TabItem Header="PT Education">
- <ScrollViewer Height="700" Margin="5" Padding="5">
- <Grid Name="PTEduGrid">
- <Grid.RowDefinitions>
- <RowDefinition Height="40" />
- <RowDefinition Height="*" />
- <RowDefinition Height="*" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Image Grid.Row="0" Name="ptNYPLogo" HorizontalAlignment="Left" VerticalAlignment="Center" />
- </Grid>
- </ScrollViewer>
- </TabItem>
- </TabControl>
- </Grid>
- </Window>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement