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); } }
private void OnRootPanelPointerPressed(object sender, PointerRoutedEventArgs e) { RootPanel.CapturePointer(e.Pointer); VisualStateManager.GoToState(this, "Pressed", true); }