Ejemplo n.º 1
0
        private void NodeInfoContainer_PreviewMouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            var dependencyObject = (DependencyObject)e.OriginalSource;
            var hitControl       = dependencyObject.GetParent <Control>(this);

            if (hitControl == null || hitControl == this)
            {
                NodeInfoContainer control = (NodeInfoContainer)sender;
                control.Focus();
            }
        }
Ejemplo n.º 2
0
        private void NodeInfoContainer_IsKeyboardFocusWithinChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            NodeInfoContainer container = (NodeInfoContainer)sender;

            if ((bool)e.NewValue == true)
            {
                container.BeginStoryboard((System.Windows.Media.Animation.Storyboard)container.FindResource("SelectedStoryboard"));
            }
            else
            {
                container.BeginStoryboard((System.Windows.Media.Animation.Storyboard)container.FindResource("UnselectedStoryboard"));
            }
        }
Ejemplo n.º 3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.thisInfoContainer = ((TraceLab.UI.WPF.Views.Nodes.NodeInfoContainer)(target));

            #line 39 "..\..\..\..\Views\Nodes\NodeInfoContainer.xaml"
                this.thisInfoContainer.IsKeyboardFocusWithinChanged += new System.Windows.DependencyPropertyChangedEventHandler(this.NodeInfoContainer_IsKeyboardFocusWithinChanged);

            #line default
            #line hidden

            #line 40 "..\..\..\..\Views\Nodes\NodeInfoContainer.xaml"
                this.thisInfoContainer.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.NodeInfoContainer_PreviewMouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 2:
                this.ComponentInfoTip = ((System.Windows.Controls.Border)(target));
                return;

            case 3:
                this.InfoTipTitleBar = ((System.Windows.Controls.Grid)(target));
                return;

            case 4:
                this.InfoTipTitleName = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 5:
                this.content = ((System.Windows.Controls.ContentPresenter)(target));
                return;
            }
            this._contentLoaded = true;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.thisInfoContainer = ((TraceLab.UI.WPF.Views.Nodes.NodeInfoContainer)(target));
     
     #line 39 "..\..\..\..\Views\Nodes\NodeInfoContainer.xaml"
     this.thisInfoContainer.IsKeyboardFocusWithinChanged += new System.Windows.DependencyPropertyChangedEventHandler(this.NodeInfoContainer_IsKeyboardFocusWithinChanged);
     
     #line default
     #line hidden
     
     #line 40 "..\..\..\..\Views\Nodes\NodeInfoContainer.xaml"
     this.thisInfoContainer.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.NodeInfoContainer_PreviewMouseLeftButtonDown);
     
     #line default
     #line hidden
     return;
     case 2:
     this.ComponentInfoTip = ((System.Windows.Controls.Border)(target));
     return;
     case 3:
     this.InfoTipTitleBar = ((System.Windows.Controls.Grid)(target));
     return;
     case 4:
     this.InfoTipTitleName = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 5:
     this.content = ((System.Windows.Controls.ContentPresenter)(target));
     return;
     }
     this._contentLoaded = true;
 }