<?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 How can I cast to my UserControl type from ICommandItem in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-can-i-cast-to-my-usercontrol-type-from/m-p/725576#M19352</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I am trying to get my UserControl be found like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ICommandItem pItem = pApplication.Document.CommandBars.Find(pUID, false, false);&lt;/P&gt;&lt;P&gt;MyUserControlType pMyTool = pItem.(Command as MyUserControlType);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I cannot see the row with word "Command" (when drop down menu appears - see the image attached).&lt;/P&gt;&lt;P&gt;What I do wrong?&lt;/P&gt;&lt;P&gt;I am in 10.3 Desktop ArcObjects C#.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jun 2015 02:40:00 GMT</pubDate>
    <dc:creator>MarkMindlin</dc:creator>
    <dc:date>2015-06-22T02:40:00Z</dc:date>
    <item>
      <title>How can I cast to my UserControl type from ICommandItem</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-can-i-cast-to-my-usercontrol-type-from/m-p/725576#M19352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I am trying to get my UserControl be found like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ICommandItem pItem = pApplication.Document.CommandBars.Find(pUID, false, false);&lt;/P&gt;&lt;P&gt;MyUserControlType pMyTool = pItem.(Command as MyUserControlType);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I cannot see the row with word "Command" (when drop down menu appears - see the image attached).&lt;/P&gt;&lt;P&gt;What I do wrong?&lt;/P&gt;&lt;P&gt;I am in 10.3 Desktop ArcObjects C#.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 02:40:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-can-i-cast-to-my-usercontrol-type-from/m-p/725576#M19352</guid>
      <dc:creator>MarkMindlin</dc:creator>
      <dc:date>2015-06-22T02:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can I cast to my UserControl type from ICommandItem</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-can-i-cast-to-my-usercontrol-type-from/m-p/725577#M19353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't find command property too but when I typed the property it works fine.&lt;/P&gt;&lt;PRE __default_attr="c#" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14349675018942506 jive_text_macro" data-renderedposition="29_8_912_16" jivemacro_uid="_14349675018942506"&gt;&lt;P&gt; ICommand pCommand = pItem.Command as ICommand;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;Then you can cast it to your type.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 10:20:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-can-i-cast-to-my-usercontrol-type-from/m-p/725577#M19353</guid>
      <dc:creator>AhmedEl-Sisi</dc:creator>
      <dc:date>2015-06-22T10:20:19Z</dc:date>
    </item>
  </channel>
</rss>

