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
and having a TabPage (which also shows them in its tab)
you get a runtime exception:
System.InvalidOperationException: The control Button (Content = Header) already has a visual parent ContentPresenter (Name = PART_ContentPresenter, Host = ContentControl) while trying to add it as a child of ContentPresenter (Name = PART_ContentPresenter, Host = TransitioningContentControl (Name = PART_Header)).
To mitigate this, I propose to introduce two additional properties:
When using controls as header and heradericon like so:
and having a TabPage (which also shows them in its tab)
you get a runtime exception:
To mitigate this, I propose to introduce two additional properties:
NavigationBar.HeaderIconTemplate
NavigationBar.HeaderTempalte
You can then use these to setup your view like:
and you're good to go.
As far as I understand, this should also be backward compatible.
PR is following! I hope you like it @OmidID :-)
The text was updated successfully, but these errors were encountered: