When building graphical user interfaces, you will often want to bind a property of one control to another or to some data.
In the MainPage.xaml
file, add a text block for instructions, a slider for selecting a rotation, a grid containing stack panel and text blocks to show the selected rotation in degrees, a radial gauge from the UWP Community Toolkit, and a red square to rotate, as shown in the following markup:
<TextBlock Grid.ColumnSpan="2" Margin="10"> Use the slider to rotate the square:</TextBlock> <Slider Value="180" Minimum="0" Maximum="360" Name="sliderRotation" Margin="10,0" /> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition/> <ColumnDefinition/> <ColumnDefinition/> </Grid.ColumnDefinitions> <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center"> <TextBlock Text="{Binding ElementName...