Browse Source

Always set inheritance parent in PopupRoot.

Previously the ctor with an IDependencyResolver didn't set it.
pull/58/head
Steven Kirk 12 years ago
parent
commit
e481ec2221
  1. 4
      Perspex.Controls/PopupRoot.cs

4
Perspex.Controls/PopupRoot.cs

@ -29,9 +29,8 @@ namespace Perspex.Controls
/// Initializes a new instance of the <see cref="PopupRoot"/> class.
/// </summary>
public PopupRoot()
: base(Locator.Current.GetService<IPopupImpl>())
: this(null)
{
this.GetObservable(ParentProperty).Subscribe(x => this.InheritanceParent = x);
}
/// <summary>
@ -43,6 +42,7 @@ namespace Perspex.Controls
public PopupRoot(IDependencyResolver dependencyResolver)
: base(Locator.Current.GetService<IPopupImpl>(), dependencyResolver)
{
this.GetObservable(ParentProperty).Subscribe(x => this.InheritanceParent = x);
}
/// <summary>

Loading…
Cancel
Save