<?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: Menu Bar Button in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/menu-bar-button/m-p/743986#M19002</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I added xmlns:userControls="clr-namespace:ESRI.ArcGIS.SilverlightMapApp"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I then added the code in the MainPage.xaml&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I then created two folders â??Themesâ?� and â??UserControlsâ?�&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In Themes I added a new item â??Silverlight Resource Dictionaryâ?� and added the code, Changing Showcase with my project name&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;ResourceDictionary
&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ResourceDictionary.MergedDictionaries&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ResourceDictionary Source="/gislis2010_live;component/UserControls/DropDownMenu.xaml" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/ResourceDictionary.MergedDictionaries&amp;gt;
&amp;lt;/ResourceDictionary&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I then created a new Silverlight User Control and called it DropDownMenu, pasting the xaml code from the example into my project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I then converted the CS code and pasted that into the DropDownMenu.xaml.vb file &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the part with the Namespace&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Imports System.Windows
Imports System.Windows.Controls
Imports System.Windows.Input
Imports System.Windows.Markup
Imports System.Windows.Media


Namespace ESRI.ArcGIS.SilverlightMapApp
&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;summary&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' Resizable and draggable custom window control
&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;/summary&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Class DropDownMenu
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Inherits ContentControl
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;summary&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AS SOON AS I ADD THE CODE from the xaml.cs page I get errors telling me that:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Type ESRI.ArcGIS.Client.Symbols.SimpleFillSymbol is not defined&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Type ESRI.ArcGIS.Client.Map is not defined&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Type ESRI.ArcGIS.Client.ToolKit.FeatureDataGrid is not defined&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Type ESRI.ArcGIS.Client.Toolkit.MapTip is not defined&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also on the MainPage.xaml page I get the blue squiggly lines on this: xmlns:userControls="clr-namespace:ESRI.ArcGIS.SilverlightMapApp" with the error: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Undefined CLR Namespace. The clr-namespace URI refers to a namespace â??ESRI.ArcGIS.SilverlightMapAppâ?? that is not included in the assembly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just cant figure out how to get it all read properlyâ?¦There has to be something that I am missingâ?¦&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why is the code in the xaml.vb file creating the errors above...why are they now undefined?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 16:52:17 GMT</pubDate>
    <dc:creator>JayKappy</dc:creator>
    <dc:date>2021-12-12T16:52:17Z</dc:date>
    <item>
      <title>Menu Bar Button</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/menu-bar-button/m-p/743984#M19000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am looking at a silverlight app from ESRI website.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The ShowCase example here:&lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/TemplateGalleryWeb/start.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/TemplateGalleryWeb/start.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I open in VB I see there there are a few folders added in the Solution Explorer. (Actions, Images, Themes, User Controls)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I then am looking at the code to create the button in the menu bar of the app...It seems that it is referencing the Folder "User Controls" and the xaml file "DropDownMenu" in that folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is how to I recreate this .... I Created a new folder and added a new Item (xaml file)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I copied the code from the Example into the xaml file and converted the cs to vb adn added in the xaml.vb file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the code below I then get these 2 errors:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. The type 'userControls:DropDownMenu' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. UserControls is undeclared in prefix. Line 204, position 18&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Thats the code in red below. HOW DO I DECLARE THIS AND POINT TO THE XAML FILE IN THE FOLDER? AND CLEAR THE ERRORS?&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there something that I am missign to reference the new folder and xaml/vb files????&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to figure out how to use these folders and files contained within but cant figure out how to reference them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I can do this in my MainPage.xaml and accompannied vb file that great....any ideas how?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!--Menu bar--&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Grid Grid.Row="1" x:Name="TopMenuGrid" Background="{StaticResource BaseColor}"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Rectangle x:Name="BackgroundGradient" Opacity=".5" Fill="{StaticResource ReflectionGradient}" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;StackPanel HorizontalAlignment="Left" VerticalAlignment="Center" Orientation="Horizontal"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- Base layers --&amp;gt;
&lt;SPAN style="color:&amp;quot;red&amp;quot;;"&gt;&lt;STRONG&gt; &amp;lt;userControls:DropDownMenu&amp;gt;
 &amp;lt;userControls:DropDownMenu.MenuHeader&amp;gt;
