wpf-autogrid icon indicating copy to clipboard operation
wpf-autogrid copied to clipboard

Is required setting of RowCount expected behavior?

Open buckleyGI opened this issue 9 years ago • 4 comments

Hi,

I'm starting to appreciate this component more and more as it just works out of the box.

Lets say I have 10 controls and have set columncount to 2.

It seems that I have to set rowcount as well but I was expecting the autogrid to derive it herslef.

Now I have to set it to 5 or to a big number like 1000 which also seems to work

Can RowCount not be derived for a reason? If it can be I'll contribute but wanted to check expected behavior and limitations first.

Kr, Tom

buckleyGI avatar Sep 16 '16 14:09 buckleyGI

Currently it does require both rowcount and columncount. It would be easy to default that to 1 for both if not specified. It would not be a breaking change.

I can push an update soon for this.

carbonrobot avatar Sep 16 '16 14:09 carbonrobot

Hi Carbonrobot. I'm not sure we are talking about the same change.

If there are 10 controls in the autogrid and columncount is 2 I think I don't have to specify the rowcount. The control can do the calculation and set rowcount to 5. This allows the user to add controls and not (forget) to adjust the rowcount.

Hope I make sense now :)

buckleyGI avatar Sep 16 '16 15:09 buckleyGI

Ah I see. Thanks for clarifying that, will look into this.

carbonrobot avatar Sep 16 '16 15:09 carbonrobot

I would really like to see this implemented.

EdvardasDlugauskas avatar Jul 09 '17 15:07 EdvardasDlugauskas