Table of Contents

Class ApplyAttachedPropertyChainables

Namespace
MagicUI.Core
Assembly
MagicUI.dll

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 T

The element to attach a property to

property AttachedProperty<U>

The property to attach

value U

The 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