dotnet / dotnet/maui

[Enhancement] Support Min|Max Height|Width on Grid Column|Row Definition

Open
#710 21 comments 53 reactions 1 assignee Assigned to @Copilot View on GitHub
area-layout proposal/open t/enhancement ☀️
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 15h
Merged PRs (30d)
290

Description

## Summary
Support Minimum and Maximum Width/Height of Grid Column/Row definitions.

Same as WinUI:
- [ColumnDefinition.MinWidth](https://docs.microsoft.com/en-us/windows/winui/api/microsoft.ui.xaml.controls.columndefinition.minwidth)
- [ColumnDefinition.MaxWidth](https://docs.microsoft.com/en-us/windows/winui/api/microsoft.ui.xaml.controls.columndefinition.maxwidth)
- [RowDefinition.MinHeight](https://docs.microsoft.com/en-us/windows/winui/api/microsoft.ui.xaml.controls.rowdefinition.minheight)
- [RowDefinition.MaxHeight](https://docs.microsoft.com/en-us/windows/winui/api/microsoft.ui.xaml.controls.rowdefinition.maxheight)

## API Changes
````cs
public class ColumnDefinition
{
...
double MinWidth { get; set; }
double MaxWidth { get; set; }
}

public class RowDefinition
{
...
double MinHeight { get; set; }
double MaxHeight { get; set; }
}
````

## Intended Use Case
Define more responsive & dynamic Grid layout sizes

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.