1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <ContentPage xmlns =" http://schemas.microsoft.com/dotnet/2021/maui"
3+ xmlns : x =" http://schemas.microsoft.com/winfx/2009/xaml"
4+ xmlns : input =" clr-namespace:InputKit.Shared.Controls;assembly=InputKit.Maui"
5+ xmlns : vm =" clr-namespace:SandboxMAUI.ViewModels"
6+ x : Class =" SandboxMAUI.Pages.AdvancedEntryPage"
7+ Title =" AdvancedEntryPage"
8+ BackgroundColor =" White" >
9+ <ContentPage .BindingContext>
10+ <vm : AdvancedEntryPageViewModel />
11+ </ContentPage .BindingContext>
12+ <ScrollView >
13+ <StackLayout Padding =" 30" >
14+ <Label Text =" You can see FormView Below:" />
15+ <BoxView HeightRequest =" 1" Color =" LightGray" />
16+ <input : FormView IsValidated =" {Binding IsValidated}" >
17+
18+ <input : AdvancedEntry
19+ Title =" Place your email below:"
20+ Annotation =" Email"
21+ AnnotationColor =" {StaticResource PrimaryColor}"
22+ IconImage =" email.png"
23+ IsRequired =" True"
24+ MaxLength =" 50"
25+ MinLength =" 10"
26+ 27+ Text =" {Binding Email}"
28+ TextColor =" Black"
29+ ValidationMessage =" Please type a valid email address"
30+ ValidationPosition =" Before" />
31+
32+ <input : AdvancedEntry
33+ Title =" Place your name below:"
34+ Annotation =" NonDigitsOnly"
35+ AnnotationColor =" {StaticResource PrimaryColor}"
36+ IconImage =" account.png"
37+ IsRequired =" True"
38+ MaxLength =" 30"
39+ MinLength =" 5"
40+ Placeholder =" John Doe"
41+ Text =" {Binding NameSurname}"
42+ TextColor =" Black"
43+ ValidationMessage =" Please type your name correctly"
44+ ValidationPosition =" After" />
45+
46+ <input : AdvancedEntry
47+ Title =" Place your phone number below:"
48+ Annotation =" Phone"
49+ AnnotationColor =" {StaticResource PrimaryColor}"
50+ IconImage =" phone.png"
51+ IsRequired =" True"
52+ MaxLength =" 10"
53+ MinLength =" 8"
54+ Placeholder =" 5439998877"
55+ Text =" {Binding Phone}"
56+ TextColor =" Black"
57+ ValidationMessage =" Please type your phone number correctly" />
58+ <Label Text =" Choose your subscription type:" />
59+ <input : RadioButtonGroupView IsRequired =" True" >
60+ <input : RadioButton Text =" Free" />
61+ <input : RadioButton Text =" Bronze" />
62+ <input : RadioButton Text =" Gold" />
63+ <input : RadioButton Text =" Platinium" />
64+ </input : RadioButtonGroupView >
65+
66+ <input : CheckBox
67+ IsRequired =" True"
68+ Text =" I Accept User Agreement"
69+ Type =" Material" />
70+ <Button
71+ Margin =" 0,20"
72+ BackgroundColor =" {StaticResource PrimaryColor}"
73+ Command =" {Binding SubmitCommand}"
74+ CornerRadius =" 20"
75+ Text =" Submit"
76+ TextColor =" White" />
77+ </input : FormView >
78+ </StackLayout >
79+ </ScrollView >
80+ </ContentPage >
0 commit comments