How to place a border around several Button controls contained in a StackPanel

Border controls can contain only one child element; however, you can encase several controls in
a container element such as a StackPanel control.

<Border BorderThickness=”5” BorderBrush=”Blue” Height=”160” Width=”120”>
<StackPanel>
<RadioButton Content=”Option 1” Height=”50” Width=”200” Margin=”20,0,0,0”/>
<RadioButton Content=”Option 2” Height=”50” Width=”200” Margin=”20,0,0,0” />
<RadioButton Content=”Option 3” Height=”50” Width=”200” Margin=”20,0,0,0” />
</StackPanel>
</Border>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.