Skip to content

Commit

Permalink
chore: Fix net461 and netstdref builds
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjohnoliver committed May 14, 2021
1 parent cbbb7d7 commit 4b545f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Uno.UI/UI/Xaml/FrameworkElement.net.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ public partial class FrameworkElement : IEnumerable

internal List<View> _children = new List<View>();

internal UIElement VisualParent => ((IDependencyObjectStoreProvider)this).Store.Parent as UIElement;

private protected virtual void OnPostLoading() { }

partial void OnLoadingPartial();
Expand Down
2 changes: 2 additions & 0 deletions src/Uno.UI/UI/Xaml/FrameworkElement.netstdref.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ public partial class FrameworkElement : IEnumerable
{
bool IFrameworkElementInternal.HasLayouter => throw new NotSupportedException("Reference assembly");

internal UIElement VisualParent => throw new NotSupportedException("Reference assembly");

internal T AddChild<T>(T child) where T : View => throw new NotSupportedException("Reference assembly");

internal T AddChild<T>(T child, int index) where T : View => throw new NotSupportedException("Reference assembly");
Expand Down

0 comments on commit 4b545f6

Please sign in to comment.