This is a migrated thread and some comments may be shown as answers.

Mouse events for items contained in TabItem?

1 Answer 50 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
C Bates
Top achievements
Rank 1
C Bates asked on 07 Oct 2009, 04:59 PM
Hello,
We are using the TabControl and DragAndDropManager.
In one implementation, we are able to attach event handlers to our Canvas's LButtonDown, MouseMove, and MouseWheel events. (Mousewheel support is provided by another class.)
With these handlers, we can zoom the view via the mousewheel, and enable panning by dragging the Canvas via the other mouse events.

When we add the TabItem control, the Canvas doesn't get any of the mouse events.  We have implemented the panning via the DragAndDropManager routines.

What do we need to do,when using the RadTabControl, to get the mouse wheel events on one of the objects contained in a TabItem?

Thanks for any suggestions...

1 Answer, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 10 Oct 2009, 09:05 AM
Hello C Bates,

I tried to reproduce this issue with the 2009.2.812 version of the controls but I could not. Quite possibly I am missing something or I have oversimplifies your case. The project I used to test this is attached.

The canvas may not receive events because it is missing a background. Can you try setting a background ("Transparent" will also be ok)?

Could you possibly share more details about your scenario - like the xaml of the page where the TabControl and the canvas are?

Also, could you paste the code of the DragDrop event handlers?

Thanks for helping us get to the problem here,

Sincerely yours,
Miroslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
TabControl
Asked by
C Bates
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Share this question
or