or
Telerik.Reporting.Processing.
ReportItemBase item = (Telerik.Reporting.Processing.ReportItemBase)sender;
int idQueja = (int) item.DataObject["idQueja"];
cNQueja ocNQueja = new cNQueja(idQueja);
ocNQueja.Load();
denunciadosReport.ReportSource.DataSource = ocNQueja.ListaDenunciado;
<
UserControl
x:Class
=
"Sta1.UI.Modules.Reports.ReportDetailView"
xmlns:d
=
"http://schemas.microsoft.com/expression/blend/2008"
xmlns:telerik
=
"clr-namespace:Telerik.ReportViewer.Wpf;assembly=Telerik.ReportViewer.Wpf"
mc:Ignorable
=
"d"
d:DesignHeight
=
"300"
d:DesignWidth
=
"300"
x:Name
=
"thisWindow"
>
<
Grid
>
<
telerik:ReportViewer
Report
=
"{Binding DataContext.Report, ElementName=thisWindow}"
/>
</
Grid
>
</
UserControl
>
...
private
Report _report;
public
Report Report
{
get
{
return
_report; }
private
set
{
_report = value;
NotifyOfPropertyChange(() => Report);
}
}
public
void
SetReport(Report reportToShow)
{
Report =
null
;
Report = reportToShow;
}
...