Exemplo n.º 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);
        }
Exemplo n.º 2
0
        protected override void OnPointerPressed(PointerRoutedEventArgs e)
        {
            if (e.OriginalSource is ListViewItemPresenter && !CantSelect())
            {
                _parent.OnPointerPressed(this, e);
            }

            base.OnPointerPressed(e);
        }