예제 #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 TransitionControl()
 {
     _delegate    = WnProc;
     _wndprocReal = Win32.SetWindowLong(Handle, Win32.GWL_WNDPROC, Marshal.GetFunctionPointerForDelegate(_delegate));
 }
예제 #3
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));
        }
예제 #4
0
 public TransitionControl()
 {
     _delegate = WnProc;
     _wndprocReal = Win32.SetWindowLong(Handle, Win32.GWL_WNDPROC, Marshal.GetFunctionPointerForDelegate(_delegate));
 }