File tree Expand file tree Collapse file tree 3 files changed +42
-0
lines changed
Microsoft.Toolkit.Diagnostics Expand file tree Collapse file tree 3 files changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ <Page
2+ x : Class =" SmokeTest.MainPage"
3+ xmlns =" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4+ xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
5+ xmlns : local =" using:SmokeTest"
6+ xmlns : d =" http://schemas.microsoft.com/expression/blend/2008"
7+ xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
8+ mc : Ignorable =" d"
9+ Background =" {ThemeResource ApplicationPageBackgroundThemeBrush}" >
10+
11+ <Grid >
12+ <StackPanel HorizontalAlignment =" Center" VerticalAlignment =" Center" Width =" 200" >
13+ <TextBox x : Name =" textBox" Text =" text" />
14+ <Button Content =" Is not null or empty?" Click =" Button_Click" HorizontalAlignment =" Center" />
15+ <TextBlock x : Name =" textBlock" />
16+ </StackPanel >
17+ </Grid >
18+ </Page >
Original file line number Diff line number Diff line change 1+ // Licensed to the .NET Foundation under one or more agreements.
2+ // The .NET Foundation licenses this file to you under the MIT license.
3+ // See the LICENSE file in the project root for more information.
4+
5+ using Microsoft . Toolkit . Diagnostics ;
6+
7+ namespace SmokeTest
8+ {
9+ public sealed partial class MainPage
10+ {
11+ public MainPage ( )
12+ {
13+ InitializeComponent ( ) ;
14+ }
15+
16+ private void Button_Click ( object sender , Windows . UI . Xaml . RoutedEventArgs e )
17+ {
18+ Guard . IsNotNullOrEmpty ( textBox . Text , nameof ( textBox ) ) ;
19+
20+ textBlock . Text = "Ok" ;
21+ }
22+ }
23+ }
Original file line number Diff line number Diff line change 77 <ToolkitPackages >
88 UWPBaseline;
99 Microsoft.Toolkit;
10+ Microsoft.Toolkit.Diagnostics;
1011 Microsoft.Toolkit.HighPerformance;
1112 Microsoft.Toolkit.Mvvm;
1213 Microsoft.Toolkit.Parsers;
You can’t perform that action at this time.
0 commit comments