You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If you bind the GroupBox header to a text property in your view model like that: <GroupBox Header="{Binding HeaderText}" />
and your property HeaderText is a string with Content "Header_Text", the text is not displayed as expected.
Expected behavior
I would expect the header text to display "Header_Text", while it displays "HeaderText".
Reason for this seems to be the ContentPresenter.RecognizesAccessKey Property, which is set to true by default for the GroupBox's HeaderContent via ContentControlEx.
Is this by design and if so, should it be configurable?
As a workaround I put a TextBlock in Header like this:
…cessKey
Introduce a new attached dependency property ControlsHelper.RecognizesAccessKey to allow set the RecognizesAccessKey of controls which has a ContentControlEx inside.
Describe the bug
If you bind the GroupBox header to a text property in your view model like that:
<GroupBox Header="{Binding HeaderText}" />
and your property HeaderText is a string with Content "Header_Text", the text is not displayed as expected.
Expected behavior
I would expect the header text to display "Header_Text", while it displays "HeaderText".
Reason for this seems to be the ContentPresenter.RecognizesAccessKey Property, which is set to true by default for the GroupBox's HeaderContent via ContentControlEx.
Is this by design and if so, should it be configurable?
As a workaround I put a TextBlock in Header like this:
Environment
Many thanks in advance!
The text was updated successfully, but these errors were encountered: