Export (0) Print
Expand All

StaticExtension.Member Property

Gets or sets a string that identifies a static field or property.

Namespace:  System.Windows.Markup
Assembly:  PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml

public string Member { get; set; }
For XAML information, see x:Static Markup Extension.

Property Value

Type: System.String
A string that uses the format Prefix:ClassName.FieldOrPropertyName. (Prefix is optional and refers to the XML namespace prefix in a XAML file.)

ExceptionCondition
ArgumentNullException

Attempted to set Member to null.

This value is not evaluated when you set it; so long as the value is not null it will be accepted. The actual parsing and evaluation of the value is deferred until ProvideValue is called on this extension. When ProvideValue is called, this property must identify a resolvable static value. Rather than setting this property, it is more common to provide the member value during construction, which is enabled by the XAML behavior of the extension.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0

Community Additions

ADD
Show:
© 2014 Microsoft