// 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; }
// 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; }