- Notifications
You must be signed in to change notification settings - Fork 256
/
Copy pathNameReporter.xaml.cs
36 lines (33 loc) · 1.05 KB
/
NameReporter.xaml.cs
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
31
32
33
34
35
36
usingMicrosoft.UI.Xaml;
usingMicrosoft.UI.Xaml.Controls;
usingMicrosoft.UI.Xaml.Controls.Primitives;
usingMicrosoft.UI.Xaml.Data;
usingMicrosoft.UI.Xaml.Input;
usingMicrosoft.UI.Xaml.Media;
usingMicrosoft.UI.Xaml.Navigation;
usingSystem;
usingSystem.Collections.Generic;
usingSystem.IO;
usingSystem.Linq;
usingSystem.Runtime.InteropServices.WindowsRuntime;
usingSystem.Text;
usingWindows.Foundation;
usingWindows.Foundation.Collections;
// To learn more about WinUI, the WinUI project structure,
// and more about our project templates, see: http://aka.ms/winui-project-info.
namespaceWinUIComponentCs
{
publicsealedpartialclassNameReporter:UserControl
{
publicNameReporter()
{
this.InitializeComponent();
}
privatevoidButton_Click(objectsender,RoutedEventArgse)
{
StringBuilderdisplayText=newStringBuilder("Hello, ");
displayText.AppendFormat("{0} {1}.",firstName.Text,lastName.Text);
result.Text=displayText.ToString();
}
}
}