Last Updated:
14 Aug 2025 11:27
by Jack
DataGrid: [WinUI] Not displayed in the NavigationView's Content when setting the Content through the NavigationItem Command
The bug occurs when dynamically swapping the content of a RadNavigationView in a .NET MAUI application on Windows: if you replace the content with a new instance of a complex control like RadDataGrid (e.g., by setting navigationView.Content = new SampleContentView() in response to navigation or button clicks), the grid may not render or appear at all. This issue does not affect Android or other platforms and is caused by the Windows platform's failure to properly re-measure and re-render the visual tree when the navigation view's content is replaced at runtime, especially with third-party controls.