// Updates the AutoPanMode when a different mode is selected
        private void NavMode_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            // Get the location display settings.  Store in a member variable so it only needs to be done once
            if (m_locationDisplay == null)
                m_locationDisplay = (Esri.ArcGISRuntime.Location.LocationDisplay)this.Resources["locationDisplay"];

            // Update the AutoPanMode with the selected one in the ListPicker
            m_locationDisplay.AutoPanMode = (AutoPanMode)((ListPicker)sender).SelectedItem;
        }
示例#2
0
        // Updates the AutoPanMode when a different mode is selected
        private void NavMode_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            // Get the location display settings.  Store in a member variable so it only needs to be done once
            if (m_locationDisplay == null)
            {
                m_locationDisplay = (Esri.ArcGISRuntime.Location.LocationDisplay) this.Resources["locationDisplay"];
            }

            // Update the AutoPanMode with the selected one in the ListPicker
            m_locationDisplay.AutoPanMode = (AutoPanMode)((ListPicker)sender).SelectedItem;
        }
 public LocationDisplay()
 {
     InitializeComponent();
     m_locationDisplay = this.Resources["locationDisplay"] as Location.LocationDisplay;
 }
示例#4
0
 public LocationDisplay()
 {
     InitializeComponent();
     m_locationDisplay = this.Resources["locationDisplay"] as Location.LocationDisplay;
 }