-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMainPage.xaml.cs
More file actions
30 lines (26 loc) · 806 Bytes
/
MainPage.xaml.cs
File metadata and controls
30 lines (26 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using System.Runtime.InteropServices;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
namespace MileXamlBlankAppNetFrameworkModern
{
public sealed partial class MainPage : Page
{
public string FrameworkDescription => RuntimeInformation.FrameworkDescription;
public MainPage()
{
InitializeComponent();
}
private async void Button_Click(object sender, RoutedEventArgs e)
{
var contentDialog = new ContentDialog
{
Title = "Hello world",
Content = "Where do you want to go today?",
PrimaryButtonText = "OK",
XamlRoot = (sender as Button).XamlRoot,
};
await contentDialog.ShowAsync();
}
}
}