49 instantiations of Thickness
Microsoft.Maui (14)
Animations\AnimationLerpingExtensions.cs (1)
52
=> new
Thickness
(
Converters\ThicknessTypeConverter.cs (6)
47
return new
Thickness
(h, v);
54
return new
Thickness
(l, t, r, b);
66
return new
Thickness
(h, v);
72
return new
Thickness
(h, t, h, b);
79
return new
Thickness
(l, t, r, b);
86
return new
Thickness
(l);
Primitives\Thickness.cs (5)
57
return new
Thickness
(size.Width, size.Height, size.Width, size.Height);
62
return new
Thickness
(uniformSize);
110
public static Thickness Zero = new
Thickness
(0);
113
new
Thickness
(left.Left + addend, left.Top + addend, left.Right + addend, left.Bottom + addend);
116
new
Thickness
(left.Left + right.Left, left.Top + right.Top, left.Right + right.Right, left.Bottom + right.Bottom);
VisualDiagnostics\AdornerModel.cs (1)
26
if (margin == new
Thickness
())
VisualDiagnostics\RectangleAdorner.cs (1)
95
margin = new
Thickness
();
Microsoft.Maui.Controls (8)
Button\Button.cs (1)
121
Thickness IPaddingElement.PaddingDefaultValueCreator() => new
Thickness
(double.NaN);
Layout\Layout.cs (1)
346
return new
Thickness
(0);
Region.cs (1)
118
var inflation = new
Thickness
(_inflation == null ? left : left + _inflation.Value.Left,
Shell\BaseShellItem.cs (2)
475
defaultImageClass.Setters.Add(new Setter { Property = Image.MarginProperty, Value = new
Thickness
(12, 0, 12, 0) });
503
defaultLabelClass.Setters.Add(new Setter { Property = Label.MarginProperty, Value = new
Thickness
(20, 0, 0, 0) });
TitleBar\TitleBar.cs (3)
410
Margin = new
Thickness
(16, 0, 0, 0),
430
Margin = new
Thickness
(16, 0),
483
Margin = new
Thickness
(0, 0, 16, 0),
Microsoft.Maui.Controls.Compatibility (3)
iOS\Renderers\PageRenderer.cs (2)
373
safeareaPadding = new
Thickness
(insets.Left, insets.Top + tabThickness, insets.Right, insets.Bottom);
378
safeareaPadding = new
Thickness
(0, TopLayoutGuide.Length + tabThickness, 0, BottomLayoutGuide.Length);
iOS\Renderers\UIContainerView.cs (1)
28
Margin = new
Thickness
(0);
Microsoft.Maui.Controls.Foldable (24)
TwoPaneView.cs (24)
528
_content1.Padding = new
Thickness
(pane1.X, 0, 0, 0);
529
_content2.Padding = new
Thickness
(0, 0, newWidth - pane1.Width, 0);
533
_content1.Padding = new
Thickness
(0, 0, 0, 0);
534
_content2.Padding = new
Thickness
(0, 0, 0, 0);
546
_content2.Padding = new
Thickness
(pane1.X, 0, 0, 0);
547
_content1.Padding = new
Thickness
(0, 0, newWidth - pane1.Width, 0);
551
_content1.Padding = new
Thickness
(0, 0, 0, 0);
552
_content2.Padding = new
Thickness
(0, 0, 0, 0);
564
_content1.Padding = new
Thickness
(0, pane1.Y, 0, 0);
565
_content2.Padding = new
Thickness
(0, 0, 0, newHeight - pane1.Height);
569
_content1.Padding = new
Thickness
(0, 0, 0, 0);
570
_content2.Padding = new
Thickness
(0, 0, 0, 0);
583
_content2.Padding = new
Thickness
(0, pane1.Y, 0, 0);
584
_content1.Padding = new
Thickness
(0, 0, 0, newHeight - pane1.Height);
588
_content1.Padding = new
Thickness
(0, 0, 0, 0);
589
_content2.Padding = new
Thickness
(0, 0, 0, 0);
600
_content1.Padding = new
Thickness
(pane1.X, pane1.Y, newWidth - pane1.Width - pane1.X, newHeight - pane1.Height - pane1.Y);
601
_content2.Padding = new
Thickness
(0, 0, 0, 0);
605
_content1.Padding = new
Thickness
(0, 0, 0, 0);
606
_content2.Padding = new
Thickness
(0, 0, 0, 0);
616
_content1.Padding = new
Thickness
(0, 0, 0, 0);
618
_content2.Padding = new
Thickness
(pane1.X, pane1.Y, newWidth - pane1.Width - pane1.X, newHeight - pane1.Height - pane1.Y);
622
_content1.Padding = new
Thickness
(0, 0, 0, 0);
623
_content2.Padding = new
Thickness
(0, 0, 0, 0);
172 references to Thickness
Microsoft.Maui (52)
Animations\AnimationLerpingExtensions.cs (3)
51
public static
Thickness
Lerp(this
Thickness
start,
Thickness
end, double progress)
Animations\Lerp.cs (7)
149
[typeof(
Thickness
)] = new Lerp
154
var
start = (
Thickness
)(s ??
Thickness
.Zero);
155
var
end = (
Thickness
)(e ??
Thickness
.Zero);
Converters\ThicknessTypeConverter.cs (4)
25
return (
Thickness
)d;
29
return (
Thickness
)s;
90
throw new InvalidOperationException($"Cannot convert \"{strValue}\" into {typeof(
Thickness
)}");
95
if (value is not
Thickness
t)
Core\IPadding.cs (1)
11
Thickness
Padding { get; }
Core\ISafeAreaView2.cs (1)
14
internal
Thickness
SafeAreaInsets { set; }
Core\IView.cs (1)
110
Thickness
Margin { get; }
Layouts\AbsoluteLayoutManager.cs (2)
19
var
padding = AbsoluteLayout.Padding;
61
var
padding = AbsoluteLayout.Padding;
Layouts\FlexLayoutManager.cs (2)
18
var
padding = FlexLayout.Padding;
45
var
padding = FlexLayout.Padding;
Layouts\GridLayoutManager.cs (1)
79
readonly
Thickness
_padding;
Layouts\HorizontalStackLayoutManager.cs (2)
14
var
padding = Stack.Padding;
47
var
padding = Stack.Padding;
Layouts\LayoutExtensions.cs (7)
20
var
margin = view.Margin;
36
Thickness
margin = view.Margin;
72
static double AlignHorizontal(IView view, Rect bounds,
Thickness
margin)
109
static double AlignVertical(IView view, Rect bounds,
Thickness
margin)
145
public static Size MeasureContent(this IContentView contentView,
Thickness
inset, double widthConstraint, double heightConstraint)
177
var
padding = contentView.Padding;
219
var
padding = contentView.Padding;
Layouts\VerticalStackLayoutManager.cs (2)
14
var
padding = Stack.Padding;
48
var
padding = Stack.Padding;
Primitives\Thickness.cs (17)
55
public static implicit operator
Thickness
(Size size)
60
public static implicit operator
Thickness
(double uniformSize)
65
bool Equals(
Thickness
other)
75
return obj is
Thickness
&& Equals((
Thickness
)obj);
91
public static bool operator ==(
Thickness
left,
Thickness
right)
96
public static bool operator !=(
Thickness
left,
Thickness
right)
110
public static
Thickness
Zero = new Thickness(0);
112
public static
Thickness
operator +(
Thickness
left, double addend) =>
115
public static
Thickness
operator +(
Thickness
left,
Thickness
right) =>
118
public static
Thickness
operator -(
Thickness
left, double addend) =>
VisualDiagnostics\AdornerModel.cs (1)
19
public void Update(Rect rect,
Thickness
margin, Matrix4x4 transformToRoot, double density)
VisualDiagnostics\RectangleAdorner.cs (1)
88
Thickness
margin;
Microsoft.Maui.Controls (111)
Border\Border.cs (7)
41
public
Thickness
Padding
43
get => (
Thickness
)GetValue(PaddingElement.PaddingProperty);
271
var
inset = Padding + StrokeThickness;
298
public void OnPaddingPropertyChanged(
Thickness
oldValue,
Thickness
newValue)
303
public
Thickness
PaddingDefaultValueCreator()
305
return
Thickness
.Zero;
Button\Button.cs (5)
115
public
Thickness
Padding
117
get { return (
Thickness
)GetValue(PaddingElement.PaddingProperty); }
121
Thickness
IPaddingElement.PaddingDefaultValueCreator() => new Thickness(double.NaN);
133
void IPaddingElement.OnPaddingPropertyChanged(
Thickness
oldValue,
Thickness
newValue)
Editor\Editor.cs (1)
93
Thickness
_previousMargin;
Frame\Frame.cs (2)
31
Thickness
IPaddingElement.PaddingDefaultValueCreator()
124
var
inset = Padding;
ImageButton\ImageButton.cs (6)
214
public
Thickness
Padding
216
get { return (
Thickness
)GetValue(PaddingElement.PaddingProperty); }
220
Thickness
IPaddingElement.PaddingDefaultValueCreator()
222
return default(
Thickness
);
225
void IPaddingElement.OnPaddingPropertyChanged(
Thickness
oldValue,
Thickness
newValue)
IPaddingElement.cs (4)
10
Thickness
Padding { get; }
13
void OnPaddingPropertyChanged(
Thickness
oldValue,
Thickness
newValue);
14
Thickness
PaddingDefaultValueCreator();
Items\CarouselView.cs (4)
37
public static readonly BindableProperty PeekAreaInsetsProperty = BindableProperty.Create(nameof(PeekAreaInsets), typeof(
Thickness
), typeof(CarouselView), default(
Thickness
));
40
public
Thickness
PeekAreaInsets
42
get { return (
Thickness
)GetValue(PeekAreaInsetsProperty); }
Label\Label.cs (5)
231
public
Thickness
Padding
233
get { return (
Thickness
)GetValue(PaddingProperty); }
412
Thickness
IPaddingElement.PaddingDefaultValueCreator() => default;
414
void IPaddingElement.OnPaddingPropertyChanged(
Thickness
oldValue,
Thickness
newValue) =>
Layout\FlexLayout.cs (2)
400
Thickness
GetMargin(IView view)
404
BindableObject bo => (
Thickness
)bo.GetValue(MarginProperty),
Layout\Layout.cs (6)
116
/// The default value is a <see cref="
Thickness
"/> with all values set to 0.
119
public
Thickness
Padding
121
get => (
Thickness
)GetValue(PaddingElement.PaddingProperty);
339
void IPaddingElement.OnPaddingPropertyChanged(
Thickness
oldValue,
Thickness
newValue)
344
Thickness
IPaddingElement.PaddingDefaultValueCreator()
LegacyLayouts\FlexLayout.cs (6)
331
var (mleft, mtop, mright, mbottom) = (
Thickness
)view.GetValue(MarginProperty);
343
var (pleft, ptop, pright, pbottom) = (
Thickness
)view.GetValue(PaddingProperty);
379
var
margin = (
Thickness
)((View)sender).GetValue(MarginProperty);
393
var
padding = (
Thickness
)((View)sender).GetValue(PaddingProperty);
LegacyLayouts\Layout.cs (9)
135
/// The default value is a <see cref="
Thickness
"/> with all values set to 0.
138
public
Thickness
Padding
140
get => (
Thickness
)GetValue(PaddingElement.PaddingProperty);
159
Thickness
IPaddingElement.PaddingDefaultValueCreator() => default(
Thickness
);
161
void IPaddingElement.OnPaddingPropertyChanged(
Thickness
oldValue,
Thickness
newValue) => InvalidateLayout();
271
Thickness
margin = view.Margin;
536
Thickness
margin = child.Margin;
LegacyLayouts\StackLayout.cs (1)
89
Thickness
padding = Padding;
NavigationPage\NavigationPage.cs (2)
443
Thickness
IView.Margin =>
Thickness
.Zero;
PaddingElement.cs (12)
8
BindableProperty.Create(nameof(IPaddingElement.Padding), typeof(
Thickness
), typeof(IPaddingElement), default(
Thickness
),
14
((IPaddingElement)bindable).OnPaddingPropertyChanged((
Thickness
)oldValue, (
Thickness
)newValue);
29
var
padding = (
Thickness
)bindable.GetValue(PaddingProperty);
41
var
padding = (
Thickness
)bindable.GetValue(PaddingProperty);
53
var
padding = (
Thickness
)bindable.GetValue(PaddingProperty);
65
var
padding = (
Thickness
)bindable.GetValue(PaddingProperty);
Page\Page.cs (7)
139
public
Thickness
Padding
141
get { return (
Thickness
)GetValue(PaddingElement.PaddingProperty); }
145
Thickness
IPaddingElement.PaddingDefaultValueCreator()
147
return default(
Thickness
);
150
void IPaddingElement.OnPaddingPropertyChanged(
Thickness
oldValue,
Thickness
newValue)
253
Thickness
ISafeAreaView2.SafeAreaInsets
PlatformConfiguration\iOSSpecific\Page.cs (7)
210
static readonly BindablePropertyKey SafeAreaInsetsPropertyKey = BindableProperty.CreateReadOnly(nameof(SafeAreaInsets), typeof(
Thickness
), typeof(Page), default(
Thickness
));
222
public static
Thickness
GetSafeAreaInsets(BindableObject element)
224
return (
Thickness
)element.GetValue(SafeAreaInsetsProperty);
227
static void SetSafeAreaInsets(BindableObject element,
Thickness
value)
237
public static
Thickness
SafeAreaInsets(this IPlatformElementConfiguration<iOS, FormsElement> config)
249
public static IPlatformElementConfiguration<iOS, FormsElement> SetSafeAreaInsets(this IPlatformElementConfiguration<iOS, FormsElement> config,
Thickness
value)
Region.cs (3)
18
readonly
Thickness
? _inflation;
25
Region(IList<Rect> positions,
Thickness
inflation) : this(positions)
118
var
inflation = new Thickness(_inflation == null ? left : left + _inflation.Value.Left,
ScrollView\ScrollView.cs (1)
182
var
margin = view.Margin;
Shell\IShellContentInsetObserver.cs (1)
6
void OnInsetChanged(
Thickness
inset, double tabThickness);
Shell\IShellSectionController.cs (1)
25
void SendInsetChanged(
Thickness
inset, double tabThickness);
Shell\ShellSection.cs (2)
41
Thickness
_lastInset;
102
void IShellSectionController.SendInsetChanged(
Thickness
inset, double tabThickness)
View\View.cs (13)
38
BindableProperty.Create(nameof(Margin), typeof(
Thickness
), typeof(View), default(
Thickness
),
47
var
margin = (
Thickness
)bindable.GetValue(MarginProperty);
58
var
margin = (
Thickness
)bindable.GetValue(MarginProperty);
69
var
margin = (
Thickness
)bindable.GetValue(MarginProperty);
81
var
margin = (
Thickness
)bindable.GetValue(MarginProperty);
237
public
Thickness
Margin
239
get { return (
Thickness
)GetValue(MarginProperty); }
282
Thickness
IView.Margin => Margin;
VisualElement\VisualElement.cs (4)
1203
Thickness
margin = default(
Thickness
);
2116
Thickness
IView.Margin =>
Thickness
.Zero;
Microsoft.Maui.Controls.Build.Tasks (1)
CompiledConverters\ThicknessTypeConverter.cs (1)
41
throw new BuildException(BuildExceptionCode.Conversion, node, null, value, typeof(
Thickness
));
Microsoft.Maui.Controls.Compatibility (8)
iOS\Renderers\PageRenderer.cs (7)
29
Thickness
SafeAreaInsets => Page.On<PlatformConfiguration.iOS>().SafeAreaInsets();
33
Thickness
_userPadding = default(
Thickness
);
360
Thickness
safeareaPadding = default(
Thickness
);
387
if (Shell.GetNavBarIsVisible(Element) || _tabThickness != default(
Thickness
))
518
void IShellContentInsetObserver.OnInsetChanged(
Thickness
inset, double tabThickness)
iOS\Renderers\UIContainerView.cs (1)
63
public virtual
Thickness
Margin