Understanding WinUI and Windows App SDK
Let’s review the WinUI controls available to use in our project and see how they can help us build the My Media Collection application. The Microsoft.WindowsAppSDK
package we saw in Solution Explorer earlier in the chapter contains these controls and much more.
To view the contents of this package, open the Object Browser window from Visual Studio’s View menu. The controls will be listed here under several namespaces inside the Microsoft.WinUI tree node, as illustrated in the following screenshot:
Figure 2.13 – WinUI controls in Object Browser
The majority of WinUI controls we will be using can be found inside the Microsoft.UI.Xaml.Controls namespace under Microsoft.WinUI, along with other related classes and interfaces.
So far, we have used in our application the Grid
, TextBlock
, and ListView
controls. Open the Object Browser window from the View menu. Then, find the ListView
class, expand...