Class DynamicStyleSetter<T>
A style setter whose value follows a resource: when the resource changes, controls the style already applied to update.
public sealed class DynamicStyleSetter<T> : IStyleSetter
Type Parameters
T
- Inheritance
-
DynamicStyleSetter<T>
- Implements
- Inherited Members
Constructors
DynamicStyleSetter(XamlProperty<T>, string, Func<object, T>)
Creates a setter that reads resourceKey live, optionally converting the value.
public DynamicStyleSetter(XamlProperty<T> property, string resourceKey, Func<object, T> convert = null)
Parameters
propertyXamlProperty<T>resourceKeystringconvertFunc<object, T>
Methods
Apply(Control, long)
Applies the current resource value to control at the given priority and returns a handle that removes it.
public IDisposable Apply(Control control, long priority)