I am using PRISM/Unity and Telerik's WPF controls to create a business solution for generating and viewing reports. I have a module that is dedicated to simply displaying the generated reports. My View for the reports originally was implmented as a <Window> </Window> with a single <ReportViewer> with the report data source bound to a backing field in the ViewModel for the Window. I am now attempting to convert to a tabbed control structure to allow the users to view more than one report at a time. I VM defined as a static resource in the window and the codebehind of the window exposes a single method that allows the addition of reports to its tab control (given that it's entirely a piece of display functionality, I don't think it violates the MVVM principles.
Back to the question: during the add process, I generate an instance report source and add it to an ObserableCollection<InstanceReportSource> that is the ItemSource bound to the "ItemSource" property of the tab control and then show the window that contains the Tab Control. During the AddReport method, I perform a RaisePropertyChanged("ReportSourceCollection") to notify the Tab control that it needs to add a new tab containing a report. The issue I'm running into is that when the window opens, no report is displayed. Through my debugging, I've found that the addition of items, and property changed events are properly raised.
Has anyone else had an issue with Report Viewer in the Tab control?
Thanks.
Back to the question: during the add process, I generate an instance report source and add it to an ObserableCollection<InstanceReportSource> that is the ItemSource bound to the "ItemSource" property of the tab control and then show the window that contains the Tab Control. During the AddReport method, I perform a RaisePropertyChanged("ReportSourceCollection") to notify the Tab control that it needs to add a new tab containing a report. The issue I'm running into is that when the window opens, no report is displayed. Through my debugging, I've found that the addition of items, and property changed events are properly raised.
Has anyone else had an issue with Report Viewer in the Tab control?
Thanks.