Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Silverlight Events
Silverlight MouseLeftButtonDown Event Not Firing i have found solutions
Posted 26-Jun-12 5:22am
Edited 24-Jul-12 0:32am
v2
Comments
AdamDavidHill at 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 at 20-Jul-12 10:43am
   
On the XAML Where I found the OnMouseLeftButtonDown Event? You never fires the event!

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Let me query to the God of the presumption.
 
But in your code:
<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:
<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.
  Permalink  
Comments
Christian Amado at 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)

  Print Answers RSS
0 CPallini 550
1 Sergey Alexandrovich Kryukov 420
2 George Jonsson 288
3 Pheonyx 218
4 OriginalGriff 200
0 OriginalGriff 4,813
1 CPallini 3,850
2 Sergey Alexandrovich Kryukov 3,224
3 George Jonsson 2,552
4 Gihan Liyanage 2,186


Advertise | Privacy | Mobile
Web03 | 2.8.140905.1 | Last Updated 24 Jul 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100