Difference between namespace Windows.UI.Xaml.Controls and Microsoft.UI.Xaml.Controls
Asked Answered
L

1

5

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.

Labors answered 1/7, 2020 at 7:43 Comment(1)
See here: github.com/microsoft/microsoft-ui-xaml/issues/998Mandelbaum
D
7

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.

Dominiquedominium answered 1/7, 2020 at 12:36 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.