Initializes a new instance of the Report class from the resource identified by the specified key in the dictionary with the specified Uri.
Namespace: MindFusion.Reporting.Silverlight
Assembly: MindFusion.Reporting.Silverlight
C# Copy Code |
---|
public static Report FromDictionary ( |
Visual Basic Copy Code |
---|
Public Shared Function FromDictionary ( _ |
The key of the report.
The report with the specified key.
This is a convenience method, which facilitates Report loading from resource dictionaries. The method will throw an exception if either uri does not resolve to a ResourceDictionary or the dictionary does not contain a report with the specified key.
Assuming that there is a resource dictionary MyReport.xaml in the current application, which contains a report resource with key simpleReport, the following code loads the report from the dictionary:
C# Copy Code |
---|
var report = Report.FromDictionary(new Uri(@"MyReport.xaml", UriKind.Relative), "simpleReport"); |