Two visible elements and one collapsed element in a StackPanel

<StackPanel x:Name="myStackPanel" Background="Orange" Width="90">
<TextBox x:Name="tb1" Width="60" Background="LightGray" />
<TextBox x:Name="tb2" Width="60" Background="DarkGray"
Visibility="Collapsed" />
<TextBox x:Name="tb3" Width="60" Background="Gray" />
</StackPanel>
Listing 6.2 highlights

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.