Welcome to the WinUI feedback portal. We’re happy you’re here! If you have feedback on how to improve the WinUI, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote
STEPS TO REPRODUCE THE PROBLEM:

Step 1) Create a simple WinUI 3 Desktop that loads a MainPage.xaml in the Content element of MainWindow.  The MainPage.xaml file should contain a ScrollViewer wrapping a Grid with two columns with each column containing a nested grid.
In the red nested grid on the left, bind a SF DataGrid to a list of Friends which is created in the code behind.  

MainWindow.xaml.cs file:
==================================
using Microsoft.UI.Xaml;
namespace TestSFGrid;
public sealed partial class MainWindow : Window
{
    public MainWindow()
    {
        InitializeComponent();
        Content = new MainPage();
    }
}


MainPage.xaml file:
==================================
This editor does not allow me to post XAML so I'll attach a screen capture below. (really guys?)

MainPage.xaml.cs code behind file:
==================================
using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Input;
using System.Collections.Generic;

namespace TestSFGrid;

public sealed partial class MainPage : Page
{
    public List Friends { get; set; } = new();
    public MainPage()
    {
        this.InitializeComponent();
        Friends.Add(new Friend("Sally", 23));
        Friends.Add(new Friend("John", 47));
    }

    private void Grid_KeyDown(object sender, KeyRoutedEventArgs e)
    {
        if (e.Key == Windows.System.VirtualKey.Escape)
            PageScroller.ChangeView(null, null, 1);
    }
}

Friend.cs class file:
==================================
namespace TestSFGrid;
public class Friend
{
    public Friend(string name, int age)
    {
        Name = name;
        Age = age;
    }
    public string Name { get; set; }
    public int Age { get; set; }
}

Step 2) Run the program.  The two Grid columns, red and green, will appear -- each taking half the space of your normalized window (since star sizing is the default).

Now maximize the window full screen using the maximize icon or by pressing the Windows key and the up arrow.  The maximized window will appear as expected.

PROBLEM:
When the window is normalized again, A LARGE WHITE SPACE WILL APPEAR BETWEEN THE RED AND GREEN COLUMNS.

THE ONLY WORK AROUND IS TO REMOVE THE GRID OR REMOVE THE SURROUNDING SCROLLVIEWER:
If the SF DataGrid is commented out, the appearance and layout of the red and green grid columns will behave as expected when maximizing and then re-normalizing.
Alternatively, if the ScrollViewer is removed, the window will also layout as expected.

Note the outer grid contains a KeyDown event and the handler in the code behind resets the zoom when the ESC key is pressed.  This is just for your convenience when testing the zoom (hold ctrl key while scrolling in our out).  However, actually zooming or resetting the zoom is irrelevant to reproducing this bug.