Skip to content

Commit

Permalink
Merge pull request #1168 from XamlBrewer/dev
Browse files Browse the repository at this point in the history
RadialGauge PointerReleased handling
  • Loading branch information
shenchauhan authored Jun 27, 2017
2 parents b6e903e + 833ee37 commit 35f4775
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Microsoft.Toolkit.Uwp.UI.Controls/RadialGauge/RadialGauge.cs
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ protected double ValueAngle
/// </summary>
protected override void OnApplyTemplate()
{
PointerReleased += RadialGauge_PointerReleased;
OnScaleChanged(this);

base.OnApplyTemplate();
Expand Down Expand Up @@ -688,6 +689,14 @@ private void RadialGauge_Tapped(object sender, TappedRoutedEventArgs e)
SetGaugeValueFromPoint(e.GetPosition(this));
}

private void RadialGauge_PointerReleased(object sender, PointerRoutedEventArgs e)
{
if (IsInteractive)
{
e.Handled = true;
}
}

private void UpdateNormalizedAngles()
{
var result = Mod(MinAngle, 360);
Expand Down

0 comments on commit 35f4775

Please sign in to comment.