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