I have a WPF WrapPanel
, it contains some of Buttons
, I want to re arrange them at runtime. The XAML code at design time like:
<Grid x:Name="LayoutRoot">
<WrapPanel Margin="133,127,216,189" Background="#FF979797">
<Button Content="Button" Width="75"/>
<Button Content="Button" Width="75"/>
<Button Content="Button" Width="75"/>
<Button Content="Button" Width="75"/>
<Button Content="Button" Width="75"/>
<Button Content="Button" Width="75"/>
</WrapPanel>
</Grid>
But, I want to re arrange the Buttons
at run time. Can you help me about that.