kategorie optik angepasst
This commit is contained in:
@@ -48,70 +48,126 @@
|
|||||||
PopupAnimation="Fade">
|
PopupAnimation="Fade">
|
||||||
<Border Width="{Binding ActualWidth, ElementName=HierarchySelector}"
|
<Border Width="{Binding ActualWidth, ElementName=HierarchySelector}"
|
||||||
Background="{DynamicResource BackgroundColor.Menu.SubCategory}"
|
Background="{DynamicResource BackgroundColor.Menu.SubCategory}"
|
||||||
CornerRadius="7.5"
|
BorderBrush="{DynamicResource BackgroundColor.Menu.SubCategory.Hover}"
|
||||||
Padding="10">
|
BorderThickness="1"
|
||||||
|
CornerRadius="12"
|
||||||
|
Padding="14">
|
||||||
<Border.Effect>
|
<Border.Effect>
|
||||||
<DropShadowEffect BlurRadius="10"
|
<DropShadowEffect BlurRadius="16"
|
||||||
Color="{DynamicResource DropShadowColor.Menu}"
|
Color="{DynamicResource DropShadowColor.Menu}"
|
||||||
Direction="55"
|
Direction="320"
|
||||||
ShadowDepth="10"
|
ShadowDepth="8"
|
||||||
Opacity="0.35" />
|
Opacity="0.35" />
|
||||||
</Border.Effect>
|
</Border.Effect>
|
||||||
<StackPanel>
|
|
||||||
<Grid Margin="0 0 10 0">
|
|
||||||
<TextBox x:Name="PART_SearchTextBox"
|
|
||||||
Style="{DynamicResource Customizable.Editable.TextBox.EditOnly}"
|
|
||||||
Background="{TemplateBinding Background}"
|
|
||||||
Padding="27 5 5 5"
|
|
||||||
VerticalContentAlignment="Center" />
|
|
||||||
<ico:AdaptableIcon SelectedInternIcon="menuBar_search"
|
|
||||||
Style="{DynamicResource Menu.MenuBar.PinnedIcon.Base}"
|
|
||||||
BorderPadding="5 5 5 7"
|
|
||||||
Margin="0"
|
|
||||||
IconBackgroundColor="Transparent"
|
|
||||||
HorizontalAlignment="Left"
|
|
||||||
VerticalAlignment="Center" />
|
|
||||||
<TextBlock Margin="30 0 0 0"
|
|
||||||
Foreground="{DynamicResource FontColor.DetailsPage.DataHistory.Date}"
|
|
||||||
IsHitTestVisible="False"
|
|
||||||
VerticalAlignment="Center">
|
|
||||||
<TextBlock.Style>
|
|
||||||
<Style TargetType="TextBlock">
|
|
||||||
<Setter Property="Visibility" Value="Collapsed" />
|
|
||||||
<Style.Triggers>
|
|
||||||
<DataTrigger Binding="{Binding Text, ElementName=PART_SearchTextBox}"
|
|
||||||
Value="">
|
|
||||||
<Setter Property="Text"
|
|
||||||
Value="{Binding Path=SearchPlaceholderText, RelativeSource={RelativeSource AncestorType={x:Type local:HierarchicalSelectionControl}}}" />
|
|
||||||
<Setter Property="Visibility" Value="Visible" />
|
|
||||||
</DataTrigger>
|
|
||||||
</Style.Triggers>
|
|
||||||
</Style>
|
|
||||||
</TextBlock.Style>
|
|
||||||
</TextBlock>
|
|
||||||
</Grid>
|
|
||||||
|
|
||||||
<Border Margin="0 10 0 0"
|
<StackPanel>
|
||||||
Background="{DynamicResource BackgroundColor.Menu.SubCategory}"
|
<Border Background="{DynamicResource BackgroundColor.DetailsPage.DataHistory.ValueColumn}"
|
||||||
BorderThickness="0"
|
CornerRadius="8"
|
||||||
CornerRadius="5">
|
Padding="6 4"
|
||||||
<ScrollViewer MaxHeight="300"
|
Margin="0 0 0 12">
|
||||||
VerticalScrollBarVisibility="Auto">
|
<Grid>
|
||||||
|
<TextBox x:Name="PART_SearchTextBox"
|
||||||
|
Style="{DynamicResource Customizable.Editable.TextBox.EditOnly}"
|
||||||
|
Background="Transparent"
|
||||||
|
Padding="27 5 5 5"
|
||||||
|
BorderThickness="0"
|
||||||
|
VerticalContentAlignment="Center" />
|
||||||
|
<ico:AdaptableIcon SelectedInternIcon="menuBar_search"
|
||||||
|
Style="{DynamicResource Menu.MenuBar.PinnedIcon.Base}"
|
||||||
|
BorderPadding="5 5 5 7"
|
||||||
|
Margin="0"
|
||||||
|
IconBackgroundColor="Transparent"
|
||||||
|
HorizontalAlignment="Left"
|
||||||
|
VerticalAlignment="Center" />
|
||||||
|
<TextBlock Margin="30 0 0 0"
|
||||||
|
Foreground="{DynamicResource FontColor.DetailsPage.DataHistory.Date}"
|
||||||
|
IsHitTestVisible="False"
|
||||||
|
VerticalAlignment="Center">
|
||||||
|
<TextBlock.Style>
|
||||||
|
<Style TargetType="TextBlock">
|
||||||
|
<Setter Property="Visibility" Value="Collapsed" />
|
||||||
|
<Style.Triggers>
|
||||||
|
<DataTrigger Binding="{Binding Text, ElementName=PART_SearchTextBox}"
|
||||||
|
Value="">
|
||||||
|
<Setter Property="Text"
|
||||||
|
Value="{Binding Path=SearchPlaceholderText, RelativeSource={RelativeSource AncestorType={x:Type local:HierarchicalSelectionControl}}}" />
|
||||||
|
<Setter Property="Visibility" Value="Visible" />
|
||||||
|
</DataTrigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
</TextBlock.Style>
|
||||||
|
</TextBlock>
|
||||||
|
</Grid>
|
||||||
|
</Border>
|
||||||
|
|
||||||
|
<Border Background="{DynamicResource BackgroundColor.DetailsPage.DataHistory.ValueColumn}"
|
||||||
|
CornerRadius="10"
|
||||||
|
Padding="4"
|
||||||
|
BorderBrush="{DynamicResource BackgroundColor.Menu.SubCategory.Hover}"
|
||||||
|
BorderThickness="1">
|
||||||
|
<ScrollViewer MaxHeight="320"
|
||||||
|
VerticalScrollBarVisibility="Auto"
|
||||||
|
Background="Transparent"
|
||||||
|
BorderThickness="0">
|
||||||
<TreeView x:Name="PART_TreeView"
|
<TreeView x:Name="PART_TreeView"
|
||||||
Background="{DynamicResource BackgroundColor.Menu.SubCategory}"
|
Background="Transparent"
|
||||||
|
BorderThickness="0"
|
||||||
|
HorizontalContentAlignment="Stretch"
|
||||||
ItemsSource="{Binding ItemsSource, RelativeSource={RelativeSource TemplatedParent}}">
|
ItemsSource="{Binding ItemsSource, RelativeSource={RelativeSource TemplatedParent}}">
|
||||||
<TreeView.Resources>
|
<TreeView.Resources>
|
||||||
<Style TargetType="TreeViewItem">
|
<Style x:Key="HierarchyTreeViewItemStyle"
|
||||||
|
TargetType="TreeViewItem"
|
||||||
|
BasedOn="{StaticResource {x:Type TreeViewItem}}">
|
||||||
<Setter Property="IsExpanded"
|
<Setter Property="IsExpanded"
|
||||||
Value="{Binding IsExpanded, Mode=TwoWay}" />
|
Value="{Binding IsExpanded, Mode=TwoWay}" />
|
||||||
|
<Setter Property="Margin"
|
||||||
|
Value="0,-1,0,1" />
|
||||||
|
<Setter Property="Padding"
|
||||||
|
Value="0" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<HierarchicalDataTemplate DataType="{x:Type models:HierarchicalSelectionItem}"
|
<HierarchicalDataTemplate DataType="{x:Type models:HierarchicalSelectionItem}"
|
||||||
ItemsSource="{Binding Children}">
|
ItemsSource="{Binding Children}">
|
||||||
<TextBlock Text="{Binding DisplayName}"
|
<Border x:Name="NodeContainer"
|
||||||
Foreground="{DynamicResource FontColor.Menu.Categories}"
|
Padding="10 4"
|
||||||
Margin="0 2 0 2" />
|
Margin="2 1"
|
||||||
|
Background="Transparent"
|
||||||
|
CornerRadius="6"
|
||||||
|
BorderBrush="Transparent"
|
||||||
|
BorderThickness="1">
|
||||||
|
<TextBlock x:Name="NodeText"
|
||||||
|
Text="{Binding DisplayName}"
|
||||||
|
Foreground="{DynamicResource FontColor.Menu.Categories}"
|
||||||
|
FontSize="14" />
|
||||||
|
</Border>
|
||||||
|
<HierarchicalDataTemplate.Triggers>
|
||||||
|
<DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type TreeViewItem}}, Path=IsMouseOver}"
|
||||||
|
Value="True">
|
||||||
|
<Setter TargetName="NodeContainer"
|
||||||
|
Property="Background"
|
||||||
|
Value="{DynamicResource BackgroundColor.Menu.SubCategory.Hover}" />
|
||||||
|
<Setter TargetName="NodeText"
|
||||||
|
Property="Foreground"
|
||||||
|
Value="{DynamicResource FontColor.Menu.Categories.Hover}" />
|
||||||
|
</DataTrigger>
|
||||||
|
<DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type TreeViewItem}}, Path=IsSelected}"
|
||||||
|
Value="True">
|
||||||
|
<Setter TargetName="NodeContainer"
|
||||||
|
Property="Background"
|
||||||
|
Value="{DynamicResource BackgroundColor.Menu.SubCategory}" />
|
||||||
|
<Setter TargetName="NodeContainer"
|
||||||
|
Property="BorderBrush"
|
||||||
|
Value="{DynamicResource Color.FunctionMarker}" />
|
||||||
|
<Setter TargetName="NodeText"
|
||||||
|
Property="Foreground"
|
||||||
|
Value="{DynamicResource FontColor.Menu.Categories}" />
|
||||||
|
</DataTrigger>
|
||||||
|
</HierarchicalDataTemplate.Triggers>
|
||||||
</HierarchicalDataTemplate>
|
</HierarchicalDataTemplate>
|
||||||
</TreeView.Resources>
|
</TreeView.Resources>
|
||||||
|
<TreeView.ItemContainerStyle>
|
||||||
|
<StaticResource ResourceKey="HierarchyTreeViewItemStyle" />
|
||||||
|
</TreeView.ItemContainerStyle>
|
||||||
</TreeView>
|
</TreeView>
|
||||||
</ScrollViewer>
|
</ScrollViewer>
|
||||||
</Border>
|
</Border>
|
||||||
|
|||||||
Reference in New Issue
Block a user