Table of Contents

Class MarkupNamespaces

Namespace
Icy.Markup
Assembly
IcyUI.dll

The XML namespaces the markup language defines.

public static class MarkupNamespaces
Inheritance
MarkupNamespaces
Inherited Members

Fields

AssemblyAssignment

The assignment that names the assembly inside a ClrNamespacePrefix namespace: assembly=.

public const string AssemblyAssignment = "assembly="

Field Value

string

ClrNamespacePrefix

The prefix that marks an XML namespace as naming a CLR namespace: clr-namespace:.

public const string ClrNamespacePrefix = "clr-namespace:"

Field Value

string

Remarks

Written as clr-namespace:My.Game.UI;assembly=MyGame, mirroring WPF. The ;assembly= part is optional and falls back to DefaultAssembly.

Default

The namespace of the built-in IcyUI controls: https://icyui.dev/markup.

public const string Default = "https://icyui.dev/markup"

Field Value

string

Remarks

Implicit - a document that declares no default namespace at all is already in this one, so <StackPanel/> works with no xmlns anywhere in the file. Stating it explicitly is supported and equivalent.

Directives

The namespace of the x: directives: https://icyui.dev/markup/x.

public const string Directives = "https://icyui.dev/markup/x"

Field Value

string

Remarks

Implicitly bound to the x prefix, so x:Name works without an xmlns:x declaration. Declaring it explicitly, or binding it to a different prefix, both work.

Properties

DefaultNamespace

Gets Default as an XNamespace.

public static XNamespace DefaultNamespace { get; }

Property Value

XNamespace

DirectivesNamespace

Gets Directives as an XNamespace.

public static XNamespace DirectivesNamespace { get; }

Property Value

XNamespace

Methods

IsBuiltIn(XNamespace)

Determines whether ns addresses the built-in controls.

public static bool IsBuiltIn(XNamespace ns)

Parameters

ns XNamespace

The namespace to test.

Returns

bool

true for both None (an undeclared default namespace) and Default.

IsDirective(XNamespace)

Determines whether ns is the directive namespace.

public static bool IsDirective(XNamespace ns)

Parameters

ns XNamespace

The namespace to test.

Returns

bool

true when ns is Directives.