diff --git a/Perspex.Controls/PopupRoot.cs b/Perspex.Controls/PopupRoot.cs
index 5bb34f8522..aaf7cbe948 100644
--- a/Perspex.Controls/PopupRoot.cs
+++ b/Perspex.Controls/PopupRoot.cs
@@ -29,9 +29,8 @@ namespace Perspex.Controls
/// Initializes a new instance of the class.
///
public PopupRoot()
- : base(Locator.Current.GetService())
+ : this(null)
{
- this.GetObservable(ParentProperty).Subscribe(x => this.InheritanceParent = x);
}
///
@@ -43,6 +42,7 @@ namespace Perspex.Controls
public PopupRoot(IDependencyResolver dependencyResolver)
: base(Locator.Current.GetService(), dependencyResolver)
{
+ this.GetObservable(ParentProperty).Subscribe(x => this.InheritanceParent = x);
}
///