5 implementations of IBorderElement
Microsoft.Maui.Controls (5)
Button\Button.cs (1)
18 public partial class Button : View, IFontElement, ITextElement, IBorderElement, IButtonController, IElementConfiguration<Button>, IPaddingElement, IImageController, IViewController, IButtonElement, ICommandElement, IImageElement, IButton, ITextButton, IImageButton
CheckBox\CheckBox.cs (1)
10 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)
15 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)
151 /// <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> 413 int IBorderElement.CornerRadiusDefaultValue => (int)CornerRadiusProperty.DefaultValue; 415 Color IBorderElement.BorderColorDefaultValue => (Color)BorderColorProperty.DefaultValue; 417 double IBorderElement.BorderWidthDefaultValue => (double)BorderWidthProperty.DefaultValue; 429 void IBorderElement.OnBorderColorPropertyChanged(Color oldValue, Color newValue) 445 bool IBorderElement.IsCornerRadiusSet() => IsSet(CornerRadiusProperty); 446 bool IBorderElement.IsBackgroundColorSet() => IsSet(BackgroundColorProperty); 447 bool IBorderElement.IsBackgroundSet() => IsSet(BackgroundProperty); 448 bool IBorderElement.IsBorderColorSet() => IsSet(BorderColorProperty); 449 bool IBorderElement.IsBorderWidthSet() => IsSet(BorderWidthProperty);
CheckBox\CheckBox.cs (12)
92 void IBorderElement.OnBorderColorPropertyChanged(Color oldValue, Color newValue) 96 Color IBorderElement.BorderColor => Colors.Transparent; 97 int IBorderElement.CornerRadius => 0; 98 double IBorderElement.BorderWidth => 0; 99 int IBorderElement.CornerRadiusDefaultValue => 0; 100 Color IBorderElement.BorderColorDefaultValue => Colors.Transparent; 101 double IBorderElement.BorderWidthDefaultValue => 0; 102 bool IBorderElement.IsCornerRadiusSet() => false; 103 bool IBorderElement.IsBackgroundColorSet() => IsSet(BackgroundColorProperty); 104 bool IBorderElement.IsBackgroundSet() => IsSet(BackgroundProperty); 105 bool IBorderElement.IsBorderColorSet() => false; 106 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))] 96[assembly: StyleProperty("border-width", typeof(IBorderElement), nameof(BorderElement.BorderWidthProperty))]
RadioButton\RadioButton.cs (9)
272 int IBorderElement.CornerRadiusDefaultValue => (int)BorderElement.CornerRadiusProperty.DefaultValue; 274 Color IBorderElement.BorderColorDefaultValue => (Color)BorderElement.BorderColorProperty.DefaultValue; 276 double IBorderElement.BorderWidthDefaultValue => (double)BorderElement.BorderWidthProperty.DefaultValue; 278 void IBorderElement.OnBorderColorPropertyChanged(Color oldValue, Color newValue) 282 bool IBorderElement.IsCornerRadiusSet() => IsSet(BorderElement.CornerRadiusProperty); 283 bool IBorderElement.IsBackgroundColorSet() => IsSet(BackgroundColorProperty); 284 bool IBorderElement.IsBackgroundSet() => IsSet(BackgroundProperty); 285 bool IBorderElement.IsBorderColorSet() => IsSet(BorderElement.BorderColorProperty); 286 bool IBorderElement.IsBorderWidthSet() => IsSet(BorderElement.BorderWidthProperty);