// Token: 0x0600596E RID: 22894 RVA: 0x0018AF14 File Offset: 0x00189114
        private static void OnHasErrorChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            Control control = d as Control;

            if (control != null)
            {
                Control.OnVisualStatePropertyChanged(control, e);
            }
        }
Exemplo n.º 2
0
        // Token: 0x06005872 RID: 22642 RVA: 0x00188288 File Offset: 0x00186488
        private static void OnIsOpenChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ToolTip toolTip = (ToolTip)d;

            if ((bool)e.NewValue)
            {
                if (toolTip._parentPopup == null)
                {
                    toolTip.HookupParentPopup();
                }
            }
            else if (AutomationPeer.ListenerExists(AutomationEvents.ToolTipClosed))
            {
                AutomationPeer automationPeer = UIElementAutomationPeer.CreatePeerForElement(toolTip);
                if (automationPeer != null)
                {
                    automationPeer.RaiseAutomationEvent(AutomationEvents.ToolTipClosed);
                }
            }
            Control.OnVisualStatePropertyChanged(d, e);
        }