Esempio n. 1
0
 private void btnScreenshot_ArrowClick(object sender, RoutedEventArgs e)
 {
     this.popup                    = new ScreenshotPopup();
     this.popup.StaysOpen          = false;
     this.popup.PlacementTarget    = this.btnScreenshot;
     this.popup.Placement          = PlacementMode.Bottom;
     this.popup.IsOpen             = true;
     this.popup.rbtnCutHide.Click += new RoutedEventHandler(this.rbtnCutHide_Click);
     this.popup.rbtnCutShow.Click += new RoutedEventHandler(this.rbtnCutShow_Click);
 }
 private void btnScreenshot_ArrowClick(object sender, RoutedEventArgs e)
 {
     this.popup                    = new ScreenshotPopup();
     this.popup.StaysOpen          = false;
     this.popup.PlacementTarget    = (e.Source as System.Windows.Controls.Button);
     this.popup.Placement          = PlacementMode.Bottom;
     this.popup.IsOpen             = true;
     this.popup.rbtnCutShow.Click += new RoutedEventHandler(this.rbtnCutShow_Click);
     this.popup.rbtnCutHide.Click += new RoutedEventHandler(this.rbtnCutHide_Click);
 }
 private void btnScreenshot_ArrowClick(object sender, RoutedEventArgs e)
 {
     this.popup = new ScreenshotPopup();
     this.popup.StaysOpen = false;
     this.popup.PlacementTarget = (e.Source as System.Windows.Controls.Button);
     this.popup.Placement = PlacementMode.Bottom;
     this.popup.IsOpen = true;
     this.popup.rbtnCutShow.Click += new RoutedEventHandler(this.rbtnCutShow_Click);
     this.popup.rbtnCutHide.Click += new RoutedEventHandler(this.rbtnCutHide_Click);
 }
 private void btnScreenshot_ArrowClick(object sender, RoutedEventArgs e)
 {
     this.popup = new ScreenshotPopup();
     this.popup.StaysOpen = false;
     this.popup.PlacementTarget = this.btnScreenshot;
     this.popup.Placement = PlacementMode.Bottom;
     this.popup.IsOpen = true;
     this.popup.rbtnCutHide.Click += new RoutedEventHandler(this.rbtnCutHide_Click);
     this.popup.rbtnCutShow.Click += new RoutedEventHandler(this.rbtnCutShow_Click);
 }