Extensions.LoadFromXaml Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
LoadFromXaml<TXaml>(TXaml, String) |
Returns an initialized view by loading the specified |
LoadFromXaml<TXaml>(TXaml, Type) |
Returns a |
LoadFromXaml<TXaml>(TXaml, String)
Returns an initialized view by loading the specified xaml
.
public static TXaml LoadFromXaml<TXaml> (this TXaml view, string xaml);
static member LoadFromXaml : 'Xaml * string -> 'Xaml
Type Parameters
- TXaml
The type of view to initialize with state from XAML.
Parameters
- view
- TXaml
The view on which this method operates.
- xaml
- System.String
The XAML that encodes the view state.
Returns
The initialized view.
Applies to
LoadFromXaml<TXaml>(TXaml, Type)
Returns a TXaml
with the properties that are defined in the application manifest for callingType
.
public static TXaml LoadFromXaml<TXaml> (this TXaml view, Type callingType);
static member LoadFromXaml : 'Xaml * Type -> 'Xaml
Type Parameters
- TXaml
The type of view to initialize with state from XAML.
Parameters
- view
- TXaml
The view on which this method operates.
- callingType
- System.Type
The type of the caller.
Returns
A TXaml
with the properties that are defined in the application manifest for callingType
.