microsoft / microsoft-ui-xaml

Windows UI Library: the latest Windows 10 native controls and Fluent styles for your applications
MIT License
6.35k stars 677 forks source link

Proposal: Add Native support to datagrid #8543

Open ghostidentity opened 1 year ago

ghostidentity commented 1 year ago

Summary As of my knowledge cutoff in September 2021, WinUI 3 did not have a native DataGrid control. To use a DataGrid in WinUI 3, developers had to rely on third-party libraries or community toolkits, such as the Windows Community Toolkit.

source: chatgpt

Problem: One of the problem is that, without native support it's difficult to know what properties are available when using Live Visual Tree; it's empty. So without visual designer and ability to see what properties are available, it's difficult to develop solution with datagrid.

image

Aurumaker72 commented 1 year ago

WinUI2 and WinUI3 don't have a built-in DataGrid, and the issue you described is related to the WCT DataGrid, so I'd recommend posting that there.

https://github.com/CommunityToolkit/WindowsCommunityToolkit/issues/new/choose

michael-hawker commented 1 year ago

@Aurumaker72 I've noticed this too with other controls beyond just DataGrid. I think the root issue here is that in VS the Live Property Inspector isn't showing properties from non-native controls. So this isn't specific to the Toolkit, this is a Visual Studio/tooling issue that effects the toolkit and controls, like DataGrid, within it.

Propose this issue be renamed: "Live Property Explorer doesn't show properties from custom control of third-party libraries".