Architect's Log

I'm a Cloud Architect. I'm highly motivated to reduce toils with driving DevOps.

Borderで境界線を描画する

アプリ実行


ソースコード

App.xaml
<Application x:Class="HelloWorld.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             StartupUri="MainWindow.xaml">
</Application>
MainWindow.xaml
<Window x:Class="HelloWorld.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
        <Border
            Width="100" Height="100"
            BorderThickness="8"
            CornerRadius="8"
            BorderBrush="Black">
            <TextBlock
                HorizontalAlignment="Center"
                VerticalAlignment="Center">Hello World</TextBlock>
        </Border>
</Window>