<usercontrol x:class="TreeViewDragDrop.MainPage" xmlns:x="#unknown"> 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:TreeViewDragDrop" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="800" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"> <usercontrol.resources> <local:mainpageviewmodel x:key="ViewModel" xmlns:local="#unknown" /> <sdk:hierarchicaldatatemplate x:key="PeopleTemplate" itemssource="{Binding Children}" xmlns:sdk="#unknown"> <textblock text="{Binding Name}" /> </sdk:hierarchicaldatatemplate> </usercontrol.resources> <Canvas x:Name="LayoutRoot" DataContext="{StaticResource ViewModel}"> <toolkit:treeviewdragdroptarget allowdrop="True" allowedsourceeffects="Copy,Move" xmlns:toolkit="#unknown"> <sdk:treeview margin="0" width="250" itemssource="{Binding People}" itemtemplate="{StaticResource PeopleTemplate}" xmlns:sdk="#unknown" /> </toolkit:treeviewdragdroptarget> <sdk:treeview margin="270,0" width="200" itemssource="{Binding People}" allowdrop="True" itemtemplate="{StaticResource PeopleTemplate}" xmlns:sdk="#unknown" /> </Canvas> </usercontrol>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)