Guest User

Untitled

a guest
Nov 19th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. <ResourceDictionary x:Name="myResDic" >
  2.  
  3. <!-- Styles -->
  4. <Color x:Key="grayDark">#959595</Color>
  5. <Style x:Key="buttonStyle" TargetType="Button">
  6. <Setter Property="TextColor" Value="#4fddb7" />
  7. <Setter Property="BorderRadius" Value="4" />
  8. <Setter Property="FontSize" Value="Small" />
  9. <Setter Property="BackgroundColor" Value="{StaticResource grayDark}" />
  10. <Setter Property="HeightRequest">
  11. <Setter.Value>
  12. <OnPlatform x:TypeArguments="x:Double" iOS="40" Android="50" />
  13. </Setter.Value>
  14. </Setter>
  15. </Style>
  16. <Style x:Key="wizardButton" TargetType="Button" BasedOn="{StaticResource buttonStyle}">
  17. <Setter Property="BackgroundColor" Value="#3FFF" />
  18. <Setter Property="BorderColor" Value="#AFFF" />
  19. <Setter Property="TextColor" Value="#4fddb7" />
  20. <Setter Property="BorderWidth" Value=".5" />
  21. </Style>
  22.  
  23. <controls:FacebookLoginButton Text="Login with Facebook" Image="facebook.png" VerticalOptions="EndAndExpand" Style="{StaticResource wizardButton}"/>
  24.  
  25. <Button Text="Skip" Style="{StaticResource wizardButton}"/>
  26.  
  27.  
  28. public class FacebookLoginButton : Button
  29. {
  30. public FacebookLoginButton()
  31. {
  32.  
  33. }
  34. }
  35.  
  36. [assembly: Xamarin.Forms.ExportRenderer(typeof(FacebookLoginButton), typeof(FacebookLoginButtonRendererAndroid))]
  37. namespace myApp.Droid
  38. {
  39. public class FacebookLoginButtonRendererAndroid : ButtonRenderer
  40. {
  41. private static Activity _activity;
  42. public FacebookLoginButtonRendererAndroid(Context context)
  43. : base(context)
  44. {
  45. }
Add Comment
Please, Sign In to add comment