23 references to MarginProperty
Microsoft.Maui.Controls (23)
Compatibility\Handlers\Shell\iOS\ShellFlyoutHeaderContainer.cs (1)
19 if (View.IsSet(View.MarginProperty))
Compatibility\Handlers\Shell\iOS\ShellFlyoutLayoutManager.cs (2)
349 && !view.IsSet(View.MarginProperty) 435 if (!double.IsNaN(MeasuredHeaderViewHeightWithMargin) && HeaderView?.View.IsSet(View.MarginProperty) == true)
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)
106[assembly: StyleProperty("margin", typeof(View), nameof(View.MarginProperty))]
RadioButton\RadioButton.cs (2)
450 border.SetBinding(MarginProperty, static (RadioButton rb) => rb.Margin, source: RelativeBindingSource.TemplatedParent); 561 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); }