Note that there are some explanatory texts on larger screens.

plurals
  1. POSilverlight mouse left button down issue
    primarykey
    data
    text
    <p>In a Silverlight 3 project I am using mouse left button down event on a border control but found out that the event is raised even when I click the button slightly outside the border like 5-10 pixels. </p> <p>Has anyone faced this issue before?</p> <p>Thanks in anticipation!</p> <p>Following is the XAML in which we are capturing the event of brdSelect:</p> <p> </p> <pre><code> &lt;Border MouseLeftButtonDown="Grid_Mousedown" x:Name="brdSelect" Grid.Row="1" Grid.Column="1" BorderThickness="0.5" BorderBrush="#FF2D9FD2"&gt; &lt;Grid x:Name="grdSelect" &gt; &lt;Border x:Name="brdImage" BorderThickness="0" CornerRadius="5" Width="Auto" Height="Auto"&gt; &lt;Image Height="Auto" Width="Auto" Stretch="UniformToFill" x:Name="imgMotive"/&gt; &lt;/Border&gt; &lt;Image Height="Auto" Stretch="UniformToFill" x:Name="imgtmp" Visibility="Collapsed"/&gt; &lt;/Grid&gt; &lt;/Border&gt; &lt;Image Height="13" Width="13" Source="../Images/rotate_small.JPG" Stretch="None" x:Name="imgRotate" Grid.Row="0" Grid.Column="3" Visibility="Collapsed"/&gt; &lt;StackPanel Orientation="Horizontal" d:LayoutOverrides="GridBox" Grid.ColumnSpan="3" Margin="0,0,2,0" Width="32" HorizontalAlignment="Left"&gt; &lt;Image Height="13" Width="13" Source="../Images/delete_small.JPG" Stretch="None" x:Name="imgDelete" Visibility="Collapsed" /&gt; &lt;/StackPanel&gt; &lt;Image Source="../Images/resize_small.JPG" Stretch="None" x:Name="imgResize" Grid.Row="2" Grid.RowSpan="2" Grid.Column="2" Visibility="Collapsed" Opacity="0"/&gt; &lt;/Grid&gt; &lt;TextBlock x:Name="txtLabel" Height="100" HorizontalAlignment="Left" Margin="-80,0,0,-20" Width="80" Text="X: 0 --- Y: 0" Foreground="Red" TextWrapping="Wrap" Visibility="Collapsed"/&gt; &lt;/Grid&gt; &lt;/Border&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload