OfficeHelper/OfficeHelper/View/LongRuan/LRMenuAddView.xaml

(完整代码) 2KB

<WPFToolsWin:WindowBase x:Class="OfficeHelper.View.LongRuan.LRMenuAddView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:OfficeHelper.View.LongRuan"
        mc:Ignorable="d"
        xmlns:Controls="clr-namespace:WPFTools.Controls;assembly=WPFTools"
        xmlns:WPFToolsWin="clr-namespace:WPFTools.Windows;assembly=WPFTools"
        xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
        Title="添加菜单" Height="450" Width="800" WindowStartupLocation="CenterScreen">
    <WPFToolsWin:WindowBase.DataContext>
        <Binding Path="LRIndex" Source="{StaticResource Locator}"></Binding>
    </WPFToolsWin:WindowBase.DataContext>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"></RowDefinition>
            <RowDefinition></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal">
            <TextBlock>复制的站点</TextBlock>
            <ComboBox ItemsSource="{Binding WebSites}" DisplayMemberPath="Name" SelectedValuePath="ID" SelectedItem="{Binding ADDWebSite}" >
            </ComboBox>
            <TextBlock>复制到</TextBlock>
            <TextBlock Text="{Binding SelectNode.Data.Name}"></TextBlock>
            <Button Command="{Binding ADDViewADDCommand}">插入选择菜单</Button>
            <!--<ListBox ItemsSource="{Binding AddWebSites}">
                
            </ListBox>-->
        </StackPanel>
        <ComboBox ItemsSource="{Binding WebSites}" Grid.Row="1"></ComboBox>
        <TreeView Grid.Row="1" ItemsSource="{Binding ADDMenuTree.Nodes}" Name="tree">
            <TreeView.ItemTemplate >
                <HierarchicalDataTemplate ItemsSource="{Binding Nodes}">
                    <StackPanel Orientation="Horizontal">
                        <CheckBox IsChecked="{Binding Data.IsCheck}"></CheckBox>
                        <TextBlock Text="{Binding Data.Name}" ></TextBlock>
                    </StackPanel>
                </HierarchicalDataTemplate>
            </TreeView.ItemTemplate>
        </TreeView>


    </Grid>
</WPFToolsWin:WindowBase>

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。