File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Microsoft.Toolkit.Uwp.SampleApp/SamplePages/StringExtensions Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 24
24
<RowDefinition Height =" *" />
25
25
</Grid .RowDefinitions>
26
26
<TextBlock HorizontalAlignment =" Right" Padding =" 5,0" Grid.Column=" 0" Grid.Row=" 0" >IsValidEmail</TextBlock >
27
- <TextBlock Grid.Column=" 1" Grid.Row=" 0" x : Name =" IsValidEmailResult" Foreground = " Blue " />
27
+ <TextBlock Grid.Column=" 1" Grid.Row=" 0" x : Name =" IsValidEmailResult" FontStyle = " Italic " />
28
28
29
29
<TextBlock HorizontalAlignment =" Right" Padding =" 5,0" Grid.Column=" 0" Grid.Row=" 1" >IsValidNumber</TextBlock >
30
- <TextBlock Grid.Column=" 1" Grid.Row=" 1" x : Name =" IsValidNumberResult" Foreground = " Blue " />
30
+ <TextBlock Grid.Column=" 1" Grid.Row=" 1" x : Name =" IsValidNumberResult" FontStyle = " Italic " />
31
31
32
32
<TextBlock HorizontalAlignment =" Right" Padding =" 5,0" Grid.Column=" 0" Grid.Row=" 2" >IsValidDecimal</TextBlock >
33
- <TextBlock Grid.Column=" 1" Grid.Row=" 2" x : Name =" IsValidDecimalResult" Foreground = " Blue " />
33
+ <TextBlock Grid.Column=" 1" Grid.Row=" 2" x : Name =" IsValidDecimalResult" FontStyle = " Italic " />
34
34
35
35
<TextBlock HorizontalAlignment =" Right" Padding =" 5,0" Grid.Column=" 0" Grid.Row=" 3" >IsValidString</TextBlock >
36
- <TextBlock Grid.Column=" 1" Grid.Row=" 3" x : Name =" IsValidStringResult" Foreground = " Blue " />
36
+ <TextBlock Grid.Column=" 1" Grid.Row=" 3" x : Name =" IsValidStringResult" FontStyle = " Italic " />
37
37
38
38
<TextBlock HorizontalAlignment =" Right" Padding =" 5,0" Grid.Column=" 0" Grid.Row=" 4" >IsValidPhoneNumber</TextBlock >
39
- <TextBlock Grid.Column=" 1" Grid.Row=" 4" x : Name =" IsValidPhoneNumberResult" Foreground = " Blue " />
39
+ <TextBlock Grid.Column=" 1" Grid.Row=" 4" x : Name =" IsValidPhoneNumberResult" FontStyle = " Italic " />
40
40
</Grid >
41
41
</StackPanel >
42
42
</Grid >
Original file line number Diff line number Diff line change @@ -35,10 +35,10 @@ private void ValidateCurrentText()
35
35
IsValidDecimalResult . FontWeight = InputTextBox . Text . IsDecimal ( ) ? FontWeights . Bold : FontWeights . Normal ;
36
36
37
37
IsValidStringResult . Text = InputTextBox . Text . IsCharacterString ( ) . ToString ( ) ;
38
- IsValidPhoneNumberResult . FontWeight = InputTextBox . Text . IsCharacterString ( ) ? FontWeights . Bold : FontWeights . Normal ;
38
+ IsValidStringResult . FontWeight = InputTextBox . Text . IsCharacterString ( ) ? FontWeights . Bold : FontWeights . Normal ;
39
39
40
40
IsValidPhoneNumberResult . Text = InputTextBox . Text . IsPhoneNumber ( ) . ToString ( ) ;
41
41
IsValidPhoneNumberResult . FontWeight = InputTextBox . Text . IsPhoneNumber ( ) ? FontWeights . Bold : FontWeights . Normal ;
42
42
}
43
43
}
44
- }
44
+ }
You can’t perform that action at this time.
0 commit comments