private Adorner CreateAdornerTooltip(IHint hint, UIElement adornedElement) { var adorner = _adornerTooltipGenerator.GetAdornerTooltip(hint, adornedElement); adorner.Visibility = !IsEnabled ? Visibility.Collapsed : Visibility.Visible; return(adorner); }
private Adorner CreateAdornerTooltip(IHint hint, UIElement adornedElement) { var adorner = _adornerTooltipGenerator.GetAdornerTooltip(hint, adornedElement); adorner.SetCurrentValue(UIElement.VisibilityProperty, !IsEnabled ? Visibility.Collapsed : Visibility.Visible); return(adorner); }