Example #1
0
        public override void SetLayout(Layout inner)
        {
            foreach (Gtk.Widget child in hbox.Children)
            {
                hbox.Remove(child);
            }
            IGtkLayout gtklayout = (IGtkLayout)inner.Handler;

            hbox.PackStart(gtklayout.ContainerObject, false, true, 0);
            //vp.Add ((Gtk.Widget)gtklayout.ContainerObject);
        }
Example #2
0
        public override void SetLayout(Layout inner)
        {
            if (box.Children.Length > 0)
            {
                foreach (Gtk.Widget child in box.Children)
                {
                    box.Remove(child);
                }
            }
            IGtkLayout gtklayout       = (IGtkLayout)inner.Handler;
            var        containerWidget = (Gtk.Widget)gtklayout.ContainerObject;

            box.Add(containerWidget);
            containerWidget.ShowAll();
        }
Example #3
0
        public override void SetLayout(Layout inner)
        {
            if (Control.Children.Length > 0)
            {
                foreach (Gtk.Widget child in Control.Children)
                {
                    Control.Remove(child);
                }
            }
            IGtkLayout gtklayout       = (IGtkLayout)inner.Handler;
            var        containerWidget = (Gtk.Widget)gtklayout.ContainerObject;

            Control.PackStart(containerWidget);
            containerWidget.ShowAll();
        }
Example #4
0
        public override void SetLayout(Layout inner)
        {
            IGtkLayout gtklayout = (IGtkLayout)inner.Handler;

            if (containerBox.Children.Length > 0)
            {
                foreach (Gtk.Widget child in containerBox.Children)
                {
                    containerBox.Remove(child);
                }
            }
            var containerWidget = (Gtk.Widget)gtklayout.ContainerObject;

            containerBox.PackStart(containerWidget, true, true, 0);
            containerWidget.ShowAll();
        }
Example #5
0
        public override void SetLayout(Layout inner)
        {
            if (Control.Child != null)
            {
                Control.Remove(Control.Child);
            }
            IGtkLayout gtklayout = (IGtkLayout)inner.Handler;
            var        widget    = (Gtk.Widget)gtklayout.ContainerObject;

            Control.Add(widget);

            /*if (clientSize != null) {
             *      var label = Control.LabelWidget;
             *      Control.SetSizeRequest(clientSize.Value.Width + 10, clientSize.Value.Height + label.Allocation.Height + 10);
             *      clientSize = null;
             * }*/
        }