Пример #1
0
        public KinectPaintListBoxItem(KinectPaintListBox listBox)
        {
            _listbox = listBox;

            KinectCursor.AddCursorEnterHandler(this, OnCursorEnter);
            KinectCursor.AddCursorLeaveHandler(this, OnCursorLeave);
        }
Пример #2
0
        /// <summary>
        /// Constructor
        /// </summary>
        public ImageChooseButton()
        {
            KinectCursor.AddCursorEnterHandler(this, OnCursorEnter);
            KinectCursor.AddCursorLeaveHandler(this, OnCursorLeave);

            // Get the automation peer that can invoke this button properly.
            _invoker = (IInvokeProvider)UIElementAutomationPeer.CreatePeerForElement(this).GetPattern(PatternInterface.Invoke);
        }
Пример #3
0
 public KinectPaintButton()
 {
     KinectCursor.AddCursorEnterHandler(this, OnCursorEnter);
     KinectCursor.AddCursorLeaveHandler(this, OnCursorLeave);
     _invoker = (IInvokeProvider)UIElementAutomationPeer.CreatePeerForElement(this).GetPattern(PatternInterface.Invoke);
 }
Пример #4
0
 /// <summary>
 /// Constructor
 /// </summary>
 public KinectPaintCheckBox()
 {
     KinectCursor.AddCursorEnterHandler(this, OnCursorEnter);
     KinectCursor.AddCursorLeaveHandler(this, OnCursorLeave);
 }