|
16 | 16 | Width="560"
|
17 | 17 | HorizontalAlignment="Left"
|
18 | 18 | Header="Enter your first:"
|
| 19 | + InputScope="NameOrPhoneNumber" |
19 | 20 | IsSpellCheckEnabled="False"
|
20 | 21 | PlaceholderText="First name"
|
21 | 22 | Text="{x:Bind ViewModel.Form.FirstName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
22 | 23 | <TextBox
|
23 | 24 | Width="560"
|
24 | 25 | HorizontalAlignment="Left"
|
25 | 26 | Header="Enter your last name:"
|
| 27 | + InputScope="NameOrPhoneNumber" |
26 | 28 | IsSpellCheckEnabled="False"
|
27 | 29 | PlaceholderText="Last name"
|
28 | 30 | Text="{x:Bind ViewModel.Form.LastName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
29 | 31 | <TextBox
|
30 | 32 | Width="560"
|
31 | 33 | HorizontalAlignment="Left"
|
32 | 34 | Header="Enter your email address:"
|
| 35 | + InputScope="EmailNameOrAddress" |
33 | 36 | IsSpellCheckEnabled="False"
|
34 | 37 | PlaceholderText="Email"
|
35 | 38 | Text="{x:Bind ViewModel.Form.Email, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
| 39 | + <TextBox |
| 40 | + Width="560" |
| 41 | + HorizontalAlignment="Left" |
| 42 | + Header="Enter your phone number:" |
| 43 | + InputScope="NameOrPhoneNumber" |
| 44 | + IsSpellCheckEnabled="False" |
| 45 | + PlaceholderText="Phone number" |
| 46 | + Text="{x:Bind ViewModel.Form.PhoneNumber, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" /> |
36 | 47 |
|
37 | 48 | <Button Command="{x:Bind ViewModel.Form.SubmitCommand}" Content="Submit" />
|
38 | 49 |
|
|
62 | 73 | Message="The form was filled in with some errors."
|
63 | 74 | Severity="Error">
|
64 | 75 | <muxc:InfoBar.ActionButton>
|
65 |
| - <Button Content="Show errors" Command="{x:Bind ViewModel.Form.ShowErrorsCommand}" /> |
| 76 | + <Button Command="{x:Bind ViewModel.Form.ShowErrorsCommand}" Content="Show errors" /> |
66 | 77 | </muxc:InfoBar.ActionButton>
|
67 | 78 | <interactivity:Interaction.Behaviors>
|
68 | 79 | <interactions:EventTriggerBehavior EventName="FormSubmissionFailed" SourceObject="{x:Bind ViewModel.Form}">
|
|
0 commit comments