Click here to Skip to main content
15,885,875 members
Please Sign up or sign in to vote.
3.00/5 (3 votes)
See more:
Silverlight MouseLeftButtonDown Event Not Firing i have found solutions
Posted
Updated 24-Jul-12 0:32am
v2
Comments
Adam David Hill 30-Jun-12 5:14am    
Where are you subscribing to the OnMouseLeftButtonDown event? Do you have something like "item.MouseLeftButtonDown += OnMouseLeftButtonDown;" anywhere? One quick thing to try - change the fill of the rectangle to ever-so-slightly visible rather than purely transparent. I seem to recall totally transparent things don't tend to pick up mouse events.
Christian Amado 20-Jul-12 10:43am    
On the XAML Where I found the OnMouseLeftButtonDown Event? You never fires the event!

1 solution

Let me query to the God of the presumption.

But in your code:
XML
<DesignerControlLib:DesignerCanvas Width="600" Height="600" removed="#f5f5f5" Margin="10" >
            <DesignerControlLib:DesignerItem Width="100">
                <Image Source="/Kartvizitci1;component/Images/3.jpg" IsHitTestVisible="False"></Image>
            </DesignerControlLib:DesignerItem>
        </DesignerControlLib:DesignerCanvas>

Can you add a OnMouseLeftButtonDown Event:
XML
<DesignerControlLib:DesignerCanvas Width="600" Height="600" removed="#f5f5f5" Margin="10" OnMouseLeftButtonDown="OnMouseLeftButtonDown" >
            <DesignerControlLib:DesignerItem Width="100">
                <Image Source="/Kartvizitci1;component/Images/3.jpg" IsHitTestVisible="False"></Image>
            </DesignerControlLib:DesignerItem>
        </DesignerControlLib:DesignerCanvas>

Hope its help, a little.
 
Share this answer
 
Comments
Christian Amado 24-Jul-12 17:00pm    
It was helpful =)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900