| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <UserControl x:Class="Muchinfo.MTPClient.UI.Views.SystemMenuTree"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:converters="clr-namespace:Muchinfo.MTPClient.Infrastructure.Converters;assembly=Client.Infrastructure"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:data="clr-namespace:Muchinfo.MTPClient.Data;assembly=Client.Data"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- mc:Ignorable="d">
- <UserControl.Resources>
- <converters:BoolOpposedVisibility x:Key="BoolOpposedVisibility" />
- <HierarchicalDataTemplate x:Key="TreeDataTemplate"
- DataType="{x:Type data:SysMenuItem}"
- ItemsSource="{Binding Children}">
- <!--
- <Grid>
- <Rectangle HorizontalAlignment="Stretch"
- VerticalAlignment="Stretch"
- Fill="{DynamicResource DisEnableBrush}"
- Stretch="Fill"
- Visibility="{Binding IsEnabled,
- Converter={StaticResource BoolOpposedVisibility}}" />
- -->
- <TextBlock Text="{Binding Title}" />
- <!-- </Grid> -->
- <!--
- <HierarchicalDataTemplate.ItemContainerStyle>
- <Style TargetType="{x:Type TreeViewItem}">
- <Setter Property="IsSelected" Value="{Binding IsSelected}" />
-
- </Style>
- </HierarchicalDataTemplate.ItemContainerStyle>
- -->
- </HierarchicalDataTemplate>
- </UserControl.Resources>
- <UserControl.DataContext>
- <Binding Path="MenuTree" Source="{StaticResource Locator}" />
- </UserControl.DataContext>
- <Grid Background="{DynamicResource TreeBackground}">
- <Border MinWidth="150"
- BorderBrush="{DynamicResource TreeBorderBrush}"
- BorderThickness="0,0,1,0">
- <TreeView x:Name="FunctionTreeView"
- Margin="10,0,0,0"
- Background="{DynamicResource TreeBackground}"
- BorderBrush="Transparent"
- BorderThickness="0"
- FontSize="{DynamicResource MuchinfoFontSize_S}"
- Foreground="{DynamicResource TreeForeground}"
- ItemContainerStyle="{DynamicResource LineTreeViewItem}"
- ItemTemplate="{DynamicResource TreeDataTemplate}"
- ItemsSource="{Binding MenuSource}"
- MouseLeftButtonUp="TreeView_OnMouseLeftButtonUp">
- <!--
- <TreeViewItem IsExpanded="True" Style="{DynamicResource TreeViewItemHiddenStyle}"
- ItemsSource="{Binding MenuSource}"></TreeViewItem>
- -->
- </TreeView>
- </Border>
- </Grid>
- </UserControl>
|