]> O.S.I.I.S - jp/crow.git/commitdiff
fire Scrolled event in Scroller
authorjpbruyere <jp.bruyere@hotmail.com>
Sun, 13 Mar 2016 22:43:00 +0000 (23:43 +0100)
committerjpbruyere <jp.bruyere@hotmail.com>
Sun, 13 Mar 2016 22:43:00 +0000 (23:43 +0100)
src/GraphicObjects/Scroller.cs

index 83b651033164e5ed7dcdc192c679b448299be078..2fb80033ecb67d90bb171e2fe476661c3c3e8438 100644 (file)
@@ -71,6 +71,7 @@ namespace Crow
                                        _scrollX = value;
                                NotifyValueChanged("ScrollX", _scrollX);
                                RegisterForGraphicUpdate ();
+                               Scrolled.Raise (this, new ScrollingEventArgs (Orientation.Horizontal));
                        }
                }                       
                [XmlAttributeAttribute][DefaultValue(0.0)]
@@ -89,6 +90,7 @@ namespace Crow
                                        _scrollY = value;
                                NotifyValueChanged("ScrollY", _scrollY);
                                RegisterForGraphicUpdate ();
+                               Scrolled.Raise (this, new ScrollingEventArgs (Orientation.Vertical));
                        }
                }