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

            base.OnPointerPressed(e);
        }
示例#2
0
        protected override void OnPointerPressed(PointerRoutedEventArgs e)
        {
            if (e.OriginalSource is ListViewItemPresenter && !CantSelect())
            {
                _parent.OnPointerPressed(this, e);
            }

            base.OnPointerPressed(e);
        }