Hi,
I am attempting to recreate the print and export example for WPF in my code. I have the PrintAndExportWithRadDocumentModel and Commands, and in my XAML I have
<Window.Resources>
<local:PrintAndExportWithRadDocumentModel x:Key="context" />
</Window.Resources>
and
However, when I click on the button I get a null object parameter in the Print method (in the PrintAndExportWithRadDocumentModel class). My question is, how do I bind the RadGridView to the button click so it gets passed as the parameter?
I am attempting to recreate the print and export example for WPF in my code. I have the PrintAndExportWithRadDocumentModel and Commands, and in my XAML I have
<Window.Resources>
<local:PrintAndExportWithRadDocumentModel x:Key="context" />
</Window.Resources>
and
<telerik:RadButton Content="Export" Height="40" Width="50" Command="{Binding ExportCommand, Source={StaticResource context}}" CommandParameter="{Binding}" /><telerik:RadButton Content="Print" Height="20" Width="50" Command="{Binding PrintCommand, Source={StaticResource context}}" CommandParameter="{Binding}" />However, when I click on the button I get a null object parameter in the Print method (in the PrintAndExportWithRadDocumentModel class). My question is, how do I bind the RadGridView to the button click so it gets passed as the parameter?
