improve:UI
This commit is contained in:
@@ -34,10 +34,12 @@
|
||||
CornerRadius="15"
|
||||
Margin="10"
|
||||
x:Name="MainBorder"
|
||||
ClipToBounds="True"
|
||||
MouseLeftButtonDown="TitleBar_MouseLeftButtonDown">
|
||||
<Grid>
|
||||
<controls:WinUI3CloseButton x:Name="BtnClose"
|
||||
HorizontalAlignment="Right" VerticalAlignment="Top"
|
||||
Width="46" Height="32"
|
||||
Margin="0,0,0,0" Cursor="Hand" Click="BtnClose_Click"
|
||||
Content="✕"/>
|
||||
|
||||
@@ -49,13 +51,13 @@
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<!-- 标题栏 -->
|
||||
<Grid Grid.Row="0"
|
||||
<Border Grid.Row="0"
|
||||
Height="50"
|
||||
Background="{StaticResource WindowBackground}"
|
||||
x:Name="TitleBar"
|
||||
VerticalAlignment="Top"
|
||||
MouseLeftButtonDown="TitleBar_MouseLeftButtonDown"
|
||||
Margin="0,0,46,0">
|
||||
CornerRadius="15,15,0,0"
|
||||
Margin="0,0,46,0"
|
||||
MouseLeftButtonDown="TitleBar_MouseLeftButtonDown">
|
||||
<Grid x:Name="TitleBar" VerticalAlignment="Stretch">
|
||||
<StackPanel Orientation="Horizontal"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center"
|
||||
@@ -77,11 +79,13 @@
|
||||
x:Name="TitleText"/>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
<!-- 主内容区 -->
|
||||
<Border Grid.Row="1"
|
||||
Background="{StaticResource WindowBackground}"
|
||||
Padding="20,10,20,20">
|
||||
Padding="20,10,20,20"
|
||||
CornerRadius="0,0,15,15">
|
||||
<ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled">
|
||||
<ui:SimpleStackPanel Spacing="16">
|
||||
<!-- 内容区域 -->
|
||||
|
||||
Reference in New Issue
Block a user