示例#1
0
        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);
        }
示例#2
0
        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);
        }