&lt;/STRONG&gt;&amp;nbsp; &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Button Margin="5,0,0,0" Cursor="Arrow"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Button.Content&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;StackPanel Orientation="Horizontal"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="{StaticResource MapStyleMenuTitle}" Foreground="White" FontWeight="Bold" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Image Source="Images/Layers-32.png" Height="22" Margin="2,-3,-3,-3" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/StackPanel&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Button.Content&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Button&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:39:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/menu-bar-button/m-p/743984#M19000</guid>
      <dc:creator>JayKappy</dc:creator>
      <dc:date>2021-12-12T07:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Menu Bar Button</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/menu-bar-button/m-p/743985#M19001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Look at how userControl was defined in your XAML namespace. There should be something like this&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;xmlns:userControl="..."/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That namespace definition must match the namespace in your DropDownMenu XAML and code-behind.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Nov 2010 19:14:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/menu-bar-button/m-p/743985#M19001</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-11-05T19:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Menu Bar Button</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/menu-bar-button/m-p/743986#M19002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I added xmlns:userControls="clr-namespace:ESRI.ArcGIS.SilverlightMapApp"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I then added the code in the MainPage.xaml&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I then created two folders â??Themesâ?� and â??UserControlsâ?�&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In Themes I added a new item â??Silverlight Resource Dictionaryâ?� and added the code, Changing Showcase with my project name&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;ResourceDictionary
&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ResourceDictionary.MergedDictionaries&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ResourceDictionary Source="/gislis2010_live;component/UserControls/DropDownMenu.xaml" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/ResourceDictionary.MergedDictionaries&amp;gt;
&amp;lt;/ResourceDictionary&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I then created a new Silverlight User Control and called it DropDownMenu, pasting the xaml code from the example into my project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I then converted the CS code and pasted that into the DropDownMenu.xaml.vb file &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the part with the Namespace&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Imports System.Windows
Imports System.Windows.Controls
Imports System.Windows.Input
Imports System.Windows.Markup
Imports System.Windows.Media


Namespace ESRI.ArcGIS.SilverlightMapApp
&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;summary&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' Resizable and draggable custom window control
&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;/summary&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Class DropDownMenu
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Inherits ContentControl
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;summary&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AS SOON AS I ADD THE CODE from the xaml.cs page I get errors telling me that:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Type ESRI.ArcGIS.Client.Symbols.SimpleFillSymbol is not defined&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Type ESRI.ArcGIS.Client.Map is not defined&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Type ESRI.ArcGIS.Client.ToolKit.FeatureDataGrid is not defined&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Type ESRI.ArcGIS.Client.Toolkit.MapTip is not defined&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also on the MainPage.xaml page I get the blue squiggly lines on this: xmlns:userControls="clr-namespace:ESRI.ArcGIS.SilverlightMapApp" with the error: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Undefined CLR Namespace. The clr-namespace URI refers to a namespace â??ESRI.ArcGIS.SilverlightMapAppâ?? that is not included in the assembly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just cant figure out how to get it all read properlyâ?¦There has to be something that I am missingâ?¦&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why is the code in the xaml.vb file creating the errors above...why are they now undefined?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:52:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/menu-bar-button/m-p/743986#M19002</guid>
      <dc:creator>JayKappy</dc:creator>
      <dc:date>2021-12-12T16:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Menu Bar Button</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/menu-bar-button/m-p/743987#M19003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sure. Look at the namespace definition of your project and your classes, they need to be "ESRI.ArcGIS.SilverlightMapApp" for this namespace to be valid in your xaml.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Nov 2010 15:52:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/menu-bar-button/m-p/743987#M19003</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-11-08T15:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Menu Bar Button</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/menu-bar-button/m-p/743988#M19004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Sure. Look at the namespace definition of your project and your classes, they need to be "ESRI.ArcGIS.SilverlightMapApp" for this namespace to be valid in your xaml.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I do thank you for yoru response....and appologize for my lack of knowledge here....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where is the namespace definition?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not following?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my MainPage.xaml I have&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:UserControls="clr-namespace:ESRI.ArcGIS.SilverlightMapApp"&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my DropDownMenu.xmal I have (Now blue squigly underlining)&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:local="clr-namespace:ESRI.ArcGIS.SilverlightMapApp"&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my DropDownMenu.xaml.vb I have&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Namespace ESRI.ArcGIS.SilverlightMapApp&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My project is called gislis2010_live&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Getting a few errors:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The Type 'UserControls:DropDownMenu' was nto found Verify that you are not missing an assembly reference adn that all referenced assemblies have been built&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Nov 2010 17:13:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/menu-bar-button/m-p/743988#M19004</guid>
      <dc:creator>JayKappy</dc:creator>
      <dc:date>2010-11-08T17:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Menu Bar Button</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/menu-bar-button/m-p/743989#M19005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can right-click on the Project and see "Properties", under Silverlight tab, there is Default namespace.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also you should have something like&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Imports System

