Пример #1
0
 private void Paint(CustomButtons view)
 {
     this.Layer.CornerRadius    = (float)view.CustomBorderRadius;
     this.Layer.BorderColor     = view.CustomBorderColor.ToCGColor();
     this.Layer.BackgroundColor = view.CustomBackgroundColor.ToCGColor();
     this.Layer.BorderWidth     = (int)view.CustomBorderWidth;
 }
Пример #2
0
        private void View_Load(object sender, EventArgs e)
        {
            pinUp.Hide();
            UpdateProperties();
            Properties.Settings.Default.PropertyChanged += new PropertyChangedEventHandler(Default_PropertyChanged);

            CustomButtons.LoadButtons(Properties.Settings.Default.CahceDirectory + "buttons\\CustomView.wwtb");
        }
 private void Paint(CustomButtons view)
 {
     _gradientBackground = new GradientDrawable();
     _gradientBackground.SetShape(ShapeType.Rectangle);
     _gradientBackground.SetColor(view.CustomBackgroundColor.ToAndroid());
     _gradientBackground.SetStroke((int)view.CustomBorderWidth, view.CustomBorderColor.ToAndroid());
     _gradientBackground.SetCornerRadius(DpToPixels(this.Context, Convert.ToSingle(view.CustomBorderRadius)));
     Control.SetBackground(_gradientBackground);
 }
 private void Paint(CustomButtons view)
 {
     _gradientBackground = new GradientDrawable();
     _gradientBackground.SetShape(ShapeType.Rectangle);
     _gradientBackground.SetColor(view.CustomBackgroundColor.ToAndroid());
     // Thickness of the stroke line
     _gradientBackground.SetStroke((int)view.CustomBorderWidth, view.CustomBorderColor.ToAndroid());
     // Radius for the curves
     _gradientBackground.SetCornerRadius(
         DpToPixels(this.Context, Convert.ToSingle(view.CustomBorderRadius)));
     // set the background of the label
     Control.SetBackground(_gradientBackground);
 }
Пример #5
0
 public bool AllowCrud()
 {
     return(AllowCreate || AllowEdit || AllowDelete || AllowView || CustomButtons.Any());
 }
Пример #6
0
 private void View_FormClosing(object sender, FormClosingEventArgs e)
 {
     CustomButtons.Save();
 }