public virtual void Insert(int n1, global::Compatlib.System.Windows.UIElement n2)
        {
//XMLVM_BEGIN_WRAPPER[Compatlib.System.Windows.Controls.UIElementCollection: void Insert(int, Compatlib.System.Windows.UIElement)]
            base.Insert(n1, n2);
            collection.Insert(n1, n2.element);
            n2.parent = owner;
//XMLVM_END_WRAPPER[Compatlib.System.Windows.Controls.UIElementCollection: void Insert(int, Compatlib.System.Windows.UIElement)]
        }
        public virtual void Remove(global::Compatlib.System.Windows.UIElement n1)
        {
//XMLVM_BEGIN_WRAPPER[Compatlib.System.Windows.Controls.UIElementCollection: void Remove(Compatlib.System.Windows.UIElement)]
            base.Remove(n1);
            collection.Remove(n1.element);
            n1.parent = null;
//XMLVM_END_WRAPPER[Compatlib.System.Windows.Controls.UIElementCollection: void Remove(Compatlib.System.Windows.UIElement)]
        }
Beispiel #3
0
        public virtual void setRootVisual(global::Compatlib.System.Windows.UIElement n1)
        {
//XMLVM_BEGIN_WRAPPER[Compatlib.System.Windows.Application: void setRootVisual(Compatlib.System.Windows.UIElement)]
            this.rootVisual        = n1;
            this.rootVisualChanged = true;
            this.changeRootVisual();
//XMLVM_END_WRAPPER[Compatlib.System.Windows.Application: void setRootVisual(Compatlib.System.Windows.UIElement)]
        }
        public virtual void Add(global::Compatlib.System.Windows.UIElement n1)
        {
//XMLVM_BEGIN_WRAPPER[Compatlib.System.Windows.Controls.UIElementCollection: void Add(Compatlib.System.Windows.UIElement)]
            collection.Add(n1.element);
            base.Add(n1);
            n1.parent = owner;
//XMLVM_END_WRAPPER[Compatlib.System.Windows.Controls.UIElementCollection: void Add(Compatlib.System.Windows.UIElement)]
        }
        public virtual global::System.Object GetPrimaryTouchPoint(global::Compatlib.System.Windows.UIElement n1)
        {
//XMLVM_BEGIN_WRAPPER[Compatlib.System.Windows.Input.TouchFrameEventArgs: Compatlib.System.Windows.Input.TouchPoint GetPrimaryTouchPoint(Compatlib.System.Windows.UIElement)]
            TouchPoint point = new TouchPoint();

            point.touchPoint = args.GetPrimaryTouchPoint(n1 != null ? n1.element : null);
            return(point);
//XMLVM_END_WRAPPER[Compatlib.System.Windows.Input.TouchFrameEventArgs: Compatlib.System.Windows.Input.TouchPoint GetPrimaryTouchPoint(Compatlib.System.Windows.UIElement)]
        }
Beispiel #6
0
            protected override global::System.Windows.Size MeasureOverride(global::System.Windows.Size availableSize)
            {
                Size size = new Size();

                size.size = availableSize;

                for (int i = 0; i < panel.children.getCount(); i++)
                {
                    global::Compatlib.System.Windows.UIElement child = (global::Compatlib.System.Windows.UIElement)panel.children._1_1access(i);
                    child.element.Measure(new global::System.Windows.Size(child.width, child.height));
                    //global::System.Diagnostics.Debug.WriteLine("Measured child: " + child.element.DesiredSize);
                }

                return(availableSize);
            }
Beispiel #7
0
        public virtual void setIsOpen(bool n1)
        {
//XMLVM_BEGIN_WRAPPER[Compatlib.System.Windows.Controls.Primitives.Popup: void setIsOpen(boolean)]
            global::Compatlib.System.Windows.Application app        = (global::Compatlib.System.Windows.Application)global::Compatlib.System.Windows.Application.getCurrent();
            global::Compatlib.System.Windows.UIElement   rootVisual = ((global::Compatlib.System.Windows.UIElement)app.getRootVisual());
            global::Compatlib.System.Windows.Controls.UIElementCollection collection = (global::Compatlib.System.Windows.Controls.UIElementCollection)((global::Compatlib.System.Windows.Controls.Panel)rootVisual).getChildren();
            if (n1)
            {
                collection.Add(this);
                //rootVisual.InvalidateMeasure();
                base.element.Measure(new global::System.Windows.Size(double.PositiveInfinity, double.PositiveInfinity));
                rootVisual.InvalidateArrange();
            }
            else
            {
                collection.Remove(this);
            }
            ((global::System.Windows.Controls.Primitives.Popup)base.element).IsOpen = n1;
//XMLVM_END_WRAPPER[Compatlib.System.Windows.Controls.Primitives.Popup: void setIsOpen(boolean)]
        }
Beispiel #8
0
            protected override global::System.Windows.Size ArrangeOverride(global::System.Windows.Size finalSize)
            {
                Size size = new Size();

                size.size = finalSize;

                for (int i = 0; i < panel.children.getCount(); i++)
                {
                    global::Compatlib.System.Windows.UIElement child = (global::Compatlib.System.Windows.UIElement)panel.children._1_1access(i);
                    global::Compatlib.System.Windows.Rect      rect  = new global::Compatlib.System.Windows.Rect();
                    int x = child.y;
                    int y = child.x;
                    rect.rect = new global::System.Windows.Rect(x, y, child.element.DesiredSize.Width, child.element.DesiredSize.Height);
                    if (child.element is global::System.Windows.Controls.Primitives.Popup)
                    {
                        rect.rect = new global::System.Windows.Rect(child.x, child.y, 800, 200);
                    }
                    //global::System.Diagnostics.Debug.WriteLine("Arranging child: " + rect.rect);
                    child.Arrange(rect);
                }

                return(panel.ArrangeOverride(size) != null ? ((System.Windows.Size)panel.ArrangeOverride(size)).size : base.ArrangeOverride(finalSize));
            }
Beispiel #9
0
        public virtual void setChild(global::Compatlib.System.Windows.UIElement n1)
        {
//XMLVM_BEGIN_WRAPPER[Compatlib.System.Windows.Controls.Primitives.Popup: void setChild(Compatlib.System.Windows.UIElement)]
            ((global::System.Windows.Controls.Primitives.Popup)base.element).Child = n1.element;
//XMLVM_END_WRAPPER[Compatlib.System.Windows.Controls.Primitives.Popup: void setChild(Compatlib.System.Windows.UIElement)]
        }