优化了Workbench上的操作。

This commit is contained in:
fengjiayi
2025-05-30 23:31:31 +08:00
parent f0eb11c914
commit a19733eff5
35 changed files with 807 additions and 225 deletions

View File

@@ -11,7 +11,8 @@
<converter:CountToVisibilityConverter x:Key="CountToVisibilityConverter"/>
</UserControl.Resources>
<ListBox ItemsSource="{Binding ItemsSource, RelativeSource={RelativeSource AncestorType=UserControl}}"
<ListBox SelectionChanged="ListBox_SelectionChanged"
ItemsSource="{Binding ItemsSource, RelativeSource={RelativeSource AncestorType=UserControl}}"
Visibility="{Binding ItemsSource, RelativeSource={RelativeSource AncestorType=UserControl}, Converter={StaticResource CountToVisibilityConverter}}"
Background="{Binding Background, RelativeSource={RelativeSource AncestorType=UserControl}}">
<ListBox.ItemTemplate>