The Main Page Logic
Listing 1.3 shows the initial contents of MainPage.xaml.cs
, the code-behind file for MainPage.xaml
. Until we add our own logic, it contains only a required call to InitializeComponent
that constructs the page with all the visuals defined in the XAML file. The class is marked with the partial
keyword because its definition is shared with a hidden C# file that gets generated when the XAML file is compiled.
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; ...
Get Universal Windows® Apps with XAML and C# Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.