Reputation: 1212
I'm trying to use a grid in WPF to simulate a scoreboard. But it doesn't seem to be visible while running the app.
Any suggestions?
Thanks in advance.
Here's the top part of the declaration of the grid (XAML):
<Grid Height="170" HorizontalAlignment="Left" Margin="187,12,0,0" Name="grid1"
VerticalAlignment="Top" Width="454" Opacity="100" OpacityMask="Black">
Upvotes: 1
Views: 345
Reputation: 19897
Layout elements don't generally have visibility themselves. You need to put content inside the layout element in order to have visible items.
Upvotes: 2