Export (0) Print
Expand All

MarkupProperty Class

Abstract class that provides a property description to be used while writing to markup which encapsulates access to properties and their values.

System.Object
  System.Windows.Markup.Primitives.MarkupProperty

Namespace:  System.Windows.Markup.Primitives
Assembly:  WindowsBase (in WindowsBase.dll)

public abstract class MarkupProperty

The MarkupProperty type exposes the following members.

  NameDescription
Public propertyAttributesWhen overridden in a derived class, gets the attributes associated with this MarkupProperty.
Public propertyDependencyPropertyWhen overridden in a derived class, gets the DependencyProperty identifier for the markup property if the property is implemented as a dependency property
Public propertyIsAttachedWhen overridden in a derived class, determines whether this MarkupProperty is an attached DependencyProperty.
Public propertyIsCompositeWhen overridden in a derived class, determines whether this MarkupProperty is a composite property.
Public propertyIsConstructorArgumentWhen overridden in a derived class, determines whether this MarkupProperty represents a constructor argument.
Public propertyIsContentWhen overridden in a derived class, determines whether this MarkupProperty represents direct content of a collection.
Public propertyIsKeyWhen overridden in a derived class, determines whether this MarkupProperty represents the key used by the MarkupObject to store the item in a dictionary.
Public propertyIsValueAsStringWhen overridden in a derived class, determines whether this MarkupProperty represents text which is passed to a type converter to create an instance of the property or if a constructor should be used.
Public propertyItemsWhen overridden in a derived class, gets the items that make up the value of this property.
Public propertyNameWhen overridden in a derived class, gets a name that is used for diagnostics and error reporting.
Public propertyPropertyDescriptorWhen overridden in a derived class, gets the PropertyDescriptor for the markup property.
Public propertyPropertyTypeWhen overridden in a derived class, gets the CLR type of the property.
Public propertyStringValueWhen overridden in a derived class, gets the string value of this MarkupProperty.
Public propertyTypeReferencesWhen overridden in a derived class, gets the set of types that this MarkupProperty will reference when it serializes its value as a string.
Public propertyValueWhen overridden in a derived class, gets the current value of this MarkupProperty.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

A property is either represented as a string or a list of items.

If the property can be represented as a string, IsComposite is false.

If IsComposite is true, the property is a list of items.

.NET Framework

Supported in: 4.6, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

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