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:
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
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>
<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