Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1192
Disable Up/Down key button to restrict tree traversal
posted

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

Parents
No Data
Reply
  • 9694
    Suggested Answer
    posted

    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!

Children
No Data