Registers a new name-object pair into the current XAML namescope.
Assembly: WindowsBase (in WindowsBase.dll)
abstract RegisterName : name:string * scopedElement:Object -> unit override RegisterName : name:string * scopedElement:Object -> unit
- Type: System.String
The name to use for mapping the given object.
- Type: System.Object
The object to be mapped to the provided name.
name or scopedElement was provided as a null reference (Nothing in Visual Basic).
name was provided as empty string
- or -
name provided was rejected by the parser, because it contained characters that are invalid for a XAML name
- or -
name provided would result in a duplicate name registration.