Class NameScope

Namespace
Forma.Xaml
Assembly
Forma.dll
public sealed class NameScope
Inheritance
NameScope
Inherited Members

Constructors

NameScope()

public NameScope()

Methods

CreateForTree(Control)

public static NameScope CreateForTree(Control root)

Parameters

root Control

Returns

NameScope

Find(string)

public object Find(string name)

Parameters

name string

Returns

object

FindControlByName(Control, string)

public static Control FindControlByName(Control root, string name)

Parameters

root Control
name string

Returns

Control

FindControlByOrdinal(Control, int)

public static Control FindControlByOrdinal(Control root, int ordinal)

Parameters

root Control
ordinal int

Returns

Control

Find<T>(string)

public T Find<T>(string name) where T : class

Parameters

name string

Returns

T

Type Parameters

T

GetNameScope(object)

public static NameScope GetNameScope(object owner)

Parameters

owner object

Returns

NameScope

Register(string, object)

public void Register(string name, object value)

Parameters

name string
value object

SetNameScope(object, NameScope)

public static void SetNameScope(object owner, NameScope scope)

Parameters

owner object
scope NameScope

Unregister(string)

public bool Unregister(string name)

Parameters

name string

Returns

bool