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

MouseLeftButtonDown Event not Firing.

1 Answer 62 Views
CoverFlow
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 07 Mar 2010, 04:36 PM
Hello,

I have my RadCoverFlow items setup with a MouseLeftButtonDown event. I want to make some stuff happen when the user double clicks a cover flow item.

This event though never fires. If I put the event in the CoverFlow itself the event will only fire when I click outside the bounds of the coverflowitem collection.

 

 

 

 <teknav:RadCoverFlowItem Height="100" Width="200" MouseLeftButtonDown="RadCoverFlowItem_MouseLeftButtonDown">  
 <StackPanel> 
   <Image Source="/images/flow/contact.png" Stretch="None"/>  
     <TextBlock Style="{StaticResource TextBasicStyle}" Text="Kate Austin"></TextBlock> 
     <TextBlock Style="{StaticResource TextBasicStyle}" Text="P.999-999-9999"></TextBlock> 
     <TextBlock Style="{StaticResource TextBasicStyle}" Text="C.999-999-9999"></TextBlock> 
 </StackPanel> 
</teknav:RadCoverFlowItem> 

 

1 Answer, 1 is accepted

Sort by
0
Hristo Borisov
Telerik team
answered on 08 Mar 2010, 07:02 PM
Hello Michael,

This is because your RadCoverFlowItem does not have a visual part to be clicked. Since you are using a StackPanel, your items are stacked inside the RadCoverFlowItem, and some parts of it are left without visual content. Make sure that you are actually clicking on the RadCoverFlowItem, for example you can set the background of the item to some distinct color in order to identify the visual presence of the item.

You can take a look at our CoverFlow DataInfo examples that uses a special User Control to hold your template, and mouse click logic.

If you have any other questions, please feel free to contact us again.

Kind regards,
Hristo Borisov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
CoverFlow
Asked by
Michael
Top achievements
Rank 1
Answers by
Hristo Borisov
Telerik team
Share this question
or