I'm using the XamDataTree and planning to include a textbox in a node for a customised edit mode. However, the trouble is that the space is reserved for the selectection of the node.
Is there a way to disable the space key for selection of a node?
Thanks,
Meisam.
Hi,
Could you please clarify how exactly are you planning to include the textbox and what the issue is?
Are you trying to set it as an ItemTemplate?
Regards,
I have defined a state for editing a node. When the user clicks on a link the state of the node changes to the edit mode. In this state I present a text box to the user. However, because of the nature of the XamDataTree the user cannot enter space in the textbox.
meisam.
Could you please let me know what is the approach that you are using to present the text box?
Normally, you should set the way the user can enter edit mode with a TreeEditingSettings object (e.g. XamDataTree.EditingSettings), or control the entering / exiting edit mode by using the following methods:
XamDataTree.EnterEditMode()
XamDataTree.ExitEditMode()
HTH,
Basically I've careated a datatemplate for the Nodelayout that I'm using as tree nodes in the XamDataTree. Withing this datatemplate I've defined a state that shows a textbox. A gotostate behaviour attached to a button changes the state to the one that shows the textbox.
Thanks.
Are you using the ItemTemplate property to set the DataTemplate, e.g. something like that:
<ig:NodeLayout.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Path=XDT_Book, Source={StaticResource Strings}}" />
<TextBlock Text="{Binding Data.Name}" />
</StackPanel>
</DataTemplate>
</ig:NodeLayout.ItemTemplate>
If that's the case, then that is what is causing the issue, because the XamDataTree implements it's own way of doing editing and it doesn't know you are in edit mode.
Thanks for your reply. However, I'm setting the LayoutNode in the GlobalNode settings of the tree view. The template that I was refering to was the datatemplate of the layoutnode.
I figured that instead of using customised edit mode in the datatemplate, I should facilitate the edit feature of the datatreeview.
Thanks for your help again.
Regards, Meisam.