diff --git a/Perspex.Styling/StyleBinding.cs b/Perspex.Styling/StyleBinding.cs index 622f667017..b9e7b8a35f 100644 --- a/Perspex.Styling/StyleBinding.cs +++ b/Perspex.Styling/StyleBinding.cs @@ -7,7 +7,7 @@ namespace Perspex.Styling { using System; - using System.Reactive.Subjects; + using System.Reactive; /// /// Provides an observable for a style. @@ -17,7 +17,7 @@ namespace Perspex.Styling /// a bool. When the activator produces true, this observable will produce . /// When the activator produces false it will produce . /// - internal class StyleBinding : IObservable, IObservableDescription + internal class StyleBinding : ObservableBase, IDescription { /// /// The activator. @@ -63,7 +63,7 @@ namespace Perspex.Styling /// /// The observer. /// IDisposable object used to unsubscribe from the observable sequence. - public IDisposable Subscribe(IObserver observer) + protected override IDisposable SubscribeCore(IObserver observer) { Contract.Requires(observer != null); return this.activator.Subscribe(