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

Book "eats" MouseLeftButtonUp" events

3 Answers 35 Views
Book
This is a migrated thread and some comments may be shown as answers.
ManniAT
Top achievements
Rank 2
ManniAT asked on 01 Feb 2010, 09:36 PM
Hi,

I noticed that one of my custom controls no longer works when placed inside a book.
Investigating on this I found that book suppresses some events - at least for some controls.

Here a simple sample:
Snippet created with CBEnhancer
<telerikNavigation:RadBook Width="980">
        <telerikNavigation:RadBookItem>
            <Rectangle x:Name="rCheck" MouseLeftButtonUp="rCheck_MouseLeftButtonUp" Width="100" Height="100" Fill="Gray" MouseLeftButtonDown="rCheck_MouseLeftButtonDown" />
        </telerikNavigation:RadBookItem>
        <telerikNavigation:RadBookItem>
            <TextBlock x:Name="txtOut" Text="Depp2" MouseLeftButtonUp="txtOut_MouseLeftButtonUp_1"/>
        </telerikNavigation:RadBookItem>

Notice that the MouseLeftButtonUp event fires with the rectangle - but not with the TextBlock.
I didn't investigate further (was hard to find this :)) but I would say - there's something wrong.
Maybe only with textblock - or with other elements too.

In my example it also fails with a rectangle - but this is a bit complex
-- I assign elements as frameworkelements in OnApplyTemplate using dynamic styles....

Anyhow - the obove sample shows the problem - I hope a fix of this will also fix my other problem.

Regards
Manfred

3 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 02 Feb 2010, 06:44 AM
Hi ManniAT,

what is the version of the assemblies that you are using? We had this problem with the Q309 assemblies, but fixed it.

Sincerely yours,
Valentin.Stoychev
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.
0
ManniAT
Top achievements
Rank 2
answered on 02 Feb 2010, 08:59 AM
Hi Valentin,

I can't access pits at the moment - but anyhow - I use the latest internal builds (2009.3.1329.1030).
The problem exists in this version -- MouseLeftButtonDOWN works - but NOT MouseLeftButtonUP.

Just give it a try with the above sample.

Manfred
0
Accepted
Kiril Stanoev
Telerik team
answered on 02 Feb 2010, 02:14 PM
Hi Manfred,

Thank you for your feedback. I've fixed the issue and the fix will be available with this week's internal build. When you download it give it a try and let me know how it works for you. I have also added 1000 Telerik points to your account.

Kind regards,
Kiril Stanoev
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Tags
Book
Asked by
ManniAT
Top achievements
Rank 2
Answers by
Valentin.Stoychev
Telerik team
ManniAT
Top achievements
Rank 2
Kiril Stanoev
Telerik team
Share this question
or