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" />
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )