ControlTemplateContext class
이 콘텐츠는 아직 번역되지 않았습니다.
The named-part registry for one template application. Template builders register parts during Build; the owning control looks them up afterwards.
Guide: C# Markup guide
public sealed class ControlTemplateContextPublic Members
Section titled “Public Members”| name | description |
|---|---|
| Owner { get; } | Gets the control this template application belongs to. |
| Bind<T>(…) | Keeps a target part property in sync with a property of Owner: applies the current value now and forwards subsequent changes. Released when the template instance is discarded. (2 methods) |
| Bind<TTarget,TSource>(…) | Keeps a target part property in sync with a converted property of Owner: applies the converted current value now and converts each subsequent change. Released when the template instance is discarded. |
| BindChrome(…) | Forwards the owner’s chrome properties (Background, BorderBrush, BorderThickness, CornerRadius) to the template part that takes over the suppressed chrome rendering. |
| Get<T>(…) | Returns the registered part with the given name and type; throws when missing or mismatched. |
| Register(…) | Registers a named part. Names are unique within one template application. |
See Also
Section titled “See Also”- namespace Aprillz.MewUI.Controls