ArcGISRuntime.UWP.Samples.MapRotation.MapRotation.MySlider_ValueChanged C# (CSharp) Метод

MySlider_ValueChanged() приватный Метод

private MySlider_ValueChanged ( object sender, RangeBaseValueChangedEventArgs e ) : void
sender object
e Windows.UI.Xaml.Controls.Primitives.RangeBaseValueChangedEventArgs
Результат void
        private void MySlider_ValueChanged(object sender, RangeBaseValueChangedEventArgs e)
        {
            // Display the rotation value in the Label formatted nicely with degree symbol.
            MyTextBlock.Text = string.Format("{0:0}°", MySlider.Value);
           
            // Set the MapView rotation to that of the Slider.
            MyMapView.SetViewpointRotationAsync(e.NewValue);           
        }
    }