Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 1.1 KB

include-elements-xaml.md

File metadata and controls

42 lines (33 loc) · 1.1 KB
  • Update the StackPanel to remove the HorizontalAlignment property, as we'll be centering each of the nested elements individually.

    <StackPanel VerticalAlignment="Center">
  • Update the Image element to center it horizontally and add a margin.

    <Image Width="150"
           Height="150"
           Margin="12"
           HorizontalAlignment="Center"
           Source="Assets/logo.png" />
  • Add a TextBox to allow the user to enter the step size.

    <TextBox Margin="12"
             HorizontalAlignment="Center"
             PlaceholderText="Step Size"
             Text="1"
             TextAlignment="Center" />
  • Add a TextBlock to display the current counter value.

    <TextBlock Margin="12"
               HorizontalAlignment="Center"
               TextAlignment="Center"
               Text="Counter: 1" />
  • Add a Button to increment the counter.

    <Button Margin="12"
            HorizontalAlignment="Center"
            Content="Increment Counter by Step Size" />