microsoft / microsoft-ui-xaml

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

WinUI 3 - C++ item templates shouldn't use .xaml suffix #5774

Open JaiganeshKumaran opened 3 years ago

JaiganeshKumaran commented 3 years ago

In C++/WinRT, XAML files don't have a .xaml suffix unlike C++/CX and C# but eg: the code behind files for MainPage.xaml are MainPage.idl, MainPage.h and MainPage.cpp and not MainPage.xaml.idl, MainPage.xaml.h, MainPage.xaml.cpp however the item templates for WinUI 3 uses the .xaml suffix which is inconsistent with the generated files such as MainPage.g.h or MainPage.g.cpp. I would recommend dropping the .xaml suffix for C++ project in order to be consistent with the tooling and UWP XAML item templates.

JaiganeshKumaran commented 3 years ago

In C++/CX and C#, the .xaml suffix makes sense because you could have another file named MainPage.cs with a partial class but you can't in C++/WinRT so it's redundant.

StephenLPeters commented 3 years ago

@evelynwu-msft FYI

evelynwu-msft commented 2 years ago

Thanks for the feedback.