Skip to content

Commit

Permalink
fix(tabview): Fix content of first tab not rendered on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
dr1rrb committed Feb 2, 2021
1 parent bd3265a commit 6127a5d
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -589,8 +589,11 @@ private CGSize GetTemplateSize(DataTemplate dataTemplate, NSString elementKind,
{
container.Style = style;
}

container.ContentTemplate = dataTemplate;

if (!container.IsContainerFromTemplateRoot)
{
container.ContentTemplate = dataTemplate;
}
try
{
// Attach templated container to visual tree while measuring. This works around the bug that default Style is not
Expand Down

0 comments on commit 6127a5d

Please sign in to comment.