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
| Name | Description |
|---|---|
| LoadFromXaml<TXaml>(TXaml, String) |
Loads the specified XAML string into the view. |
| LoadFromXaml<TXaml>(TXaml, Type) |
Loads the XAML associated with the specified type into the view. |
LoadFromXaml<TXaml>(TXaml, String)
- Source:
- ViewExtensions.cs
- Source:
- ViewExtensions.cs
- Source:
- ViewExtensions.cs
Loads the specified XAML string into the view.
public:
generic <typename TXaml>
[System::Runtime::CompilerServices::Extension]
static TXaml LoadFromXaml(TXaml view, System::String ^ xaml);
public static TXaml LoadFromXaml<TXaml>(this TXaml view, string xaml);
static member LoadFromXaml : 'Xaml * string -> 'Xaml
<Extension()>
Public Function LoadFromXaml(Of TXaml) (view As TXaml, xaml As String) As TXaml
Type Parameters
- TXaml
The type of the view.
Parameters
- view
- TXaml
The view to load XAML into.
- xaml
- String
The XAML string to load.
Returns
The view with XAML loaded.
Applies to
LoadFromXaml<TXaml>(TXaml, Type)
- Source:
- ViewExtensions.cs
- Source:
- ViewExtensions.cs
- Source:
- ViewExtensions.cs
Loads the XAML associated with the specified type into the view.
public:
generic <typename TXaml>
[System::Runtime::CompilerServices::Extension]
static TXaml LoadFromXaml(TXaml view, Type ^ callingType);
public static TXaml LoadFromXaml<TXaml>(this TXaml view, Type callingType);
static member LoadFromXaml : 'Xaml * Type -> 'Xaml
<Extension()>
Public Function LoadFromXaml(Of TXaml) (view As TXaml, callingType As Type) As TXaml
Type Parameters
- TXaml
The type of the view.
Parameters
- view
- TXaml
The view to load XAML into.
- callingType
- Type
The type used to locate the XAML resource.
Returns
The view with XAML loaded.