You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
2.6 KiB
Plaintext

<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="Sln.Wcs.UI.Views.Base.EntityEditWindow"
x:CompileBindings="False"
SizeToContent="WidthAndHeight"
MaxWidth="780" MaxHeight="700"
WindowStartupLocation="CenterOwner"
Title="编辑"
Background="Transparent"
TransparencyLevelHint="AcrylicBlur"
ExtendClientAreaToDecorationsHint="True"
ExtendClientAreaChromeHints="PreferSystemChrome"
SystemDecorations="Full"
CanResize="False">
<Border Background="{DynamicResource SurfaceBgBrush}" CornerRadius="10" Margin="0"
BorderBrush="{DynamicResource AccentBgBrush}" BorderThickness="1">
<Grid RowDefinitions="Auto,*,Auto" Margin="0">
<!-- Title Bar -->
<Border Grid.Row="0" Padding="20,14" CornerRadius="10,10,0,0"
Background="{DynamicResource CardBgBrush}" BorderBrush="{DynamicResource BorderBrush}" BorderThickness="0,0,0,1">
<StackPanel Orientation="Horizontal" Spacing="10">
<Rectangle Width="3" Height="18" Fill="{DynamicResource AccentTextBrush}" RadiusX="2" RadiusY="2" />
<TextBlock x:Name="TitleText" Text="编辑" FontSize="15" FontWeight="SemiBold" Foreground="{DynamicResource PrimaryTextBrush}" />
</StackPanel>
</Border>
<!-- Form Content -->
<ScrollViewer Grid.Row="1" Margin="20,14,20,10">
<WrapPanel x:Name="FormPanel" />
</ScrollViewer>
<!-- Buttons -->
<Border Grid.Row="2" Padding="20,12" CornerRadius="0,0,10,10"
Background="{DynamicResource PageBgBrush}" BorderBrush="{DynamicResource BorderBrush}" BorderThickness="0,1,0,0">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Spacing="10">
<Button x:Name="CancelBtn" Content="取 消"
FontSize="12" Padding="24,8"
Background="{DynamicResource PrimaryBgBrush}" Foreground="{DynamicResource SecondaryTextBrush}"
BorderBrush="{DynamicResource BorderBrush}" BorderThickness="1"
CornerRadius="4" />
<Button x:Name="SaveBtn" Content="保 存"
FontSize="12" Padding="24,8"
Background="{DynamicResource PrimaryBtnBrush}" Foreground="White"
CornerRadius="4" />
</StackPanel>
</Border>
</Grid>
</Border>
</Window>