Example #1
0
        public CustomButton()
        {
            TexButtonValue = new CustomLabel();
            TapButtonValue = new TapViewBehavior();

            Margin = new Thickness(0, 5);
            //BackgroundGradientStartColor = App.Style.SecondaryDarkColor;
            BackgroundColor = App.Style.Accent;
            CornerRadius    = new CornerRadius(25, 0, 25, 25);
            Content         = new StackLayout
            {
                Orientation = StackOrientation.Horizontal,
                Padding     = new Thickness(15),
                Children    =
                {
                    AddText(),
                }
            };
            Behaviors.Add(AddTapBehavior());
        }
Example #2
0
 private Xamarin.Forms.Behavior AddTapBehavior()
 {
     TapButtonValue = new TapViewBehavior();
     return(TapButtonValue);
 }