From 895d3d414689022bb8107cccc078041ed5f19e8d Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Fri, 13 Jun 2014 00:56:39 +0200 Subject: [PATCH] Fix the return type of the binding indexer. --- Perspex/PerspexObject.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Perspex/PerspexObject.cs b/Perspex/PerspexObject.cs index c6e6191c24..f12b02dcf9 100644 --- a/Perspex/PerspexObject.cs +++ b/Perspex/PerspexObject.cs @@ -138,10 +138,10 @@ namespace Perspex /// Gets or sets the binding for a . /// /// The property. - public object this[PerspexProperty.BindingAccessor property] + public IObservable this[PerspexProperty.BindingAccessor property] { get { return this.GetObservable(property.Property); } - set { this.Bind(property.Property, (IObservable)value, property.Priority); } + set { this.Bind(property.Property, value, property.Priority); } } ///