winui3 not showing content of page that renders in tabviewitem

jarno beerten 61 Reputation points
2021-08-23T13:43:51.633+00:00

When i have .net5
winui3
tabview
that renders a page when adding the view but not is showing in the tabview

Universal Windows Platform (UWP)
Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
725 questions
{count} votes

Accepted answer
  1. Gerard Walschlager 76 Reputation points
    2022-06-11T16:21:18.38+00:00

    On the TabView control, try setting the HorizontalAlignment, VerticalAlignment, HorizontalContentAlignment and VerticalContentAlignment to "Stretch". Without that, I too was getting blank content in my tabs instead of showing my WebView2 control content. This indeed fixed it. Otherwise the height of the tab is set to zero (width seemed to be fine however).


1 additional answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more