35 lines
2.6 KiB
XML
35 lines
2.6 KiB
XML
<UserControl x:Class="垂直剖面动态观测系统.View.UserControlMenuItem"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="clr-namespace:垂直剖面动态观测系统.View"
|
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" xmlns:ViewModel="clr-namespace:垂直剖面动态观测系统.ViewModel"
|
|
mc:Ignorable="d">
|
|
<Grid>
|
|
<StackPanel Orientation="Horizontal">
|
|
<materialDesign:PackIcon Kind="{Binding Path=Icon}" Width="15" Height="15" Margin="10,16,10,16" Foreground="White"/>
|
|
<!--<ListBoxItem x:Name="ListViewItemMenu" Content="{Binding Path=Header}" Padding="37 14" FontSize="15" Foreground="White"/>-->
|
|
<Expander x:Name="ExpanderMenu" Header="{Binding Path=Header}" IsExpanded="False" Width="250" HorizontalAlignment="Right" Background="{x:Null}" Foreground="White" >
|
|
<ListView x:Name="ListViewMenu" ItemsSource="{Binding Path=SubItems}" Foreground="White" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
|
|
<ListView.ItemTemplate>
|
|
<DataTemplate>
|
|
<Expander x:Name="expander" Header="{Binding Path=Name}" IsExpanded="False" HorizontalAlignment="Right" Background="{x:Null}" Foreground="White" Width="240" PreviewMouseDown="expander_PreviewMouseDown">
|
|
<ListView ItemsSource="{Binding Path=Name_List}" Margin="40,0,0,0" Foreground="White" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
|
|
<ListView.ItemTemplate>
|
|
<DataTemplate>
|
|
<Button Background="{x:Null}" Foreground="White" BorderThickness="0" Click="Button_Click" Tag="{Binding}">
|
|
<TextBlock x:Name="PageName" Text="{Binding}" Width="200"/>
|
|
</Button>
|
|
</DataTemplate>
|
|
</ListView.ItemTemplate>
|
|
</ListView>
|
|
</Expander>
|
|
</DataTemplate>
|
|
</ListView.ItemTemplate>
|
|
</ListView>
|
|
</Expander>
|
|
</StackPanel>
|
|
</Grid>
|
|
</UserControl>
|