提交 a4d7ed19 编写于 作者: T tanghai

增加一个节点编辑控件

上级 52f73b53
<UserControl x:Class="Modules.Tree.NodeDataEditor"
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"
mc:Ignorable="d" Height="217" Width="211">
<Grid Margin="0,0,10,10">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Label Content="ID: " Grid.Row="0" Grid.Column="0" HorizontalAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Center" VerticalContentAlignment="Stretch" />
<Label Content="Type:" Grid.Row="1" Grid.Column="0" HorizontalAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Center" />
<Label Content="Name:" Grid.Row="2" Grid.Column="0" HorizontalAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Center" />
<Label Content="Args:" Grid.Row="3" Grid.Column="0" HorizontalAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Center" />
<Label Content="Comment:" Grid.Row="4" Grid.Column="0" HorizontalAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Center" />
<TextBox Grid.Column="1" Grid.Row="0" Margin="10"/>
<TextBox Grid.Column="1" Grid.Row="1" Margin="10"/>
<TextBox Grid.Column="1" Grid.Row="2" Margin="10"/>
<TextBox Grid.Column="1" Grid.Row="3" Margin="10"/>
<TextBox Grid.Column="1" Grid.Row="4" Margin="10"/>
</Grid>
</UserControl>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace Modules.Tree
{
/// <summary>
/// NodeDataEditor.xaml 的交互逻辑
/// </summary>
public partial class NodeDataEditor : UserControl
{
public NodeDataEditor()
{
InitializeComponent();
}
}
}
......@@ -76,7 +76,10 @@
<Reference Include="System" />
<Reference Include="System.ComponentModel.Composition" />
<Reference Include="System.Core" />
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xaml" />
<Reference Include="System.Xml" />
<Reference Include="WindowsBase" />
......@@ -88,6 +91,9 @@
<Compile Include="BehaviorTreeView.xaml.cs">
<DependentUpon>BehaviorTreeView.xaml</DependentUpon>
</Compile>
<Compile Include="NodeDataEditor.xaml.cs">
<DependentUpon>NodeDataEditor.xaml</DependentUpon>
</Compile>
<Compile Include="TreeNodeData.cs" />
<Compile Include="TreeNodeDataArray.cs" />
<Compile Include="TreeNodeViewModel.cs" />
......@@ -104,6 +110,10 @@
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="NodeDataEditor.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Platform\Helper\Helper.csproj">
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册