コード例 #1
0
        protected override void OnPointerMoved(PointerRoutedEventArgs e)
        {
            if (e.OriginalSource is ListViewItemPresenter)
            {
                _parent.OnPointerMoved(this, e);
            }
            else if (e.OriginalSource is Grid grid && string.Equals(grid.Name, "ContentPresenterGrid") && !CantSelect())
            {
                _parent.OnPointerMoved(this, e);
            }

            base.OnPointerMoved(e);
        }
コード例 #2
0
        protected override void OnPointerMoved(PointerRoutedEventArgs e)
        {
            if (e.OriginalSource is ListViewItemPresenter)
            {
                _parent.OnPointerMoved(this, e);
            }

            base.OnPointerMoved(e);
        }