<Window x:Class="Printing.PrintScaledVisual"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="PrintScaledVisual" Height="184" Width="269"
    >
  <Grid Margin="5">
    <Grid.RowDefinitions>     
      <RowDefinition Height="Auto"></RowDefinition>
      <RowDefinition Height="Auto"></RowDefinition>
    </Grid.RowDefinitions>
   
    <StackPanel Orientation="Horizontal" >
      <Label>Scale Percentage:</Label>
      <TextBox MinWidth="50" Name="txtScale">500</TextBox>
    </StackPanel>
    <Button Grid.Row="1" Click="cmdPrint_Click">Print</Button>
  </Grid>
</Window>
