2017-04-18 07:52:04 +08:00
## Changing the IsEnabled property of the parent of a TextBlock control affects any child controls
2017-04-06 04:52:19 +08:00
### Scope
Minor
### Version Introduced
4.6.2
### Source Analyzer Status
Investigating
### Change Description
2017-04-21 02:19:05 +08:00
Starting with the .NET Framework 4.6.2, changing the
< xref:System.Windows.UIElement.IsEnabled ? displayProperty = name > property of the
parent of a < xref:System.Windows.Controls.TextBlock ? displayProperty = name >
control affects any child controls (such as hyperlinks and buttons) of the
< xref:System.Windows.Controls.TextBlock ? displayProperty = name > control.
In the .NET Framework 4.6.1 and earlier versions, controls inside a
< xref:System.Windows.Controls.TextBlock ? displayProperty = name > did not always
reflect the state of the
< xref:System.Windows.UIElement.IsEnabled ? displayProperty = name > property of the
< xref:System.Windows.Controls.TextBlock ? displayProperty = name > parent.
2017-04-06 04:52:19 +08:00
- [ ] Quirked // Uses some mechanism to turn the feature on or off, usually using runtime targeting, AppContext or config files. Needs to be turned on automatically for some situations.
- [ ] Build-time break // Causes a break if attempted to recompile
### Recommended Action
2017-04-21 02:19:05 +08:00
None. This change conforms to the expected behavior for controls inside a < xref:System.Windows.Controls.TextBlock ? displayProperty = name > control.
2017-04-06 04:52:19 +08:00
### Affected APIs
- `P:System.Windows.UIElement.IsEnabled`
### Category
Windows Presentation Foundation (WPF)
<!--
### Original Bug
213267
-->
2017-04-18 07:52:04 +08:00
<!-- breaking change id: 161 -->