Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grid.Children.Add - Overload to specify Row and Column #7

Open
thecliguy opened this issue May 29, 2018 · 1 comment
Open

Grid.Children.Add - Overload to specify Row and Column #7

thecliguy opened this issue May 29, 2018 · 1 comment

Comments

@thecliguy
Copy link

Currently, in order to specify a control's position within a grid, one must use the Row and Column static methods of the Grid class, EG:

Grid.Row[applyButton].Value = 1;
Grid.Column[applyButton].Value = 3;

Since Row and Column are essential values when using grids, would it be possible to add an overload to Grid.Children.Add to provide the Row and Column, EG:

grid.Children.Add(applyButton, 1, 3);
@LokiMidgard
Copy link
Owner

I would like to use a XAML like declarative way to declare the ui. But until I get this together, which will be some time, this would make it easier to write the UI.

I can't say why, but I would prefer to use extension methods. But I fear that this would not work well for PowerShell scripts.

We should also check if there are other controles that need's this too. For grid we would also need row and column span. This could be optional parameter or an optional configuration object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants