Example #1
0
        private void OnPointerPressedBackgroundStackPanel(object sender, PointerRoutedEventArgs args)
        {
            if (!IsReadOnly)
            {
                m_isPointerDown = true;

                // We capture the pointer on pointer down because we want to support
                // the drag off the left side to clear the rating scenario.
                m_backgroundStackPanel.CapturePointer(args.Pointer);
            }
        }
Example #2
0
 private void OnRootPanelPointerPressed(object sender, PointerRoutedEventArgs e)
 {
     RootPanel.CapturePointer(e.Pointer);
     VisualStateManager.GoToState(this, "Pressed", true);
 }