X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FElmSharp%2FElmSharp%2FScroller.cs;h=a6063a73bf8573ec82f7f6b9737fc2078d7c1131;hb=e35b090c5204919b80be40282e4e25be31dae2cc;hp=2ceb38c8c41db2607bd5a0fbe96271c9b1a6b21f;hpb=eaf24640c6ee1e8eb5f81e46912b673ba3c43c23;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git diff --git a/src/ElmSharp/ElmSharp/Scroller.cs b/src/ElmSharp/ElmSharp/Scroller.cs index 2ceb38c..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() + { } /// @@ -780,6 +783,23 @@ 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 + /// Handle IntPtr protected override IntPtr CreateHandle(EvasObject parent) { IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle);