---
title: "Q: How do I get a ToolTip to appear when hovering over a disabled element?"  
description: "Q: How do I get a ToolTip to appear when hovering over a disabled element?"  
author: "Anonymous User"  
published: 2011-03-11  
updated: 2020-09-21  
canonical: https://www.mindstick.com/interview/398/q-how-do-i-get-a-tooltip-to-appear-when-hovering-over-a-disabled-element  
category: "wpf"  
tags: ["wpf"]  
reading_time: 1 minute  

---

# Q: How do I get a ToolTip to appear when hovering over a disabled element?

use the ShowOnDisabled attached property of theToolTipService class! From

XAML, this would look like the following on a Button:

<Button **ToolTipService.ShowOnDisabled**=”**True**”>

</Button>

Or from C# code, you can call the static methodcorresponding to the attached property:

ToolTipService.SetShowOnDisabled(myButton, true);

## Answers

### Answer by Anonymous User

use the ShowOnDisabled attached property of theToolTipService class! From

XAML, this would look like the following on a Button:

<Button **ToolTipService.ShowOnDisabled**=”**True**”>

</Button>

Or from C# code, you can call the static methodcorresponding to the attached property:

ToolTipService.SetShowOnDisabled(myButton, true);


---

Original Source: https://www.mindstick.com/interview/398/q-how-do-i-get-a-tooltip-to-appear-when-hovering-over-a-disabled-element

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
