예제 #1
0
 private void CloseMenu(object sender, MouseButtonEventArgs mouseButtonEventArgs)
 {
     //TODO: Send To Window And Pop It up
     if (_currentPopUp != null && _mediaMenu.IsMouseOver == false)
     {
         Dispatch("Remove PopUp", _currentPopUp);
         Menu?.Reset();
         _currentPopUp = null;
     }
 }
예제 #2
0
 private void OpenMenu(object sender, MouseButtonEventArgs mouseButtonEventArgs)
 {
     //TODO: Send To Window And Pop It up
     if (mouseButtonEventArgs.ChangedButton != MouseButton.Right) return;
     Dispatch("Add PopUp", _currentPopUp = new PopUp
     {
         PopUpElement = _mediaMenu,
         X = mouseButtonEventArgs.GetPosition(Application.Current.MainWindow).X,
         Y = mouseButtonEventArgs.GetPosition(Application.Current.MainWindow).Y
     });
 }
예제 #3
0
 public void RemovePopUp(PopUp popUp)
 {
     _popUps.Remove(popUp);
 }
예제 #4
0
 public void AddPopUp(PopUp popUp)
 {
     _popUps.Add(popUp);
 }
예제 #5
0
 public void RemovePopUp(PopUp popUp)
 {
     _popUps.Remove(popUp);
 }
예제 #6
0
 public void AddPopUp(PopUp popUp)
 {
     _popUps.Add(popUp);
 }