1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/mirrors-unoplatform

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
include-elements-csharp.md 1.3 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
Laurent Proulx Отправлено 09.04.2024 21:55 fc8a243
  • Update the StackPanel to remove the HorizontalAlignment property, as we'll be centering each of the nested elements individually.

    new StackPanel()
        .VerticalAlignment(VerticalAlignment.Center)
  • Update the Image element to center it horizontally and add a margin.

    new Image()
        .Margin(12)
        .HorizontalAlignment(HorizontalAlignment.Center)
        .Width(150)
        .Height(150)
        .Source("ms-appx:///Assets/logo.png"),
  • Add a TextBox to allow the user to enter the step size.

    new TextBox()
        .Margin(12)
        .HorizontalAlignment(HorizontalAlignment.Center)
        .TextAlignment(Microsoft.UI.Xaml.TextAlignment.Center)
        .PlaceholderText("Step Size")
        .Text("1"),
  • Add a TextBlock to display the current counter value.

    new TextBlock()
        .Margin(12)
        .HorizontalAlignment(HorizontalAlignment.Center)
        .TextAlignment(Microsoft.UI.Xaml.TextAlignment.Center)
        .Text("Counter: 1"),
  • Add a Button to increment the counter.

    new Button()
        .Margin(12)
        .HorizontalAlignment(HorizontalAlignment.Center)
        .Content("Increment Counter by Step Size")

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/mirrors-unoplatform.git
git@api.gitlife.ru:oschina-mirror/mirrors-unoplatform.git
oschina-mirror
mirrors-unoplatform
mirrors-unoplatform
master