Reference Reference Reference Reference Class

Definition

Implements the {x:Reference} markup extension.

public ref class Reference : System::Windows::Markup::MarkupExtension
[System.Windows.Markup.ContentProperty("Name")]
public class Reference : System.Windows.Markup.MarkupExtension
type Reference = class
    inherit MarkupExtension
Public Class Reference
Inherits MarkupExtension
Inheritance
Attributes

Remarks

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.

Constructors

Reference() Reference() Reference() Reference()

Initializes a new instance of the Reference class.

Reference(String) Reference(String) Reference(String) Reference(String)

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

Properties

Name Name Name Name

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

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ProvideValue(IServiceProvider) ProvideValue(IServiceProvider) ProvideValue(IServiceProvider) ProvideValue(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.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See Also