X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=src%2FElmSharp%2FElmSharp%2FScroller.cs;h=a6063a73bf8573ec82f7f6b9737fc2078d7c1131;hb=e35b090c5204919b80be40282e4e25be31dae2cc;hp=64079d1396ea0d9bc42ab5bf07c54b4f85a5358f;hpb=b0722aaa7f251325f6fc30b0714d2c51b2e62df4;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git diff --git a/src/ElmSharp/ElmSharp/Scroller.cs b/src/ElmSharp/ElmSharp/Scroller.cs index 64079d1..a6063a7 100755 --- a/src/ElmSharp/ElmSharp/Scroller.cs +++ b/src/ElmSharp/ElmSharp/Scroller.cs @@ -97,10 +97,13 @@ namespace ElmSharp /// The to which the new Scroller will be attached as a child. public Scroller(EvasObject parent) : base(parent) { - _scroll = new SmartEvent(this, this.RealHandle, "scroll"); - _dragStart = new SmartEvent(this, this.RealHandle, "scroll,drag,start"); - _dragStop = new SmartEvent(this, this.RealHandle, "scroll,drag,stop"); - _scrollpage = new SmartEvent(this, this.RealHandle, "scroll,page,changed"); + } + + /// + /// Creates and initializes a new instance of the Scroller class. + /// + public Scroller() : base() + { } /// @@ -781,6 +784,18 @@ namespace ElmSharp } /// + /// The callback of Realized Event + /// + protected override void OnRealized() + { + base.OnRealized(); + _scroll = new SmartEvent(this, this.RealHandle, "scroll"); + _dragStart = new SmartEvent(this, this.RealHandle, "scroll,drag,start"); + _dragStop = new SmartEvent(this, this.RealHandle, "scroll,drag,stop"); + _scrollpage = new SmartEvent(this, this.RealHandle, "scroll,page,changed"); + } + + /// /// Creates a widget handle. /// /// Parent EvasObject