示例#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));
        }
示例#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));
        }
示例#3
0
 public KineticPanel(KineticControlScrollType scrollType, bool retainOffsetBufferOnDispose)
     : base(scrollType, retainOffsetBufferOnDispose)
 {
     _canvas = new Canvas(this);
 }
示例#4
0
 public KineticPanel(KineticControlScrollType scrollType)
     : base(scrollType)
 {
     _canvas = new Canvas(this);
 }
示例#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;
 }
示例#6
0
 public KineticControl(KineticControlScrollType scrollType, bool retainOffsetBmpOnDispose)
     : base(scrollType, retainOffsetBmpOnDispose)
 {
 }
示例#7
0
 public KineticControl(KineticControlScrollType scrollType)
     : base(scrollType)
 {
 }
示例#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;
 }
示例#9
0
 public KineticControl(KineticControlScrollType scrollType, bool retainOffsetBmpOnDispose)
     : base(scrollType, retainOffsetBmpOnDispose)
 {
 }
示例#10
0
 public KineticControl(KineticControlScrollType scrollType)
     : base(scrollType)
 {
 }
示例#11
0
 public KineticPanel(KineticControlScrollType scrollType, bool retainOffsetBufferOnDispose)
     : base(scrollType, retainOffsetBufferOnDispose)
 {
     _canvas = new Canvas(this);
 }
示例#12
0
 public KineticPanel(KineticControlScrollType scrollType) : base(scrollType)
 {
     _canvas = new Canvas(this);
 }