wpf-autogrid
wpf-autogrid copied to clipboard
Is required setting of RowCount expected behavior?
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
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.
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 :)
Ah I see. Thanks for clarifying that, will look into this.
I would really like to see this implemented.