• C#WPF StackPanel布局及Border边框应用实例


    本文介绍C#WPF StackPanel布局及Border边框应用实例,通过演示掌握StackPanel布局及Border边框用法,并对对齐方式、边距、尺寸设置、Border的圆角使用作了演示。

    具体概念本文不再赘述。

    Xaml文件

    1. <Window
    2. x:Class="PropertyDemo.MainWindow"
    3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    6. xmlns:local="clr-namespace:PropertyDemo"
    7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    8. Title="MainWindow"
    9. Width="800"
    10. Height="450"
    11. mc:Ignorable="d">