Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Form Clicked (Read 1663 times)
PDM.
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 256
Joined: Dec 2nd, 2010
Form Clicked
Oct 5th, 2011 at 7:57pm
Print Post  
Inside form clicked i need filter some time if eventis left mouse click or right mouse click
Im tring this but not work:


Code
Select All
 private void form_Clicked(object sender, DiagramEventArgs e)
   {
     if (Mouse.LeftButton == MouseButtonState.Pressed)

 {
    /// mouse left click action here

 }
   }



This not work:
private void form_Clicked(object sender, DiagramEventArgs e)
   {

	    if (e.MouseButton == MouseButton.Left)
	 {

 



Error      11      'MouseButton' is an ambiguous reference between 'System.Windows.Input.MouseButton' and 'MindFusion.Diagramming.Wpf.MouseButton'      
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Form Clicked
Reply #1 - Oct 6th, 2011 at 7:59am
Print Post  
Remove the 'using System.Windows.Input;' statement if you don't need classes from this namespace, or otherwise specify the fully qualified type name:

Code
Select All
if (e.MouseButton == MindFusion.Diagramming.Wpf.MouseButton.Left)
{
} 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint