Browse Source

Make GetObservable return current value.

pull/4/head
Steven Kirk 12 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; this.PropertyChanged -= handler;
}; };
}); }).StartWith(this.GetValue(property));
} }
/// <summary> /// <summary>

2
Perspex.Controls/Primitives/ScrollBar.cs

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

Loading…
Cancel
Save