maui icon indicating copy to clipboard operation
maui copied to clipboard

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

Open YZahringer opened this issue 5 years ago • 18 comments

Summary

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

Same as WinUI:

API Changes

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

YZahringer avatar Apr 12 '21 17:04 YZahringer

@Redth I don't see it in ColumnDefinition or IGridColumnDefinition, the definition is in another place?

YZahringer avatar Aug 31 '21 17:08 YZahringer

Sorry, this got batched up with a different min/max height/width request implementation. Reopened, but we have no plans to implement this currently.

Redth avatar Aug 31 '21 19:08 Redth

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

ghost avatar Aug 30 '22 13:08 ghost

Is this going to be considered at all? This was a very heavily used thing in WPF.

Jagreaper avatar Dec 28 '22 07:12 Jagreaper

Is this going to be considered at all? This was a very heavily used thing in WPF.

If enough folks start replying with 👍 or comments saying they want this feature, then we'd consider it. I can't think of any technical reason that it couldn't be implemented.

At the moment we're prioritizing stabilization and bug fixes, so new features probably won't happen for a while.

hartez avatar Dec 28 '22 16:12 hartez

👍

alexei-lazari avatar Feb 26 '23 13:02 alexei-lazari

👍

tstotis86 avatar Apr 06 '23 20:04 tstotis86

👍

SvendK avatar May 19 '23 06:05 SvendK

👍

dydynski-extron avatar Jun 21 '23 19:06 dydynski-extron

👍

davidlang42 avatar Jul 27 '23 08:07 davidlang42

👍

Is there any current workaround for this?

gerardormz98 avatar Dec 14 '23 22:12 gerardormz98

👍

asi-evin avatar Jan 22 '24 15:01 asi-evin

Yes please!

negberts avatar Jan 24 '24 07:01 negberts

👍

SvendK avatar Feb 20 '24 07:02 SvendK

👍 really disappointed this cannot be done

ethantreece avatar Mar 28 '24 03:03 ethantreece

I need it too

baaaaif avatar Aug 01 '24 08:08 baaaaif

If enough folks start replying with 👍 or comments saying they want this feature, then we'd consider it.

@hartez so exactly how many 👍 are we talking about here...

axa88 avatar Aug 24 '24 07:08 axa88

If enough folks start replying with 👍 or comments saying they want this feature, then we'd consider it.

@hartez so exactly how many 👍 are we talking about here...

That's more of a @Redth question 😃.

hartez avatar Sep 03 '24 23:09 hartez

👍

perpetuatech avatar Mar 05 '25 17:03 perpetuatech

Let's see if AI can do this for us!

mattleibow avatar May 19 '25 22:05 mattleibow

:+1: Adding my voice to the crowd. MinWidth would be used and useful.

jecdx avatar Aug 20 '25 16:08 jecdx