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); }
public AvaloniaWindow(int width, int height) { ClientSize = new Avalonia.Size(width / PlatformImpl.DesktopScaling, height / PlatformImpl.DesktopScaling); }
/// <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)); }
/// <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); }