TypeExtension

StockSharp.Xaml.Charting.Common.MarkupExtensions

A MarkupExtension which introduces x:Type like syntax to both WPF and Silverlight (Cross-platform). This is used internally for the themes, but is also useful e.g. when creating custom Control Templates for Ultrachart

Inherits: MarkupExtension

Constructors

TypeExtension
public TypeExtension()
typeExtension = TypeExtension()

Initializes a new instance of the TypeExtension class.

TypeExtension
public TypeExtension(Type type)
typeExtension = TypeExtension(type)

Initializes a new instance of the TypeExtension class.

type
The type to wrap

Properties

Type
public Type Type { get; set; }
value = typeExtension.Type
typeExtension.Type = value

Gets or sets the type information for this extension.

TypeName
public string TypeName { get; set; }
value = typeExtension.TypeName
typeExtension.TypeName = value

Gets or sets the type name represented by this markup extension.