Table of Contents

Class MarkupDirectives

Namespace
Icy.Markup
Assembly
IcyUI.dll

The names of the x: directives - attributes that instruct the loader rather than set a property.

public static class MarkupDirectives
Inheritance
MarkupDirectives
Inherited Members

Fields

Class

x:Class - names the type to instantiate in place of the root tag's own type.

public const string Class = "Class"

Field Value

string

DataType

x:DataType - declares the type a subtree's data context is expected to have.

public const string DataType = "DataType"

Field Value

string

Remarks

Resolved at load so a misspelling is caught. {Binding} uses it as the type of the data context: see BindingExtension.

Key

x:Key - the key an element is added under, when it is an entry of a dictionary-valued property.

public const string Key = "Key"

Field Value

string

Name

x:Name - names an element, setting Name and registering it in the document's MarkupNameScope.

public const string Name = "Name"

Field Value

string

Properties

All

Gets every directive name, for error messages that suggest a near match.

public static IReadOnlyList<string> All { get; }

Property Value

IReadOnlyList<string>

Methods

Qualified(string)

Writes a directive name the way it appears in markup.

public static string Qualified(string name)

Parameters

name string

The directive's local name.

Returns

string

The name with the conventional x: prefix.