Based on this article, I create a sector shape. https://stackoverflow.com/a/16669648/7284989
<controls:sector Center="{Binding Path=CenterPosition, Converter={StaticResource PointConverter}}"
Stroke="White" StrokeThickness="5"
SnapsToDevicePixels="True"
StartAngle="0"
EndAngle="{Binding Path=DeltaAngle}"
SmallAngle="True"
Radius="100"/>
It draws a pie shape Sector, and I want to redraw with different angle. I made it work with slider, but I'm trying to do it without slider and just mousemvoement.
I tried to capture the start and end of mousemovement, so I can compare them. Maybe then I can get positive or negative movement to increase or decrease the angle of this Pie.
I've been search many postings, but all I can find was drag and drop which requires mouse click. However, I do not want mouse click to initiate it. I would rather check(or turn on) the state and increase/decrease multiple time to adjust the size before I stop it.
So is there a way to capture the initial position of mouse and end position of mouse without clicking a button?
I tried to use CaptureMouse() but all the references I found was too partial, and not even sure that is right to use for such functionality.
Could anybody guide me?