From f1150c95a2eabf43a5dcd3eec9cfae15d6433a10 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Sun, 3 May 2015 21:26:12 +0200 Subject: [PATCH] Use ObservableBase for StyleBinding. Also use IDescription instead of IObservableDescription as IObservableDescription is about to be deleted. --- Perspex.Styling/StyleBinding.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(