<?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: CancelActive.excute does not work in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/cancelactive-excute-does-not-work/m-p/571185#M14702</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is your Button DataContext set to the Editor? Also, if you have Command set to Cut, you don't have to do anything extra in the Click event. Activating a command, deactivates current active command. You can also wire up to Editor.EditorActivated event to check that a command becomes active when you click the button for cut.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Jun 2011 21:23:58 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2011-06-17T21:23:58Z</dc:date>
    <item>
      <title>CancelActive.excute does not work</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/cancelactive-excute-does-not-work/m-p/571184#M14701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am working with a custom version of the Cut command on the editor widget and I cannot get it to deactivate:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; Dim editor As Editor = TryCast(LayoutRoot.Resources("SplitEditor"), Editor)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; If Not editor Is Nothing Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; If editor.CancelActive.CanExecute(nothing) Then&amp;nbsp; &amp;lt;--- This is never True&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; editor.CancelActive.Execute(nothing) &amp;lt;--- This never fires&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;'--- XAML&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;Button x:Name="btnSplitStreet" Style="{StaticResource MenuButton}" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ToolTipService.ToolTip="Split Street" Command="{Binding Cut}" Click="btnSplitStreet_Click"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;esri:Editor x:Key="SplitEditor" EditCompleted="EditorWidgetSplit_EditCompleted"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Map="{Binding ElementName=Map}" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; LayerIDs="GPS, Roads"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt; GeometryServiceUrl="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer" rel="nofollow" target="_blank"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer&lt;/A&gt;&lt;SPAN&gt;" /&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 19:18:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/cancelactive-excute-does-not-work/m-p/571184#M14701</guid>
      <dc:creator>PaulHedlund</dc:creator>
      <dc:date>2011-06-17T19:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: CancelActive.excute does not work</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/cancelactive-excute-does-not-work/m-p/571185#M14702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is your Button DataContext set to the Editor? Also, if you have Command set to Cut, you don't have to do anything extra in the Click event. Activating a command, deactivates current active command. You can also wire up to Editor.EditorActivated event to check that a command becomes active when you click the button for cut.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 21:23:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/cancelactive-excute-does-not-work/m-p/571185#M14702</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-06-17T21:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: CancelActive.excute does not work</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/cancelactive-excute-does-not-work/m-p/571186#M14703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think I figured it out.&amp;nbsp; It looks like I was trying to deactivate it before it was active.&amp;nbsp; I got it working now.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 12:11:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/cancelactive-excute-does-not-work/m-p/571186#M14703</guid>
      <dc:creator>PaulHedlund</dc:creator>
      <dc:date>2011-06-20T12:11:28Z</dc:date>
    </item>
  </channel>
</rss>

