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
ClrNamespacePrefix
The prefix that marks an XML namespace as naming a CLR namespace: clr-namespace:.
public const string ClrNamespacePrefix = "clr-namespace:"
Field Value
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
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
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
DirectivesNamespace
Gets Directives as an XNamespace.
public static XNamespace DirectivesNamespace { get; }
Property Value
Methods
IsBuiltIn(XNamespace)
Determines whether ns addresses the built-in controls.
public static bool IsBuiltIn(XNamespace ns)
Parameters
nsXNamespaceThe namespace to test.
Returns
IsDirective(XNamespace)
Determines whether ns is the directive namespace.
public static bool IsDirective(XNamespace ns)
Parameters
nsXNamespaceThe namespace to test.
Returns
- bool
true when
nsis Directives.