Guest User

Untitled

a guest
Jun 25th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. <local:MyEntry x:Name="txtFirstName"
  2. Placeholder="First Name"
  3. Keyboard="Text"
  4. TextColor="DarkBlue"
  5. PlaceholderColor="DarkBlue"
  6. Completed="NameCompleted"
  7. HorizontalOptions="Start"
  8. WidthRequest="300"
  9. Text="{Binding FirstName, Mode=TwoWay}"
  10. />
  11.  
  12. <local:MyEntry x:Name="txtLastName"
  13. Placeholder="Last Name"
  14. Keyboard="Text"
  15. TextColor="DarkBlue"
  16. PlaceholderColor="DarkBlue"
  17. Completed="NameCompleted"
  18. HorizontalOptions="Start"
  19. WidthRequest="300"
  20. Text="{Binding Surname, Mode=TwoWay}"
  21. />
  22.  
  23. protected override void OnElementChanged(ElementChangedEventArgs<Entry> e)
  24. {
  25. base.OnElementChanged(e);
  26.  
  27. if (Control != null)
  28. {
  29. Control.SetRawInputType(InputTypes.TextFlagNoSuggestions | InputTypes.TextCapSentences);
  30. Control.Background.SetColorFilter(Android.Graphics.Color.Black, PorterDuff.Mode.SrcAtop);
  31. }
  32. }
Add Comment
Please, Sign In to add comment