Kategorie

This commit is contained in:
Meik
2025-11-11 23:59:33 +01:00
parent 5292a2cb0c
commit 845dd1810a
3 changed files with 51 additions and 12 deletions

View File

@@ -30,14 +30,14 @@
BorderThickness="{TemplateBinding BorderThickness}"
Style="{StaticResource ComboBoxToggleButton}" />
<ContentPresenter x:Name="contentPresenter"
IsHitTestVisible="False"
Content="{TemplateBinding SelectionBoxItem}"
ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"
ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}"
Margin="6 0"
VerticalAlignment="Center"
HorizontalAlignment="Stretch" />
<TextBlock x:Name="SelectedPathText"
IsHitTestVisible="False"
Text="{Binding SelectedItem.FullPath, RelativeSource={RelativeSource AncestorType={x:Type local:HierarchicalSelectionControl}}}"
Margin="6 0"
VerticalAlignment="Center"
HorizontalAlignment="Stretch"
Foreground="{DynamicResource FontColor.Menu.Categories}"
TextTrimming="CharacterEllipsis" />
<Popup x:Name="PART_Popup"
Placement="Bottom"
@@ -128,9 +128,10 @@
BorderBrush="{Binding ElementName=HierarchySelector, Path=BorderBrush}"
Foreground="{DynamicResource FontColor.Menu.Categories}"
ItemsSource="{Binding VisibleItems, ElementName=HierarchySelector}"
SelectedItem="{Binding SelectedItem, ElementName=HierarchySelector, Mode=TwoWay}"
DisplayMemberPath="FullPath"
Template="{StaticResource HierarchicalComboBoxTemplate}"
SelectedIndex="-1"
IsSynchronizedWithCurrentItem="False"
DropDownOpened="ComboBoxControl_DropDownOpened"
DropDownClosed="ComboBoxControl_DropDownClosed"
IsEditable="False"