title: Canvas print - wpf
body: <p>I used these code in order to print out the UI. Printing out is working, but if the size of paper is over, the UI cuts off in the middle of a canvas.</p>
  
  <p>Is there any possible way not to be cut off in the middle? </p>
  
  <p>&lt;--cs code--></p>
  
  <pre><code>PrintDialog dialog = new PrintDialog();
  dialog.PrintVisual(lst , "print");
  </code></pre>
  
  <p>&lt;--Xaml --></p>
  
  <pre><code>&lt;ListView Name="lst"&gt;
      &lt;Grid Name="grdPrint"&gt;
          &lt;Grid.RowDefinitions&gt;
              &lt;RowDefinition /&gt;
              &lt;RowDefinition /&gt;
          &lt;/Grid.RowDefinitions&gt;
  
          &lt;Canvas  Grid.Row="0"    &gt;
             .......
          &lt;/Canvas&gt;
  
          &lt;HListBox x:Name="lstImage" ItemsSource="{Binding IMG, Mode=TwoWay}" Grid.Row="1" IsHitTestVisible="True"&gt;
              &lt;HListBox.ItemTemplate&gt;
                  &lt;DataTemplate&gt;
                      &lt;HImage Margin="0"  Width="590"  Height="590" Stretch="Fill" Source="{Binding IMG_PATH_NM, Converter={StaticResource StrUriConverter}}" Tag="{Binding IMG_PATH_NM}"&gt;
                      &lt;/HImage&gt;
                  &lt;/DataTemplate&gt;
              &lt;/HListBox.ItemTemplate&gt;
              &lt;HListBox.ItemsPanel&gt;
                  &lt;ItemsPanelTemplate&gt;
                      &lt;StackPanel Orientation="Vertical" HorizontalAlignment="Center"  IsHitTestVisible="True"/&gt;
                  &lt;/ItemsPanelTemplate&gt;
              &lt;/HListBox.ItemsPanel&gt;
          &lt;/HListBox&gt;
      &lt;/Grid&gt;
  &lt;/ListView&gt;
  </code></pre>