ux: new style for ref's Visibility in Graph context menu item

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-06-03 12:34:49 +08:00
parent cd009bda6b
commit bf43dd828a
No known key found for this signature in database
5 changed files with 142 additions and 107 deletions

View file

@ -843,6 +843,10 @@
<DataTemplate DataType="x:String">
<v:NameHighlightedTextBlock Text="{Binding}" VerticalAlignment="Center"/>
</DataTemplate>
<DataTemplate DataType="vm:FilterModeInGraph">
<v:FilterModeInGraph/>
</DataTemplate>
</ContentPresenter.DataTemplates>
</ContentPresenter>
@ -949,6 +953,19 @@
</Style>
</Style>
<Style Selector="MenuItem.filter_mode_switcher">
<Setter Property="Height" Value="48"/>
<Style Selector="^:selected">
<Style Selector="^ /template/ Border#PART_LayoutRoot">
<Setter Property="Background" Value="Transparent" />
</Style>
<Style Selector="^ /template/ ContentPresenter#PART_HeaderPresenter">
<Setter Property="Foreground" Value="Transparent" />
</Style>
</Style>
</Style>
<Style Selector="ComboBox">
<Style.Resources>
<Thickness x:Key="ComboBoxDropdownBorderPadding">4,0</Thickness>