I want to disable Up/down key button in XamWebTree.
I tried to use KeyDown event but never called handler. I tried with KeyUp event . It calls handler but there is property to Cancel event.
Please suggest me how to disable Up/Down key button in XamWebTree
Hello,
Since the XamWebTree is handling key events, adding your own KeyDown event won't do anything. This is typical for most Silverlight controls. I would try applying a KeyDown handler to the XamWebTreeItem class. If these items are being auto-generated, you will need to apply the handler programmatically. The selected tree item (which you may need to make Focusable) should receive the key event before the Tree itself in which you can "Handle" the event and stop it from bubbling up to its container.
Please let me know if this works.
Thanks!