Class XamlUnpacker
Extracts embedded XAML resources from the specified assembly.
Inherited Members
Namespace: TheXDS.MCART.Resources
Assembly: MCART.Wpf.Common.dll
Syntax
public class XamlUnpacker : AssemblyUnpacker<object>, IUnpacker<object>
Constructors
| Edit this page View SourceXamlUnpacker(Assembly, string)
Extracts embedded XAML resources from the specified assembly.
Declaration
public XamlUnpacker(Assembly assembly, string path)
Parameters
| Type | Name | Description |
|---|---|---|
| Assembly | assembly | Source assembly of embedded resources. |
| string | path | Path (as a namespace) where embedded resources are located. |
Methods
| Edit this page View SourceUnpack(string)
Extracts a XAML resource with the specified id.
Declaration
public override object Unpack(string id)
Parameters
| Type | Name | Description |
|---|---|---|
| string | id | Id of the XAML resource to extract. |
Returns
| Type | Description |
|---|---|
| object | An object described from the XAML with the specified id. |
Overrides
| Edit this page View SourceUnpack(string, ICompressorGetter)
Extracts a XAML resource with the specified id using the given compressor.
Declaration
public override object Unpack(string id, ICompressorGetter compressor)
Parameters
| Type | Name | Description |
|---|---|---|
| string | id | Id of the XAML resource to extract. |
| ICompressorGetter | compressor | ICompressorGetter to use for extracting the XAML resource. |
Returns
| Type | Description |
|---|---|
| object | An object described from the XAML with the specified id. |