Hi,
My app used Employee table in northwind database and RiaService to get data. Its very strange that the “Cut” function works but i can’t do Copy and Paste, the screen no changes
This is my xaml and code behind:
<Grid.Resources>
</StackPanel>
</StackPanel>
</Border>
</DataTemplate>
<DataTemplate x:Key="LinkTemplate">
<Path go:LinkPanel.IsLinkShape="True"
Stroke="Black"
StrokeThickness="1"
go:Link.SelectionAdorned="True">
<go:Link.Route>
<go:Route Routing="Orthogonal"
Corner="3">
</go:Route>
</go:Link.Route>
</Path>
</DataTemplate>
</Grid.Resources>
<riaControls:DomainDataSource x:Name="dds"
AutoLoad="True"
Height="0"
LoadedData="dds_LoadedData"
QueryName="GetEmployees"
Width="0"
>
<riaControls:DomainDataSource.DomainContext>
<web:NorthwindContext />
</riaControls:DomainDataSource.DomainContext>
</riaControls:DomainDataSource>
<go:Diagram x:Name="diagram1"
HorizontalAlignment="Left"
Margin="10,0,0,0"
VerticalAlignment="Top"
MinHeight="300"
NodeTemplate="{StaticResource NodeTemplate}"
LinkTemplate="{StaticResource LinkTemplate}">
<go:Diagram.Model>
<go:UniversalTreeModel NodeKeyPath="EmployeeID"
ParentNodePath="ReportsTo" />
</go:Diagram.Model>
<go:Diagram.Layout>
<go:TreeLayout ConditionFlags="Standard NodeSizeChanged"
TreeStyle="LastParents"
Arrangement="Horizontal"
Alignment="BottomRightBus"
Angle="90"
AlternateAngle="90"
AlternateAlignment="BottomRightBus"
AlternateNodeSpacing="20"
AlternateLayerSpacing="20">
</go:TreeLayout>
</go:Diagram.Layout>
<go:Diagram.DraggingTool>
<go:DraggingTool DropOntoEnabled="True" />
</go:Diagram.DraggingTool>
</go:Diagram>
</Grid>
And this is codebehind:
if i used diagram1.NodesSource = e.Entities then the Cut function does not work
Can some one help me
Thanks
Khiem