Ignore:
Timestamp:
Dec 2, 2008, 8:14:25 PM (13 years ago)
Author:
Timo Eckhardt
Message:

abort open context-menu in primes plugin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/Primes/Primes/WpfVisualization/PrimesControl.xaml.cs

    r26 r107  
    223223using Primes.WpfControls.Start;
    224224using System.Threading;
     225using System.Diagnostics;
    225226
    226227namespace Primes.WpfVisualization
     
    274275      Initialize();
    275276      settings = new PrimesSettings();
     277       
    276278    }
    277279
     
    615617      }, null);
    616618      (m_StartControl as StartControl).OnStartpageLinkClick += new Navigate(Navigate);
     619      this.MouseRightButtonDown += new MouseButtonEventHandler(PrimesControl_MouseRightButtonDown);
     620
     621
     622    }
     623
     624    void PrimesControl_MouseRightButtonDown(object sender, MouseButtonEventArgs e)
     625    {
     626      if (this.Parent != null)
     627      {
     628        if ((this.Parent as Control).ContextMenu != null) (this.Parent as Control).ContextMenu.Visibility = Visibility.Hidden;
     629      }
    617630    }
    618631
     
    632645    public UserControl Presentation
    633646    {
    634       get { return this; }
     647      get {
     648        return this;
     649      }
    635650    }
    636651
Note: See TracChangeset for help on using the changeset viewer.