Hi
There appears to be a bug in the behaviour of PrintManager.Print() for GoXam for Silverlight, 1.3.3.5.
The first time PrintManager.Print() is called the Print dialog is displayed… However, any subsequent calls to PrintManager.Print() fail to display the Print dialog.
See the XAML and code below and follow these steps to reproduce:
- Click on the ‘Print’ button. This will call PrintManager.Print(). When the Print dialog is displayed, click ‘Cancel’
- Click on the ‘Print’ button again. The Print dialog does not get displayed.
XAML:
<Grid x:Name="LayoutRoot" Background="White">
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<go:Diagram x:Name="ctlDiagram" />
<Button Content="Print" x:Name="cmdPrint" Grid.Row="1" Click="cmdPrint_Click" />
</Grid>
Code Behind:
public partial class PrintTestView : UserControl
{
public PrintTestView()
{
InitializeComponent();
}
private void cmdPrint_Click(object sender, RoutedEventArgs e)
{
ctlDiagram.PrintManager.Print();
}
}
Thanks