5 implementations of IBorderElement
Microsoft.Maui.Controls (5)
Button\Button.cs (1)
16 public partial class Button : View, IFontElement, ITextElement, IBorderElement, IButtonController, IElementConfiguration<Button>, IPaddingElement, IImageController, IViewController, IButtonElement, ICommandElement, IImageElement, IButton, ITextButton, IImageButton
CheckBox\CheckBox.cs (1)
8 public partial class CheckBox : View, IElementConfiguration<CheckBox>, IBorderElement, IColorElement, ICheckBox
Frame\Frame.cs (1)
11 public partial class Frame : ContentView, IElementConfiguration<Frame>, IPaddingElement, IBorderElement, IView, IContentView
ImageButton\ImageButton.cs (1)
14 public partial class ImageButton : View, IImageController, IElementConfiguration<ImageButton>, IBorderElement, IButtonController, IViewController, IPaddingElement, IButtonElement, ICommandElement, IImageElement, IImageButton
RadioButton\RadioButton.cs (1)
12 public partial class RadioButton : TemplatedView, IElementConfiguration<RadioButton>, ITextElement, IFontElement, IBorderElement, IRadioButton
66 references to IBorderElement
Microsoft.Maui.Controls (66)
BorderElement.cs (10)
11 /// <summary>Bindable property for <see cref="IBorderElement.BorderColor"/>.</summary> 13 BindableProperty.Create(nameof(IBorderElement.BorderColor), typeof(Color), typeof(IBorderElement), null, 16 /// <summary>Bindable property for <see cref="IBorderElement.BorderWidth"/>.</summary> 17 public static readonly BindableProperty BorderWidthProperty = BindableProperty.Create(nameof(IBorderElement.BorderWidth), typeof(double), typeof(IBorderElement), -1d); 19 /// <summary>Bindable property for <see cref="IBorderElement.CornerRadius"/>.</summary> 20 public static readonly BindableProperty CornerRadiusProperty = BindableProperty.Create(nameof(IBorderElement.CornerRadius), typeof(int), typeof(IBorderElement), defaultValue: DefaultCornerRadius); 24 ((IBorderElement)bindable).OnBorderColorPropertyChanged((Color)oldValue, (Color)newValue);
Button\Button.cs (10)
149 /// <remarks>This property has no effect if <see cref="IBorderElement.BorderWidth" /> is set to 0. On Android this property will not have an effect unless <see cref="VisualElement.BackgroundColor" /> is set to a non-default color.</remarks> 411 int IBorderElement.CornerRadiusDefaultValue => (int)CornerRadiusProperty.DefaultValue; 413 Color IBorderElement.BorderColorDefaultValue => (Color)BorderColorProperty.DefaultValue; 415 double IBorderElement.BorderWidthDefaultValue => (double)BorderWidthProperty.DefaultValue; 427 void IBorderElement.OnBorderColorPropertyChanged(Color oldValue, Color newValue) 443 bool IBorderElement.IsCornerRadiusSet() => IsSet(CornerRadiusProperty); 444 bool IBorderElement.IsBackgroundColorSet() => IsSet(BackgroundColorProperty); 445 bool IBorderElement.IsBackgroundSet() => IsSet(BackgroundProperty); 446 bool IBorderElement.IsBorderColorSet() => IsSet(BorderColorProperty); 447 bool IBorderElement.IsBorderWidthSet() => IsSet(BorderWidthProperty);
CheckBox\CheckBox.cs (12)
60 void IBorderElement.OnBorderColorPropertyChanged(Color oldValue, Color newValue) 64 Color IBorderElement.BorderColor => Colors.Transparent; 65 int IBorderElement.CornerRadius => 0; 66 double IBorderElement.BorderWidth => 0; 67 int IBorderElement.CornerRadiusDefaultValue => 0; 68 Color IBorderElement.BorderColorDefaultValue => Colors.Transparent; 69 double IBorderElement.BorderWidthDefaultValue => 0; 70 bool IBorderElement.IsCornerRadiusSet() => false; 71 bool IBorderElement.IsBackgroundColorSet() => IsSet(BackgroundColorProperty); 72 bool IBorderElement.IsBackgroundSet() => IsSet(BackgroundProperty); 73 bool IBorderElement.IsBorderColorSet() => false; 74 bool IBorderElement.IsBorderWidthSet() => false;
Frame\Frame.cs (14)
57 int IBorderElement.CornerRadius => (int)CornerRadius; 59 double IBorderElement.BorderWidth => 1; 61 int IBorderElement.CornerRadiusDefaultValue => (int)CornerRadiusProperty.DefaultValue; 63 Color IBorderElement.BorderColorDefaultValue => (Color)BorderColorProperty.DefaultValue; 65 double IBorderElement.BorderWidthDefaultValue => ((IBorderElement)this).BorderWidth; 73 void IBorderElement.OnBorderColorPropertyChanged(Color oldValue, Color newValue) 77 bool IBorderElement.IsCornerRadiusSet() => IsSet(CornerRadiusProperty); 79 bool IBorderElement.IsBackgroundColorSet() => IsSet(BackgroundColorProperty); 81 bool IBorderElement.IsBackgroundSet() => IsSet(BackgroundProperty); 83 bool IBorderElement.IsBorderColorSet() => IsSet(BorderColorProperty); 85 bool IBorderElement.IsBorderWidthSet() => false; 116 bounds = bounds.Inset(((IBorderElement)this).BorderWidth); // Windows' implementation would cause an incorrect double-counting of the inset 127 inset += ((IBorderElement)this).BorderWidth; // Windows' implementation would cause an incorrect double-counting of the inset
ImageButton\ImageButton.cs (9)
163 int IBorderElement.CornerRadiusDefaultValue => (int)CornerRadiusProperty.DefaultValue; 165 Color IBorderElement.BorderColorDefaultValue => (Color)BorderColorProperty.DefaultValue; 167 double IBorderElement.BorderWidthDefaultValue => (double)BorderWidthProperty.DefaultValue; 169 void IBorderElement.OnBorderColorPropertyChanged(Color oldValue, Color newValue) 238 bool IBorderElement.IsCornerRadiusSet() => IsSet(CornerRadiusProperty); 239 bool IBorderElement.IsBackgroundColorSet() => IsSet(BackgroundColorProperty); 240 bool IBorderElement.IsBackgroundSet() => IsSet(BackgroundProperty); 241 bool IBorderElement.IsBorderColorSet() => IsSet(BorderColorProperty); 242 bool IBorderElement.IsBorderWidthSet() => IsSet(BorderWidthProperty);
Properties\AssemblyInfo.cs (2)
87[assembly: StyleProperty("border-color", typeof(IBorderElement), nameof(BorderElement.BorderColorProperty))] 94[assembly: StyleProperty("border-width", typeof(IBorderElement), nameof(BorderElement.BorderWidthProperty))]
RadioButton\RadioButton.cs (9)
269 int IBorderElement.CornerRadiusDefaultValue => (int)BorderElement.CornerRadiusProperty.DefaultValue; 271 Color IBorderElement.BorderColorDefaultValue => (Color)BorderElement.BorderColorProperty.DefaultValue; 273 double IBorderElement.BorderWidthDefaultValue => (double)BorderElement.BorderWidthProperty.DefaultValue; 275 void IBorderElement.OnBorderColorPropertyChanged(Color oldValue, Color newValue) 279 bool IBorderElement.IsCornerRadiusSet() => IsSet(BorderElement.CornerRadiusProperty); 280 bool IBorderElement.IsBackgroundColorSet() => IsSet(BackgroundColorProperty); 281 bool IBorderElement.IsBackgroundSet() => IsSet(BackgroundProperty); 282 bool IBorderElement.IsBorderColorSet() => IsSet(BorderElement.BorderColorProperty); 283 bool IBorderElement.IsBorderWidthSet() => IsSet(BorderElement.BorderWidthProperty);