WidgetExtensions

public static class WidgetExtensions
Extensions for widget objects

Methods

With<T>

#Example
public static T With<T>(this T widget, Action<T> action)
Allows execution of extra code on a widget in a declarative manner.
widget (T)Widget to perform the action on
action (Action<T>)Action to execute on the widget before returning
Widget instance