Skip to content

Instantly share code, notes, and snippets.

@Odonno
Created September 3, 2017 13:46
Show Gist options
  • Save Odonno/21a3a442c93ed8863e4409aa4af66458 to your computer and use it in GitHub Desktop.
Save Odonno/21a3a442c93ed8863e4409aa4af66458 to your computer and use it in GitHub Desktop.
Example of a MonoGame page in XAML
<Grid>
<StackPanel Margin="30 30 0 0">
<TextBlock FontSize="42">
<Run Text="Max distance :" />
<Run Text="{Binding Path=DistanceMax, Converter={StaticResource StringToIntegerConverter}}"/>
</TextBlock>
<TextBlock FontSize="42">
<Run Text="Dodging point :" />
<Run Text="{Binding Path=BallPoints, Converter={StaticResource StringToIntegerConverter}}"/>
</TextBlock>
<TextBlock FontSize="42">
<Run Text="Total score :" />
<Run Text="{Binding Path=Score}"/>
</TextBlock>
</StackPanel>
</Grid>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment