Example #1
0
        private TitleBar(DockPane pane, bool isheader)
        {
            TitleBar.SmallFont = TitleBar.SmallFont ?? Xwt.Drawing.Font.SystemFont.WithSize(6);

            this.IsHeader        = isheader;
            this.pane            = pane;
            this.MinHeight       = HeightRequest = TitleBar.TitleBarHeight;
            this.BackgroundColor = DockPanel.TitlebarColor;

            this.buttons = new Buttons(this);
            //        this.buttons.ExpandHorizontal = false;
            //      this.buttons.ExpandVertical = true;
            this.AddChild(this.buttons);

            this.scrollwindow = new ScrollButtons(this);
            this.AddChild(this.scrollwindow);
        }
 public static void SetScrollButtons(DependencyObject obj, ScrollButtons value)
 {
     obj.SetValue(ScrollButtonsProperty, value);
 }