public static HorizontalStack GetToolbar() { var toolbar = new HorizontalStack(); toolbar.SetStyle(Styles.GetToolbarStyle()); toolbar.SetContentAlignment(ItemAlignment.Bottom); return(toolbar); }
public static HorizontalStack GetFixedHorizontalStack(int height) { HorizontalStack layout = new HorizontalStack(); layout.SetContentAlignment(ItemAlignment.HCenter); layout.SetSpacing(15, 0); layout.SetHeightPolicy(SizePolicy.Fixed); layout.SetHeight(30); return(layout); }
public static HorizontalStack GetToolbarLayout() { HorizontalStack layout = new HorizontalStack(); layout.SetContentAlignment(ItemAlignment.HCenter); layout.SetAlignment(ItemAlignment.Bottom, ItemAlignment.Left); layout.SetSizePolicy(SizePolicy.Expand, SizePolicy.Fixed); layout.SetHeight(30); layout.SetSpacing(5, 0); layout.SetMargin(20, 0, 20, 20); return(layout); }
public static HorizontalStack GetHorizontalButtonLayout() { var layout = new HorizontalStack(); //layout.SetStyle(Styles.GetHorizontalButtonLayoutStyle()); layout.SetMinWidth(300); layout.SetMaxHeight(50); layout.SetContentAlignment(ItemAlignment.HCenter); layout.SetSizePolicy(SizePolicy.Expand, SizePolicy.Fixed); layout.SetHeight(60); layout.SetSpacing(20); return(layout); }