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
elementTThe element to attach a property to
propertyAttachedProperty<U>The property to attach
valueUThe new value of the property
Returns
- T
The original element for chaining
Type Parameters
TThe type of the element
UThe type of the property