Class ApplyAttachedPropertyChainables
Chainable extension methods to apply attached properties to elements inline at declaration time
public static class ApplyAttachedPropertyChainables
- Inheritance
-
ApplyAttachedPropertyChainables
- Inherited Members
Methods
WithProp<T, U>(T, AttachedProperty<U>, U)
Applies a value to an attached property on a given element and returns the element for chaining
public static T WithProp<T, U>(this T element, AttachedProperty<U> property, U value) where T : ArrangableElement
Parameters
element
TThe element to attach a property to
property
AttachedProperty<U>The property to attach
value
UThe new value of the property
Returns
- T
The original element for chaining
Type Parameters
T
The type of the element
U
The type of the property