Ejemplo n.º 1
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);
            }
Ejemplo n.º 2
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));
            }
Ejemplo n.º 3
0
 public void @this(double n1, double n2)
 {
     //XMLVM_BEGIN_WRAPPER[Compatlib.System.Windows.Size: void <init>(double, double)]
     size = new global::System.Windows.Size(n1, n2);
     //XMLVM_END_WRAPPER[Compatlib.System.Windows.Size: void <init>(double, double)]
 }
Ejemplo n.º 4
0
        public void @this(double n1, double n2)
        {
//XMLVM_BEGIN_WRAPPER[Compatlib.System.Windows.Size: void <init>(double, double)]
            size = new global::System.Windows.Size(n1, n2);
//XMLVM_END_WRAPPER[Compatlib.System.Windows.Size: void <init>(double, double)]
        }