PropertyMetadata.OnApply(DependencyProperty, Type) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called when this metadata has been applied to a property, which indicates that the metadata is being sealed.
protected:
virtual void OnApply(System::Windows::DependencyProperty ^ dp, Type ^ targetType);
protected virtual void OnApply (System.Windows.DependencyProperty dp, Type targetType);
abstract member OnApply : System.Windows.DependencyProperty * Type -> unit
override this.OnApply : System.Windows.DependencyProperty * Type -> unit
Protected Overridable Sub OnApply (dp As DependencyProperty, targetType As Type)
The dependency property to which the metadata has been applied.
- targetType
- Type
The type associated with this metadata if this is type-specific metadata. If this is default metadata, this value is a null reference.
Subclasses should assure that any mutability of the data structure of a PropertyMetadata subclass should be marked as immutable once OnApply is called. This will be called once the metadata is applied to a property system operation (register, add owner, override metadata).
제품 | 버전 |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
.NET 피드백
.NET은(는) 오픈 소스 프로젝트입니다. 다음 링크를 선택하여 피드백을 제공해 주세요.