<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to implement previous/next extent functionality in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-implement-previous-next-extent/m-p/121739#M1352</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Antti,&lt;/P&gt;&lt;P&gt;I have changed ViewpointChanged event to NavigationCompleted but situation is still the same. My fixed zoomin tool &amp;nbsp;(code below) generates more than one event. More than one event I get on my application startup to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;private&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;async&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;void&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; FixedZoomIn_Click(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;object&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; sender, RoutedEventArgs e)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;try&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; MainWindow Form = Application.Current.Windows[0] &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; MainWindow;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; (Form == &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;null&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;return&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Viewpoint vp = Form.MyMapView.GetCurrentViewpoint(ViewpointType.CenterAndScale);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; Viewpoint nvp = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; Viewpoint(vp.TargetGeometry &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; MapPoint, vp.TargetScale / 2);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;await&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; Form.MyMapView.SetViewpointAsync(nvp);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;catch&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; (Exception ex)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;System.Diagnostics.Debug.WriteLine(ex.ToString(), System.Reflection.Assembly.GetExecutingAssembly().FullName);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Dec 2017 15:04:32 GMT</pubDate>
    <dc:creator>GKmieliauskas</dc:creator>
    <dc:date>2017-12-05T15:04:32Z</dc:date>
    <item>
      <title>How to implement previous/next extent functionality</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-implement-previous-next-extent/m-p/121737#M1350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to implement on my runtime application previous/next extent functionality like in ArcMap or ArcGIS Pro using &lt;/P&gt;&lt;P&gt;ViewpointChanged event but on each action with viewpoint changing (zooming, panning and etc.) I get more than one event. How can I check is it last event for current action?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2017 14:42:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-implement-previous-next-extent/m-p/121737#M1350</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2017-12-05T14:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement previous/next extent functionality</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-implement-previous-next-extent/m-p/121738#M1351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should use&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/wpf/api-reference//html/E_Esri_ArcGISRuntime_UI_Controls_GeoView_NavigationCompleted.htm" title="https://developers.arcgis.com/net/latest/wpf/api-reference//html/E_Esri_ArcGISRuntime_UI_Controls_GeoView_NavigationCompleted.htm"&gt;GeoView.NavigationCompleted Event&lt;/A&gt;&amp;nbsp;to get the viewpoint out and then save that. Then you can use any navigation methods with the viewpoint to invoke the navigation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2017 14:49:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-implement-previous-next-extent/m-p/121738#M1351</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2017-12-05T14:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement previous/next extent functionality</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-implement-previous-next-extent/m-p/121739#M1352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Antti,&lt;/P&gt;&lt;P&gt;I have changed ViewpointChanged event to NavigationCompleted but situation is still the same. My fixed zoomin tool &amp;nbsp;(code below) generates more than one event. More than one event I get on my application startup to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;private&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;async&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;void&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; FixedZoomIn_Click(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;object&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; sender, RoutedEventArgs e)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;try&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; MainWindow Form = Application.Current.Windows[0] &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; MainWindow;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; (Form == &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;null&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;return&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Viewpoint vp = Form.MyMapView.GetCurrentViewpoint(ViewpointType.CenterAndScale);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; Viewpoint nvp = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; Viewpoint(vp.TargetGeometry &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; MapPoint, vp.TargetScale / 2);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;await&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; Form.MyMapView.SetViewpointAsync(nvp);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;catch&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; (Exception ex)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;System.Diagnostics.Debug.WriteLine(ex.ToString(), System.Reflection.Assembly.GetExecutingAssembly().FullName);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2017 15:04:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-implement-previous-next-extent/m-p/121739#M1352</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2017-12-05T15:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement previous/next extent functionality</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-implement-previous-next-extent/m-p/121740#M1353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The above code would generate the event each time the SetviewpointAsync method completes. So if you click the button twice, you'll get two events. Are you seeing more than that? (and if so, make sure you only listen for the event once).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2017 18:38:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-implement-previous-next-extent/m-p/121740#M1353</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2017-12-05T18:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement previous/next extent functionality</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-implement-previous-next-extent/m-p/121741#M1354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Morten,&lt;/P&gt;&lt;P&gt;I have checked and found that my button was clicked once but fires 2 NavigationCompleted events. My ribbonbutton has PreviewMouseDown implementation which lets prevent double clicks:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        private void RibbonButton_PreviewMouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)&lt;/P&gt;&lt;P&gt;        {&lt;/P&gt;&lt;P&gt;            if (e.ClickCount &amp;gt;= 2)&lt;/P&gt;&lt;P&gt;            {&lt;/P&gt;&lt;P&gt;                e.Handled = true;&lt;/P&gt;&lt;P&gt;            }&lt;/P&gt;&lt;P&gt;        }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same situation I get when I try to maximize or restore my application size. I get 2 NavigationCompleted events each time.&lt;/P&gt;&lt;P&gt;Maybe problem is Ribbon usage?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 07:23:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-implement-previous-next-extent/m-p/121741#M1354</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2017-12-06T07:23:04Z</dc:date>
    </item>
  </channel>
</rss>

