pointerMoved not firing on Canvas inside ScrollViewer

mfe userlast 21 Reputation points
2020-10-10T16:39:04.02+00:00

Hi,

I have in my scrollviewer an image and I wanted to be informed when the PointerReleased is fired. But it looks like only the PointerEntered event is fired correctly.

            <ScrollViewer x:Name="_ScrollViewer"
                          ZoomMode="Enabled" VerticalScrollMode="Auto" 
                          HorizontalScrollMode="Enabled" HorizontalScrollBarVisibility="Auto"
                          >

                <Image x:Name="image"  
                       CacheMode="BitmapCache"
                       MaxWidth="{Binding Path=ViewportWidth, ElementName=_ScrollViewer}"
                       MaxHeight="{Binding Path=ViewportHeight, ElementName=_ScrollViewer}"
                       Source="{Binding Path=SelectedImage.Stream,UpdateSourceTrigger=PropertyChanged,
                       Converter={StaticResource ResourceKey=StoreFileToBitmapImageConverter},
                    ConverterParameter={StaticResource disposeBool}}"
                        PointerEntered="PointerEntered"
                       PointerReleased="PointerExited"
                        >
Universal Windows Platform (UWP)
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.