Esempio n. 1
0
        public void SetBounds(int x, int y, int width, int height)
        {
            this.Position = new Avalonia.PixelPoint(x, y);
            ClientSize    = new Avalonia.Size(width / PlatformImpl.DesktopScaling, height / PlatformImpl.DesktopScaling);

            this.Panel.Resize(width, height);
        }
Esempio n. 2
0
 public AvaloniaWindow(int width, int height)
 {
     ClientSize = new Avalonia.Size(width / PlatformImpl.DesktopScaling, height / PlatformImpl.DesktopScaling);
 }
Esempio n. 3
0
 /// <summary>
 /// Measures the override.
 /// </summary>
 /// <param name="availableSize">Size of the available.</param>
 /// <returns>Size.</returns>
 protected override Size MeasureOverride(Size availableSize)
 {
     return(new Size(0, 0));
 }
Esempio n. 4
0
 /// <summary>
 /// Arranges the override.
 /// </summary>
 /// <param name="finalSize">The final size.</param>
 /// <returns>Size.</returns>
 protected override Size ArrangeOverride(Size finalSize)
 {
     Child.Measure(finalSize);
     base.ArrangeOverride(finalSize);
     return(finalSize);
 }