Namespace ForumTest
'more code here
End Namespace

&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the sample above, whatever class I create within this namespace is only accessible through "ForumTest", this must match the namespace definition you have in XAML. It should be "ESRI.ArcGIS.SilverlightMapApp" or you can update xmlns to use "ForumTest" (ForumTest is just my example, yours can be named different.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:52:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/menu-bar-button/m-p/743989#M19005</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-12T16:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Menu Bar Button</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/menu-bar-button/m-p/743990#M19006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; You can right-click on the Project and see "Properties", under Silverlight tab, there is Default namespace.&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;Also you should have something like&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt; &lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Imports System

Namespace &lt;SPAN style="color:&amp;quot;red&amp;quot;;"&gt;ForumTest&lt;/SPAN&gt;
'more code here
End Namespace

&lt;/PRE&gt; &lt;BR /&gt; &lt;BR /&gt;In the sample above, whatever class I create within this namespace is only accessible through "ForumTest", this must match the namespace definition you have in XAML. It should be "ESRI.ArcGIS.SilverlightMapApp" or you can update xmlns to use "ForumTest" (ForumTest is just my example, yours can be named different.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I go into properties and the Silverlight tab I have &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Assembly Name, Root Namespace, Startup Object, Xap fiel name.....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Whats the point in knowing the namespace again .... I mean aint I creating a new one? From wehat I can see its the same name as teh propject "gislis2010_live"....it just cant find teh new namespace I am trying to create&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yea I have that....in my DropDownMenu.xaml.vb file&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Imports System.Windows
Imports System.Windows.Controls
Imports System.Windows.Input
Imports System.Windows.Markup
Imports System.Windows.Media


Namespace ESRI.ArcGIS.SilverlightMapApp
&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;summary&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' Resizable and draggable custom window control
&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;/summary&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Class DropDownMenu
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Inherits ContentControl
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;summary&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' Initializes a new instance of the &amp;lt;see cref="DropDownMenu"/&amp;gt; class.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;/summary&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Sub New()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DefaultStyleKey = GetType(DropDownMenu)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AddHandler Me.MouseEnter, AddressOf DropDownMenu_MouseEnter
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AddHandler Me.MouseLeave, AddressOf DropDownMenu_MouseLeave
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub

' OTHER CODE

&amp;nbsp;&amp;nbsp;&amp;nbsp; End Class
End Namespace&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:39:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/menu-bar-button/m-p/743990#M19006</guid>
      <dc:creator>JayKappy</dc:creator>
      <dc:date>2021-12-12T07:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Menu Bar Button</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/menu-bar-button/m-p/743991#M19007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The point of ensuring namespace in the code-behind and xaml match is so you don't run into errors you were having where the control cannot be found, the namespace is not defined.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since you have verified that namespaces match, you can check at the project references. I believe in VB there's a button to show all files. Be sure that ESRI.ArcGIS.Client.dll's were added or that they point to the proper location. When these assembly references are not resolved, you get into problems like types not defined.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd like to point you to this tutorial link: &lt;/SPAN&gt;&lt;A href="http://msdn.microsoft.com/en-us/vbasic/cc817878.aspx"&gt;http://msdn.microsoft.com/en-us/vbasic/cc817878.aspx&lt;/A&gt;&lt;SPAN&gt; The problems you have been running into is not related to our API but to setting up projects in VB. Also, the compile errors usually provide line numbers or when you double-click on them you get pointed to the file that is causing problems. Go to the problem files, and try to solve it one piece at a time. You can identify the root of the issue by reading the errors themselves. It helps to backtrace the problem. For example, Xaml failed because code-behind failed, code-behind failed because project references were missing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Nov 2010 20:14:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/menu-bar-button/m-p/743991#M19007</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-11-08T20:14:19Z</dc:date>
    </item>
  </channel>
</rss>

