Show / Hide Table of Contents

Class XamlUnpacker

Extracts embedded XAML resources from the specified assembly.

Inheritance
object
AssemblyUnpacker<object>
XamlUnpacker
Implements
IUnpacker<object>
Inherited Members
AssemblyUnpacker<object>.UnpackStream(string)
AssemblyUnpacker<object>.UnpackStream(string, ICompressorGetter)
AssemblyUnpacker<object>.TryUnpack(string, out object)
AssemblyUnpacker<object>.TryUnpack(string, ICompressorGetter, out object)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TheXDS.MCART.Resources
Assembly: MCART.Wpf.Common.dll
Syntax
public class XamlUnpacker : AssemblyUnpacker<object>, IUnpacker<object>

Constructors

| Edit this page View Source

XamlUnpacker(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 Source

Unpack(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
AssemblyUnpacker<object>.Unpack(string)
| Edit this page View Source

Unpack(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.

Overrides
AssemblyUnpacker<object>.Unpack(string, ICompressorGetter)

Implements

IUnpacker<T>

Extension Methods

Objects.ShallowCopyTo(object, object, Type)
ObjectExtensions.FieldsOf<T>(object)
ObjectExtensions.GetAttribute<T>(object)
ObjectExtensions.GetAttributes<T>(object)
ObjectExtensions.HasAttrValue<TAttribute, TValue>(object, out TValue)
ObjectExtensions.HasAttribute<T>(object)
ObjectExtensions.HasAttribute<T>(object, out T?)
ObjectExtensions.HasAttributes<T>(object, out IEnumerable<T>?)
ObjectExtensions.Is(object?, object?)
ObjectExtensions.IsEither(object, IEnumerable)
ObjectExtensions.IsEither(object, params object[])
ObjectExtensions.IsNeither(object, IEnumerable)
ObjectExtensions.IsNeither(object, params object[])
ObjectExtensions.IsNot(object?, object?)
ObjectExtensions.PropertiesOf<T>(object)
ObjectExtensions.WhichAre(object, IEnumerable<object>)
ObjectExtensions.WhichAre(object, params object[])
Common.IfNotNull<T>(T?, Action<T>)
Objects.Itself<T>(T)
Objects.ShallowCopyTo<T>(T, T)
CollectionExtensions.PushInto<TItem, TCollection>(TItem, ICollection<TCollection>)
DictionaryExtensions.PushInto<TKey, TValue>(TValue, TKey, IDictionary<TKey, TValue>)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX