Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <local:MyEntry x:Name="txtFirstName"
- Placeholder="First Name"
- Keyboard="Text"
- TextColor="DarkBlue"
- PlaceholderColor="DarkBlue"
- Completed="NameCompleted"
- HorizontalOptions="Start"
- WidthRequest="300"
- Text="{Binding FirstName, Mode=TwoWay}"
- />
- <local:MyEntry x:Name="txtLastName"
- Placeholder="Last Name"
- Keyboard="Text"
- TextColor="DarkBlue"
- PlaceholderColor="DarkBlue"
- Completed="NameCompleted"
- HorizontalOptions="Start"
- WidthRequest="300"
- Text="{Binding Surname, Mode=TwoWay}"
- />
- protected override void OnElementChanged(ElementChangedEventArgs<Entry> e)
- {
- base.OnElementChanged(e);
- if (Control != null)
- {
- Control.SetRawInputType(InputTypes.TextFlagNoSuggestions | InputTypes.TextCapSentences);
- Control.Background.SetColorFilter(Android.Graphics.Color.Black, PorterDuff.Mode.SrcAtop);
- }
- }
Add Comment
Please, Sign In to add comment