This class serves as a container for demonstrating dependency and attached properties.

Namespace: SampleClassLibrary
Assembly: SampleClassLibrary (in SampleClassLibrary.dll)

Public Class DependencyAndAttachedProps 
Inherits DependencyObject
This language is not supported or no code example is available.
public class DependencyAndAttachedProps : DependencyObject
This language is not supported or no code example is available.
type DependencyAndAttachedProps = class  
inherit DependencyObject 
end
This language is not supported or no code example is available.
public ref class DependencyAndAttachedProps : public DependencyObject^
This language is not supported or no code example is available.
public class DependencyAndAttachedProps 
extends DependencyObject
This language is not supported or no code example is available.
Name Description
Public property DependencyObjectType Gets the DependencyObjectType that wraps the CLR type of this instance. (inherited from DependencyObject).
Public property Dispatcher Gets the Dispatcher this DispatcherObject is associated with. (inherited from DispatcherObject).
Public property IsSealed Gets a value that indicates whether this instance is currently sealed (read-only). (inherited from DependencyObject).
Public property LabelDp A sample dependency property. Gets or sets a textual label.
Top
Name Description
Public attached property BlinkIntervalAp A sample attached property. Gets or sets a blinking interval in ms.
Top
Name Description
Public method CheckAccess Determines whether the calling thread has access to this DispatcherObject. (inherited from DispatcherObject).
Public method ClearValue(DependencyPropertyKey) Clears the local value of a read-only property. The property to be cleared is specified by a DependencyPropertyKey. (inherited from DependencyObject).
Public method ClearValue(DependencyProperty) Clears the local value of a property. The property to be cleared is specified by a DependencyProperty identifier. (inherited from DependencyObject).
Public method CoerceValue(DependencyProperty) Coerces the value of the specified dependency property. This is accomplished by invoking any CoerceValueCallback function specified in property metadata for the dependency property as it exists on the calling DependencyObject. (inherited from DependencyObject).
Public method Equals(Object) Determines whether a provided DependencyObject is equivalent to the current DependencyObject. (inherited from DependencyObject).
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from Object).
Public method Static GetBlinkIntervalAp(UIElement) A getter for BlinkIntervalAp attached property.
Public method GetHashCode Gets a hash code for this DependencyObject. (inherited from DependencyObject).
Public method GetLocalValueEnumerator Creates a specialized enumerator for determining which dependency properties have locally set values on this DependencyObject. (inherited from DependencyObject).
Public method GetType Gets the Type of the current instance. (inherited from Object).
Public method GetValue(DependencyProperty) Returns the current effective value of a dependency property on this instance of a DependencyObject. (inherited from DependencyObject).
Public method InvalidateProperty(DependencyProperty) Re-evaluates the effective value for the specified dependency property (inherited from DependencyObject).
Protected method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object).
Protected method OnPropertyChanged(DependencyPropertyChangedEventArgs) Invoked whenever the effective value of any dependency property on this DependencyObject has been updated. The specific dependency property that changed is reported in the event data. (inherited from DependencyObject).
Public method ReadLocalValue(DependencyProperty) Returns the local value of a dependency property, if it exists. (inherited from DependencyObject).
Public method Static SetBlinkIntervalAp(UIElement, int) A setter for BlinkIntervalAp attached property.
Public method SetCurrentValue(DependencyProperty, Object) Sets the value of a dependency property without changing its value source. (inherited from DependencyObject).
Public method SetValue(DependencyProperty, Object) Sets the local value of a dependency property, specified by its dependency property identifier. (inherited from DependencyObject).
Public method SetValue(DependencyPropertyKey, Object) Sets the local value of a read-only dependency property, specified by the DependencyPropertyKey identifier of the dependency property. (inherited from DependencyObject).
Internal protected (Protected Friend) method ShouldSerializeProperty(DependencyProperty) Returns a value that indicates whether serialization processes should serialize the value for the provided dependency property. (inherited from DependencyObject).
Public method ToString Returns a string that represents the current object. (inherited from Object).
Public method VerifyAccess Enforces that the calling thread has access to this DispatcherObject. (inherited from DispatcherObject).
Top
Name Description
Public field Static BlinkIntervalApProperty The identifier field for BlinkIntervalAp attached property.
Public field Static LabelDpProperty The identifier field for LabelDp dependency property.
Top

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Core

Supported in: 1.0, 1.1, 2.0

.NET Standard

Supported in: 2.0

Xamarin.Android

Supported in: 7.1

Portable Class Library

Supported in: Portable Class Library