private void OnDisplayDismissed(UIElement sender, AccessKeyDisplayDismissedEventArgs args)
        {
            var tooltip = ToolTipService.GetToolTip(sender) as ToolTip;

            if (tooltip != null)
                tooltip.IsOpen = false;

            ToolTipService.SetToolTip(sender, null);
        }
Пример #2
0
        private void UserControl_AccessKeyDisplayDismissed(UIElement sender, AccessKeyDisplayDismissedEventArgs args)
        {
            var tooltip = ToolTipService.GetToolTip(sender) as ToolTip;

            if (tooltip != null)
            {
                tooltip.IsOpen = false;
                //Fix to avoid show tooltip with mouse
                ToolTipService.SetToolTip(sender, null);
            }
        }
Пример #3
0
        private void OnDisplayDismissed(UIElement sender, AccessKeyDisplayDismissedEventArgs args)
        {
            var tooltip = ToolTipService.GetToolTip(sender) as ToolTip;

            if (tooltip != null)
            {
                tooltip.IsOpen = false;
            }

            ToolTipService.SetToolTip(sender, null);
        }
Пример #4
0
        void OnAccessKeyDisplayDismissed(UIElement sender, AccessKeyDisplayDismissedEventArgs args)
        {
            DependencyObject target = AdjustTarget(sender);

            var tooltip = ToolTipService.GetToolTip(target) as ToolTip;

            if (tooltip != null)
            {
                tooltip.IsOpen = false;
                //Fix to avoid show tooltip with mouse
                ToolTipService.SetToolTip(target, null);
            }
        }
Пример #5
0
        }//添加搜索按钮的事件

        private void Search_AccessKeyDisplayDismissed(UIElement sender, AccessKeyDisplayDismissedEventArgs args)
        {
        }
Пример #6
0
        private void OnAccessKeyDismissed(UIElement sender, AccessKeyDisplayDismissedEventArgs args)
        {
            ToolTip tooltip = ToolTipService.GetToolTip(sender) as ToolTip;

            tooltip.IsOpen = false;
        }