Reputation: 5748
I wish to learn how to build native WPF desktop app, by applying some modern UI (Like navigation view) from UWP.
However, I'm getting rather confused, with same class name, but different namespace
I was wondering, which is which, and which I should use in my WPF project?
Thanks.
Upvotes: 5
Views: 3504
Reputation: 169400
Microsoft.UI.Xaml.Controls
is the namespace used in the WinUI library.
Windows.UI.Xaml.Controls
is the namespace of the native controls that are included in Windows.
Microsoft is currently in the progress of breaking out the entire interface layer that contains the modern Windows controls and styles from the operating system into a separate WinUI 3 framework that will ship later this year.
So to answer your question about which one to use, Microsoft.UI.Xaml.Controls
is the namespace to use going forward.
Upvotes: 7