Fix regression bug with application title no longer grayed out.#632
Fix regression bug with application title no longer grayed out.#632HowardWolosky merged 1 commit intomicrosoft:masterfrom rudyhuyn:FixRegressionTitleGray
Conversation
HowardWolosky
left a comment
There was a problem hiding this comment.
Thanks Rudy.
While I do agree that after testing, this does fix the problem, it's not clear to me why this fixes the problem, nor why the previous change introduced the problem in the first place.
Any chance that you can explain for myself (and the rest of our readers here)?
|
Thanks @rudyhuyn.
That was what I figured based on your change. Thanks for the confirmation. I then found corresponding documentation to support that statement as well:
But then I'm trying to understand other places where it appears to not be on the root XAML node of the control. Take for example,, the calculator/src/Calculator/Views/Calculator.xaml Lines 928 to 944 in 24d997d Here we have a I think your change here is completely right, no doubt. I'm just trying to wrap my head around some inconsistent usage (as far as I can tell) of VSM then within the project (although, as far as I can tell, this is the only other example in the project besides the one in this PR where VSM isn't attached to the root node). Thoughts? |
Even if the Border is a X(A)ML descendant of the Grid, they are not related and are part of 2 different XAML trees because the ContentTemplate has its own XAML tree structure. The Grid is a content of the Page, and is part of its visual tree. So the definition is still correct: the VisualStateManager is attached to the root element of a control template. |
|
Ah. Good catch. I completely missed that there was a |


Fixes #631
Description of the changes:
How changes were validated: