40 references to Grid
Microsoft.Maui.Controls (35)
LegacyLayouts\Grid.cs (25)
14 public partial class Grid : Layout<View>, IGridController, IElementConfiguration<Grid>, IGridLayout 17 public static readonly BindableProperty RowProperty = BindableProperty.CreateAttached("Row", typeof(int), typeof(Grid), default(int), validateValue: (bindable, value) => (int)value >= 0); 20 public static readonly BindableProperty RowSpanProperty = BindableProperty.CreateAttached("RowSpan", typeof(int), typeof(Grid), 1, validateValue: (bindable, value) => (int)value >= 1); 23 public static readonly BindableProperty ColumnProperty = BindableProperty.CreateAttached("Column", typeof(int), typeof(Grid), default(int), validateValue: (bindable, value) => (int)value >= 0); 26 public static readonly BindableProperty ColumnSpanProperty = BindableProperty.CreateAttached("ColumnSpan", typeof(int), typeof(Grid), 1, validateValue: (bindable, value) => (int)value >= 1); 29 public static readonly BindableProperty RowSpacingProperty = BindableProperty.Create(nameof(RowSpacing), typeof(double), typeof(Grid), 6d, 30 propertyChanged: (bindable, oldValue, newValue) => ((Grid)bindable).InvalidateMeasureInternal(InvalidationTrigger.MeasureChanged)); 33 public static readonly BindableProperty ColumnSpacingProperty = BindableProperty.Create(nameof(ColumnSpacing), typeof(double), typeof(Grid), 6d, 34 propertyChanged: (bindable, oldValue, newValue) => ((Grid)bindable).InvalidateMeasureInternal(InvalidationTrigger.MeasureChanged)); 37 public static readonly BindableProperty ColumnDefinitionsProperty = BindableProperty.Create(nameof(ColumnDefinitions), typeof(ColumnDefinitionCollection), typeof(Grid), null, 41 ((ColumnDefinitionCollection)oldvalue).ItemSizeChanged -= ((Grid)bindable).OnDefinitionChanged; 43 ((ColumnDefinitionCollection)newvalue).ItemSizeChanged += ((Grid)bindable).OnDefinitionChanged; 44 ((Grid)bindable).OnDefinitionChanged(bindable, EventArgs.Empty); 48 colDef.ItemSizeChanged += ((Grid)bindable).OnDefinitionChanged; 53 public static readonly BindableProperty RowDefinitionsProperty = BindableProperty.Create(nameof(RowDefinitions), typeof(RowDefinitionCollection), typeof(Grid), null, 57 ((RowDefinitionCollection)oldvalue).ItemSizeChanged -= ((Grid)bindable).OnDefinitionChanged; 59 ((RowDefinitionCollection)newvalue).ItemSizeChanged += ((Grid)bindable).OnDefinitionChanged; 60 ((Grid)bindable).OnDefinitionChanged(bindable, EventArgs.Empty); 64 rowDef.ItemSizeChanged += ((Grid)bindable).OnDefinitionChanged; 69 readonly Lazy<PlatformConfigurationRegistry<Grid>> _platformConfigurationRegistry; 75 _platformConfigurationRegistry = new Lazy<PlatformConfigurationRegistry<Grid>>(() => 76 new PlatformConfigurationRegistry<Grid>(this)); 80 public IPlatformElementConfiguration<T, Grid> On<T>() where T : IConfigPlatform 305 public GridElementCollection(ObservableCollection<Element> inner, Grid parent) : base(inner) 310 internal Grid Parent { get; set; }
LegacyLayouts\GridCalc.cs (10)
103 public GridStructure(Grid grid) 108 public GridStructure(Grid grid, double width, double height, bool requestSize = false) : this(grid) 172 void CalculateAutoCells(Grid grid, double width, double height) 491 void EnsureRowsColumnsInitialized(Grid grid) 529 void ExpandLastAutoColumnIfNeeded(Grid grid, double width, bool expandToRequest) 554 void ExpandLastAutoRowIfNeeded(Grid grid, double height, bool expandToRequest) 587 void MeasureAndContractStarredColumns(Grid grid, double width, double height, double totalStarsWidth) 618 void MeasureAndContractStarredRows(Grid grid, double width, double height, double totalStarsHeight) 648 double MeasuredStarredColumns(Grid grid, double widthConstraint, double heightConstraint, double totalStarsWidth) 709 double MeasureStarredRows(Grid grid, double widthConstraint, double heightConstraint, double totalStarsHeight)
Microsoft.Maui.Controls.Compatibility (5)
Properties\AssemblyInfo.cs (5)
7using CGrid = Microsoft.Maui.Controls.Compatibility.Grid; 15[assembly: StyleProperty("column-gap", typeof(CGrid), nameof(CGrid.ColumnSpacingProperty))] 16[assembly: StyleProperty("row-gap", typeof(CGrid), nameof(CGrid.RowSpacingProperty))]