Understanding WinUI and UWP
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.WinUI
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 Microsoft.UI
| Microsoft.UI.Xaml.Controls
, as illustrated in the following screenshot:
All of the available WinUI controls can be found inside the Microsoft.UI.Xaml.Controls
namespace, 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 Microsoft.UI.Xaml.Controls.ListView
| Base Types, and select the ListViewBase...