缺陷修复: 日志自动滚动、StaticResource 顺序修复、ContextMenu PlacementTarget 绑定、PATH 命令支持、异常全量捕获、RefreshData 状态保留、全局崩溃日志 分类管理: 添加/编辑/删除分类,删除时工具移入全部,CategoryEditViewModel/Window UI 修复: ComboBox 自定义模板,暗色模式弹出层/下拉项主题配色,文本绑定修复
55 lines
2.5 KiB
XML
55 lines
2.5 KiB
XML
<Window x:Class="PersonalToolBox.Views.CategoryEditWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
Title="{Binding WindowTitle}" Height="170" Width="380"
|
|
WindowStartupLocation="CenterOwner"
|
|
ResizeMode="NoResize"
|
|
Background="{DynamicResource Theme.Background}">
|
|
|
|
<Grid Margin="20">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="60"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBlock Grid.Row="0" Grid.Column="0"
|
|
Text="名称:" Foreground="{DynamicResource Theme.Foreground}"
|
|
VerticalAlignment="Center" Margin="0,0,0,12"/>
|
|
<TextBox Grid.Row="0" Grid.Column="1"
|
|
Text="{Binding Name, UpdateSourceTrigger=PropertyChanged}"
|
|
Background="{DynamicResource Theme.InputBackground}"
|
|
Foreground="{DynamicResource Theme.Foreground}"
|
|
BorderBrush="{DynamicResource Theme.InputBorder}"
|
|
Height="30" Margin="0,0,0,16" Padding="6,0"/>
|
|
|
|
<Border Grid.Row="2" Grid.ColumnSpan="2"
|
|
BorderBrush="{DynamicResource Theme.CardBorder}"
|
|
BorderThickness="0,1,0,0" Margin="0,0,0,14"/>
|
|
|
|
<StackPanel Grid.Row="3" Grid.Column="1"
|
|
Orientation="Horizontal" HorizontalAlignment="Right">
|
|
<Button Content="保存"
|
|
Command="{Binding SaveCommand}"
|
|
Background="{DynamicResource Theme.ButtonBackground}"
|
|
Foreground="{DynamicResource Theme.ButtonForeground}"
|
|
BorderThickness="0"
|
|
Width="80" Height="30" FontSize="13"
|
|
Cursor="Hand" Margin="0,0,10,0"/>
|
|
<Button Content="取消"
|
|
Command="{Binding CancelCommand}"
|
|
Background="{DynamicResource Theme.CardBackground}"
|
|
Foreground="{DynamicResource Theme.Foreground}"
|
|
BorderBrush="{DynamicResource Theme.CardBorder}"
|
|
BorderThickness="1"
|
|
Width="80" Height="30" FontSize="13"
|
|
Cursor="Hand"/>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Window>
|