19 references to MarginProperty
Microsoft.Maui.Controls (19)
Layout\FlexLayout.cs (1)
404 BindableObject bo => (Thickness)bo.GetValue(MarginProperty),
LegacyLayouts\FlexLayout.cs (3)
331 var (mleft, mtop, mright, mbottom) = (Thickness)view.GetValue(MarginProperty); 374 if (e.PropertyName == MarginProperty.PropertyName) 379 var margin = (Thickness)((View)sender).GetValue(MarginProperty);
Properties\AssemblyInfo.cs (1)
109[assembly: StyleProperty("margin", typeof(View), nameof(View.MarginProperty))]
RadioButton\RadioButton.cs (1)
555 contentPresenter.SetBinding(MarginProperty, static (RadioButton radio) => radio.Padding, BindingMode.OneWay, source: RelativeBindingSource.TemplatedParent);
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) });
SwipeView\SwipeView.cs (1)
282 else if (e.PropertyName == MarginProperty.PropertyName)
View\View.cs (10)
47 var margin = (Thickness)bindable.GetValue(MarginProperty); 49 bindable.SetValue(MarginProperty, margin); 58 var margin = (Thickness)bindable.GetValue(MarginProperty); 60 bindable.SetValue(MarginProperty, margin); 69 var margin = (Thickness)bindable.GetValue(MarginProperty); 71 bindable.SetValue(MarginProperty, margin); 81 var margin = (Thickness)bindable.GetValue(MarginProperty); 83 bindable.SetValue(MarginProperty, margin); 239 get { return (Thickness)GetValue(MarginProperty); } 240 set { SetValue(MarginProperty, value); }