hi i have a question about the silverlight/xna template for wp7 programming.
i start a new projekt and then draw some content in the game screen. and then i add the following to the xaml page of GamePage:
<Grid Height="800" Name="grid1" Width="480" Background="White">
<TextBlock Height="30" HorizontalAlignment="Left" Margin="12,12,0,0" Name="textBlock1" Text="Lifes: 3" VerticalAlignment="Top" Foreground="Black" />
<TextBlock Height="30" HorizontalAlignment="Left" Margin="393,12,0,0" Name="textBlock2" Text="Points: 0" VerticalAlignment="Top" Foreground="Black" />
</Grid>
but the problem is i dont see the textBlock and i dont know why.
who can give me a hint?
Does your code look anything like this?
Because I tested this and it works fine. Here’s the result:
Update:
Otherwise you should provide some other code which might cause the problem.