Beispiel #1
0
        public KineticControlBase(KineticControlScrollType scrollType)
        {
            InitializeComponent();

            ContentRectangle = ClientRectangle;

            _ScrollTimer.Tick += OnScrollTick;
            _ScrollToTimer.Tick += OnScrollToTick;

            _scrollType =scrollType;
            SCROLL_THRESHOLD = UISettings.CalcPix(SCROLL_THRESHOLD);
            SCROLL_BEGIN_THRESHOLD = UISettings.CalcPix(SCROLL_BEGIN_THRESHOLD);

            _delegate = WnProc;
            _wndprocReal = Win32.SetWindowLong(Handle, Win32.GWL_WNDPROC,
                                               Marshal.GetFunctionPointerForDelegate(_delegate));
        }
Beispiel #2
0
        public KineticControlBase(KineticControlScrollType scrollType)
        {
            InitializeComponent();

            ContentRectangle = ClientRectangle;

            _ScrollTimer.Tick   += OnScrollTick;
            _ScrollToTimer.Tick += OnScrollToTick;

            _scrollType            = scrollType;
            SCROLL_THRESHOLD       = UISettings.CalcPix(SCROLL_THRESHOLD);
            SCROLL_BEGIN_THRESHOLD = UISettings.CalcPix(SCROLL_BEGIN_THRESHOLD);

            _delegate    = WnProc;
            _wndprocReal = Win32.SetWindowLong(Handle, Win32.GWL_WNDPROC,
                                               Marshal.GetFunctionPointerForDelegate(_delegate));
        }
Beispiel #3
0
 public KineticPanel(KineticControlScrollType scrollType, bool retainOffsetBufferOnDispose)
     : base(scrollType, retainOffsetBufferOnDispose)
 {
     _canvas = new Canvas(this);
 }
Beispiel #4
0
 public KineticPanel(KineticControlScrollType scrollType)
     : base(scrollType)
 {
     _canvas = new Canvas(this);
 }
Beispiel #5
0
 /// <param name="retainOffsetBmpOnDispose">Not to dispose offset buffer after Dispose() method</param>
 /// <remarks>
 /// It's very dangerous to retain offset buffer after Dispose(). May be leak!
 /// </remarks>
 public KineticControlBase(KineticControlScrollType scrollType, bool retainOffsetBufferOnDispose)
     : this(scrollType)
 {
     _retainOffsetBufferOnDispose = retainOffsetBufferOnDispose;
 }
Beispiel #6
0
 public KineticControl(KineticControlScrollType scrollType, bool retainOffsetBmpOnDispose)
     : base(scrollType, retainOffsetBmpOnDispose)
 {
 }
Beispiel #7
0
 public KineticControl(KineticControlScrollType scrollType)
     : base(scrollType)
 {
 }
Beispiel #8
0
 /// <param name="retainOffsetBmpOnDispose">Not to dispose offset buffer after Dispose() method</param>
 /// <remarks>
 /// It's very dangerous to retain offset buffer after Dispose(). May be leak!
 /// </remarks>
 public KineticControlBase(KineticControlScrollType scrollType, bool retainOffsetBufferOnDispose)
     : this(scrollType)
 {
     _retainOffsetBufferOnDispose = retainOffsetBufferOnDispose;
 }
Beispiel #9
0
 public KineticControl(KineticControlScrollType scrollType, bool retainOffsetBmpOnDispose)
     : base(scrollType, retainOffsetBmpOnDispose)
 {
 }
Beispiel #10
0
 public KineticControl(KineticControlScrollType scrollType)
     : base(scrollType)
 {
 }
Beispiel #11
0
 public KineticPanel(KineticControlScrollType scrollType, bool retainOffsetBufferOnDispose)
     : base(scrollType, retainOffsetBufferOnDispose)
 {
     _canvas = new Canvas(this);
 }
Beispiel #12
0
 public KineticPanel(KineticControlScrollType scrollType) : base(scrollType)
 {
     _canvas = new Canvas(this);
 }