Interaction logic for PropertySelector.xaml
Inheritance: System.Windows.Controls.UserControl
Exemplo n.º 1
0
        public override void OnApplyTemplate()
        {
            DependencyObject fePopup = GetTemplateChild("fePopup");

            if (fePopup != null)
            {
                _fePopup         = fePopup as Popup;
                _fePopup.Opened += new EventHandler(_fePopup_Opened);
                _fePopup.Closed += new EventHandler(_fePopup_Closed);
            }
            var fePopupControl = GetTemplateChild("fePopupControl");

            if (fePopupControl != null)
            {
                _fePopupControl            = fePopupControl as PropertySelectorPopup;
                _fePopupControl.bOk.Click += (s, e) =>
                {
                    _fePopup.IsOpen = false;
                };
            }
            this.myWindow = Window.GetWindow(this);
            if (myWindow != null)
            {
                this.myWindow.PreviewMouseDown += new MouseButtonEventHandler(myWindow_PreviewMouseDown);
            }
        }
 public override void OnApplyTemplate()
 {
     DependencyObject fePopup = GetTemplateChild("fePopup");
     if (fePopup != null)
     {
         _fePopup = fePopup as Popup;
         _fePopup.Opened += new EventHandler(_fePopup_Opened);
         _fePopup.Closed += new EventHandler(_fePopup_Closed);
     }
     var fePopupControl = GetTemplateChild("fePopupControl");
     if (fePopupControl != null)
     {
         _fePopupControl = fePopupControl as PropertySelectorPopup;
         _fePopupControl.bOk.Click += (s, e) =>
         {
             _fePopup.IsOpen = false;
         };
     }
     this.myWindow = Window.GetWindow(this);
     if (myWindow != null)
         this.myWindow.PreviewMouseDown += new MouseButtonEventHandler(myWindow_PreviewMouseDown);
 }