Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ResourceDictionary x:Name="myResDic" >
- <!-- Styles -->
- <Color x:Key="grayDark">#959595</Color>
- <Style x:Key="buttonStyle" TargetType="Button">
- <Setter Property="TextColor" Value="#4fddb7" />
- <Setter Property="BorderRadius" Value="4" />
- <Setter Property="FontSize" Value="Small" />
- <Setter Property="BackgroundColor" Value="{StaticResource grayDark}" />
- <Setter Property="HeightRequest">
- <Setter.Value>
- <OnPlatform x:TypeArguments="x:Double" iOS="40" Android="50" />
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="wizardButton" TargetType="Button" BasedOn="{StaticResource buttonStyle}">
- <Setter Property="BackgroundColor" Value="#3FFF" />
- <Setter Property="BorderColor" Value="#AFFF" />
- <Setter Property="TextColor" Value="#4fddb7" />
- <Setter Property="BorderWidth" Value=".5" />
- </Style>
- <controls:FacebookLoginButton Text="Login with Facebook" Image="facebook.png" VerticalOptions="EndAndExpand" Style="{StaticResource wizardButton}"/>
- <Button Text="Skip" Style="{StaticResource wizardButton}"/>
- public class FacebookLoginButton : Button
- {
- public FacebookLoginButton()
- {
- }
- }
- [assembly: Xamarin.Forms.ExportRenderer(typeof(FacebookLoginButton), typeof(FacebookLoginButtonRendererAndroid))]
- namespace myApp.Droid
- {
- public class FacebookLoginButtonRendererAndroid : ButtonRenderer
- {
- private static Activity _activity;
- public FacebookLoginButtonRendererAndroid(Context context)
- : base(context)
- {
- }
Add Comment
Please, Sign In to add comment