Browse Source

Make GetObservable return current value.

pull/4/head
Steven Kirk 11 years ago
parent
commit
aaca0a8cb1
  1. 2
      Perspex.Base/PerspexObject.cs
  2. 2
      Perspex.Controls/Primitives/ScrollBar.cs

2
Perspex.Base/PerspexObject.cs

@ -295,7 +295,7 @@ namespace Perspex
{
this.PropertyChanged -= handler;
};
});
}).StartWith(this.GetValue(property));
}
/// <summary>

2
Perspex.Controls/Primitives/ScrollBar.cs

@ -28,8 +28,6 @@ namespace Perspex.Controls.Primitives
public ScrollBar()
{
this.Classes.Add(":vertical");
this.GetObservable(OrientationProperty).Subscribe(o =>
{
if (o == Orientation.Horizontal)

Loading…
Cancel
Save