SignatureEditor.xaml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <ContentView xmlns="http://xamarin.com/schemas/2014/forms"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  4. xmlns:signaturePad="clr-namespace:Syncfusion.XForms.SignaturePad;assembly=Syncfusion.SfSignaturePad.XForms"
  5. x:Class="PRS.Mobile.SignatureEditor">
  6. <ContentView.Content>
  7. <Frame
  8. x:Name="_frame"
  9. BorderColor="Gray"
  10. CornerRadius="5"
  11. HasShadow="False"
  12. Padding="2"
  13. BackgroundColor="LightYellow"
  14. IsClippedToBounds="True">
  15. <Grid>
  16. <Label
  17. x:Name="_label"
  18. Text="Sign Here"
  19. TextColor="Silver"
  20. VerticalTextAlignment="Center"
  21. HorizontalTextAlignment="Center"
  22. FontSize="Large"/>
  23. <signaturePad:SfSignaturePad
  24. x:Name="signaturePad"
  25. BackgroundColor="Transparent"
  26. MaximumStrokeWidth="17"
  27. MinimumStrokeWidth="0.2"
  28. StrokeColor="Navy"
  29. StrokeCompleted="SignaturePad_OnStrokeCompleted"
  30. />
  31. <Image
  32. IsVisible="False"
  33. BackgroundColor="Transparent"
  34. x:Name="_preview"/>
  35. </Grid>
  36. </Frame>
  37. </ContentView.Content>
  38. </ContentView>