diff --git a/samples/IntegrationTestApp/ShowWindowTest.axaml.cs b/samples/IntegrationTestApp/ShowWindowTest.axaml.cs index bc4a43b7e6a..6dfc3825a09 100644 --- a/samples/IntegrationTestApp/ShowWindowTest.axaml.cs +++ b/samples/IntegrationTestApp/ShowWindowTest.axaml.cs @@ -72,7 +72,7 @@ private void TimerOnTick(object? sender, EventArgs e) _orderTextBox!.Text = MacOSIntegration.GetOrderedIndex(this).ToString(); } - private void AddToWidth_Click(object? sender, RoutedEventArgs e) => Width += 10; - private void AddToHeight_Click(object? sender, RoutedEventArgs e) => Height += 10; + private void AddToWidth_Click(object? sender, RoutedEventArgs e) => Width = Bounds.Width + 10; + private void AddToHeight_Click(object? sender, RoutedEventArgs e) => Height = Bounds.Height + 10; } }