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.Wpf
Assembly: MindFusion.Reporting.Wpf
SyntaxC#
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.
RemarksThis 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.
ExampleAssuming 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"); |
See Also