Files
LanMountainDesktop/LanMountainDesktop/Views/FusedDesktopComponentLibraryWindow.axaml
2026-05-25 09:32:58 +08:00

64 lines
2.7 KiB
XML

<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="using:LanMountainDesktop.Views"
x:Class="LanMountainDesktop.Views.FusedDesktopComponentLibraryWindow"
Width="740"
Height="500"
MinWidth="600"
MinHeight="440"
CanResize="True"
WindowStartupLocation="CenterScreen"
WindowDecorations="None"
ExtendClientAreaToDecorationsHint="True"
Background="Transparent"
Title="Add Component">
<Grid x:Name="RootGrid"
Classes="settings-scope"
Background="Transparent">
<Border x:Name="PanelShell"
Classes="surface-translucent-strong"
Width="720"
MaxWidth="720"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Padding="0"
CornerRadius="{DynamicResource DesignCornerRadiusLg}"
ClipToBounds="True">
<Grid RowDefinitions="Auto,*,Auto">
<Border Height="64"
Padding="24,0,24,0"
Background="Transparent"
PointerPressed="OnWindowTitleBarPointerPressed">
<TextBlock VerticalAlignment="Center"
FontSize="22"
FontWeight="SemiBold"
Foreground="{DynamicResource AdaptiveTextPrimaryBrush}"
Text="添加小组件" />
</Border>
<controls:FusedDesktopComponentLibraryControl x:Name="LibraryControl"
Grid.Row="1"
Margin="22,0,22,8" />
<Border Grid.Row="2"
Padding="24,16,24,22"
BorderBrush="{DynamicResource AdaptiveGlassPanelBorderBrush}"
BorderThickness="0,1,0,0">
<Button x:Name="CloseWindowButton"
HorizontalAlignment="Stretch"
MinHeight="32"
Padding="16,7"
Background="{DynamicResource AdaptiveButtonBackgroundBrush}"
BorderThickness="0"
Click="OnCloseClick">
<TextBlock HorizontalAlignment="Center"
FontSize="14"
Text="关闭" />
</Button>
</Border>
</Grid>
</Border>
</Grid>
</Window>