Skip to content
Discussion options

You must be logged in to vote

Here's what suits my needs:

private void OnPropertyChanged(object? sender, PropertyChangedEventArgs e)
{
	if (
		e.PropertyName == nameof(CarouselView.IsDragging)
		&& sender is CarouselView carouselOfCards
		&& carouselOfCards.IsDragging
	)
	{
		isCardCommandEnabled = false;
	}
}

And so, because IsDragging is changed to true and isCardCommandEnabled is changed to false, then my command can't execute.
However, if I detect PointerPressed and IsDragging is defined to false, then I must re-enable the command execution.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Kapusch
Comment options

@Kapusch
Comment options

@Kapusch
Comment options

Answer selected by Kapusch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants