BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
<Window.Resources> <local:ViewModel x:Key="viewmodel"/> <DataTemplate x:Key="PrintHeader" > <Border BorderThickness="1"> <Grid DataContext="{StaticResource viewmodel}"> <Grid.RowDefinitions> <RowDefinition Height="50"></RowDefinition> <RowDefinition Height="25"></RowDefinition> <RowDefinition Height="25"></RowDefinition> <RowDefinition Height="25"></RowDefinition> <RowDefinition Height="50"></RowDefinition> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition></ColumnDefinition> <ColumnDefinition></ColumnDefinition> </Grid.ColumnDefinitions>
<TextBlock HorizontalAlignment="Center" FontSize="20" Text="TEST PRINT " Grid.ColumnSpan="4"/> <TextBlock HorizontalAlignment="Right" Width="120" Grid.Row="1" FontSize="12" Text="NAME:" ></TextBlock> <TextBlock HorizontalAlignment="Right" Width="120" Grid.Row="2" FontSize="12" Text="COMPANY:"></TextBlock> <TextBlock HorizontalAlignment="Right" Width="120" Grid.Row="3" FontSize="12" Text="START TIME:"></TextBlock> <TextBlock HorizontalAlignment="Right" Width="120" Grid.Row="4" FontSize="12" Text="END TIME:"></TextBlock> <TextBlock Grid.Row="1" Grid.Column="1" FontSize="12" HorizontalAlignment="Left" Text="{Binding TemplateName}"/> </Grid> </Border> </DataTemplate>
|
<TextBlock Grid.Row="1" Grid.Column="1" FontSize="12" HorizontalAlignment="Left" Text="{Binding TemplateName,Source={StaticResource viewmodel}}"/> |