tags:

views:

10

answers:

1

Is it possible to change where a control is placed in a grid from code-behind?

For example, if I have a Button in Grid.Row="1", can I change that to Grid.Row="0" from code-behind?

+1  A: 

Yes. Just go:

Grid.SetRow(button,0);

where button is the element to change.

Goblin
Thank you very much.
Jova