Skip to content

Commit

Permalink
fix: Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
dr1rrb committed Jan 22, 2021
1 parent 7013c9a commit 6493ec6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Uno.UI.Extensions;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Markup;
using Microsoft.VisualStudio.TestTools.UnitTesting;
Expand Down
6 changes: 5 additions & 1 deletion src/Uno.UI/UI/Xaml/Controls/Control/Control.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,11 @@ internal View TemplatedRoot
{
RegisterContentTemplateRoot();

if (!IsLoading && !IsLoaded && FeatureConfiguration.Control.UseDeferredOnApplyTemplate)
if (
#if NETSTANDARD
!IsLoading &&
#endif
!IsLoaded && FeatureConfiguration.Control.UseDeferredOnApplyTemplate)
{
// It's too soon the call the ".OnApplyTemplate" method: it should be invoked after the "Loading" event.

Expand Down

0 comments on commit 6493ec6

Please sign in to comment.