static IControl Align(IControl self, TextAlignment alignment) { switch (alignment) { case TextAlignment.Left: return(self.Dock(RectangleEdge.Left)); case TextAlignment.Right: return(self.Dock(RectangleEdge.Right)); default: return(self.CenterHorizontally()); } }
public static IControl DockTopLeft(this IControl dockedControl) { return(dockedControl.Dock(RectangleEdge.Left).Dock(RectangleEdge.Top)); }
public static IControl DockTop(this IControl dockedControl, IControl fill = null) { return(dockedControl.Dock(RectangleEdge.Top, fill)); }
public static IControl DockBottom(this IControl dockedControl, IControl fill = null) { return(dockedControl.Dock(RectangleEdge.Bottom, fill)); }
public static IControl DockRight(this IControl dockedControl, IControl fill = null) { return(dockedControl.Dock(RectangleEdge.Right, fill)); }
public static IControl DockBottomRight(this IControl dockedControl) { return(dockedControl.Dock(RectangleEdge.Right).Dock(RectangleEdge.Bottom)); }