Reference Class
TOC
Collapse the table of content
Expand the table of content

Reference Class

.NET Framework (current version)
 

Implements the {x:Reference} markup extension.

Namespace:   System.Windows.Markup
Assembly:  System.Xaml (in System.Xaml.dll)

System.Object
  System.Windows.Markup.MarkupExtension
    System.Windows.Markup.Reference

[ContentPropertyAttribute("Name")]
public class Reference : MarkupExtension

NameDescription
System_CAPS_pubmethodReference()

Initializes a new instance of the Reference class.

System_CAPS_pubmethodReference(String)

Initializes a new instance of the Reference class with the name argument.

NameDescription
System_CAPS_pubpropertyName

Gets or sets the XAML name to obtain the reference for.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodProvideValue(IServiceProvider)

Returns an object that is the value of the target property. For the Reference type, this is the object that the provided Name references.(Overrides MarkupExtension.ProvideValue(IServiceProvider).)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

The {x:Reference} markup extension supports a positional usage (there is only one parameter) and a named argument usage (with the named argument name).

The {x:Reference} markup extension is used to reference another named object in the object graph. Objects in this scenario are initially named by , although specific implementations often define a different RuntimeNamePropertyAttribute. For more information, see x:Reference Markup Extension.

For more information about markup extensions, see Type Converters and Markup Extensions for XAML.

The System.Xaml assembly uses XmlnsDefinitionAttribute to map all types in the assembly to the XAML namespace for the XAML language (http://schemas.microsoft.com/winfx/2006/xaml). Typically you declare a prefix for http://schemas.microsoft.com/winfx/2006/xaml in a root element mapping and use the prefix x.

.NET Framework
Available since 4.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft