5 implementations of IBorderElement
Microsoft.Maui.Controls (5)
Button\Button.cs (1)
17
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)
14
public partial class RadioButton : TemplatedView, IElementConfiguration<RadioButton>, ITextElement, IFontElement,
IBorderElement
, IRadioButton
74 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)
150
/// <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>
412
int
IBorderElement
.CornerRadiusDefaultValue => (int)CornerRadiusProperty.DefaultValue;
414
Color
IBorderElement
.BorderColorDefaultValue => (Color)BorderColorProperty.DefaultValue;
416
double
IBorderElement
.BorderWidthDefaultValue => (double)BorderWidthProperty.DefaultValue;
428
void
IBorderElement
.OnBorderColorPropertyChanged(Color oldValue, Color newValue)
444
bool
IBorderElement
.IsCornerRadiusSet() => IsSet(CornerRadiusProperty);
445
bool
IBorderElement
.IsBackgroundColorSet() => IsSet(BackgroundColorProperty);
446
bool
IBorderElement
.IsBackgroundSet() => IsSet(BackgroundProperty);
447
bool
IBorderElement
.IsBorderColorSet() => IsSet(BorderColorProperty);
448
bool
IBorderElement
.IsBorderWidthSet() => IsSet(BorderWidthProperty);
CheckBox\CheckBox.cs (12)
62
void
IBorderElement
.OnBorderColorPropertyChanged(Color oldValue, Color newValue)
66
Color
IBorderElement
.BorderColor => Colors.Transparent;
67
int
IBorderElement
.CornerRadius => 0;
68
double
IBorderElement
.BorderWidth => 0;
69
int
IBorderElement
.CornerRadiusDefaultValue => 0;
70
Color
IBorderElement
.BorderColorDefaultValue => Colors.Transparent;
71
double
IBorderElement
.BorderWidthDefaultValue => 0;
72
bool
IBorderElement
.IsCornerRadiusSet() => false;
73
bool
IBorderElement
.IsBackgroundColorSet() => IsSet(BackgroundColorProperty);
74
bool
IBorderElement
.IsBackgroundSet() => IsSet(BackgroundProperty);
75
bool
IBorderElement
.IsBorderColorSet() => false;
76
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)
271
int
IBorderElement
.CornerRadiusDefaultValue => (int)BorderElement.CornerRadiusProperty.DefaultValue;
273
Color
IBorderElement
.BorderColorDefaultValue => (Color)BorderElement.BorderColorProperty.DefaultValue;
275
double
IBorderElement
.BorderWidthDefaultValue => (double)BorderElement.BorderWidthProperty.DefaultValue;
277
void
IBorderElement
.OnBorderColorPropertyChanged(Color oldValue, Color newValue)
281
bool
IBorderElement
.IsCornerRadiusSet() => IsSet(BorderElement.CornerRadiusProperty);
282
bool
IBorderElement
.IsBackgroundColorSet() => IsSet(BackgroundColorProperty);
283
bool
IBorderElement
.IsBackgroundSet() => IsSet(BackgroundProperty);
284
bool
IBorderElement
.IsBorderColorSet() => IsSet(BorderElement.BorderColorProperty);
285
bool
IBorderElement
.IsBorderWidthSet() => IsSet(BorderElement.BorderWidthProperty);
Microsoft.Maui.Controls.Compatibility (8)
iOS\Renderers\BorderElementManager.cs (7)
30
IBorderElement
backgroundView = (
IBorderElement
)renderer.Element;
40
UpdateBorder((IVisualNativeElementRenderer)sender, (
IBorderElement
)e.NewElement);
45
public static void UpdateBorder(IVisualNativeElementRenderer renderer,
IBorderElement
backgroundView)
48
var
ImageButton = backgroundView;
71
IBorderElement
backgroundView = (
IBorderElement
)renderer.Element;
iOS\Renderers\ButtonLayoutManager.cs (1)
335
if (_borderAdjustsPadding && _element is
IBorderElement
borderElement && borderElement.IsBorderWidthSet() && borderElement.BorderWidth != borderElement.BorderWidthDefaultValue)