1using Microsoft.Maui.Controls;
2using Microsoft.Maui.Controls.Xaml;
20 [AcceptEmptyServiceProvider]
21 [ContentProperty(nameof(Type))]
24 public InsetsType Type {
get;
set; } = InsetsType.TopAndBottom;
26 public object ProvideValue(IServiceProvider serviceProvider)
31 return this.Type
switch
33 InsetsType.Top =>
new Thickness(0, Insets.Top, 0, 0),
34 InsetsType.Bottom =>
new Thickness(0, 0, 0, Insets.Bottom),
35 InsetsType.TopAndBottom =>
new Thickness(0, Insets.Top, 0, Insets.Bottom),
36 InsetsType.Right =>
new Thickness(0, 0, Insets.Right, 0),
37 InsetsType.Left =>
new Thickness(Insets.Left, 0, 0, 0),
38 InsetsType.RightAndLeft =>
new Thickness(Insets.Left, 0, Insets.Right, 0),
39 InsetsType.All =>
new Thickness(Insets.Left, Insets.Top, Insets.Right, Insets.Bottom),
Base class that references services in the app.
static IPlatformSpecific PlatformSpecific
Localization service