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());
            }
        }
Beispiel #2
0
 public static IControl DockTopLeft(this IControl dockedControl)
 {
     return(dockedControl.Dock(RectangleEdge.Left).Dock(RectangleEdge.Top));
 }
Beispiel #3
0
 public static IControl DockTop(this IControl dockedControl, IControl fill = null)
 {
     return(dockedControl.Dock(RectangleEdge.Top, fill));
 }
Beispiel #4
0
 public static IControl DockBottom(this IControl dockedControl, IControl fill = null)
 {
     return(dockedControl.Dock(RectangleEdge.Bottom, fill));
 }
Beispiel #5
0
 public static IControl DockRight(this IControl dockedControl, IControl fill = null)
 {
     return(dockedControl.Dock(RectangleEdge.Right, fill));
 }
Beispiel #6
0
 public static IControl DockBottomRight(this IControl dockedControl)
 {
     return(dockedControl.Dock(RectangleEdge.Right).Dock(RectangleEdge.Bottom));
 }