Select to view content in your preferred language

what happened to the toolbar in the 3.0 API?

3459
16
Jump to solution
07-19-2012 12:02 PM
DanielSchatt
Regular Contributor
hi, just installed the new 3.0 API because I need that for some new functionality, but, unless I'm mistaken, it appears that the Toolbar object is no longer there.  In my coding, I'm getting the message "The name Toolbar does not exist in the namespace http://schemas.esri.com/arcgis/client/2009" and it doesn't appear in the list of ESRI objects that comes up when I try to type it in.    It's also not in the samples anymore.  I've been using this in previous sites and I want to continue using it.  I'm not sure why it would be taken out but if this is the case, is there a way to have the present application I'm building use the previous API?  Thank much!

Dan
0 Kudos
16 Replies
DanielSchatt
Regular Contributor
THANK YOU Valentin!  Kudos to you.  I just downloaded your toolbar library/assembly along with Silverlight 5 and followed your instructions and it works perfectly.  I'm still completely baffled that ESRI removed the toolbar but at least I have it up and running again...
0 Kudos
VenkatElangovan
New Contributor
Hi i'm also having same issue.  I just downloaded your toolbar library/assembly and then what is the instruction to follow?
Could you please explain?
0 Kudos
ValentinFedulov
Occasional Contributor
...  I just downloaded your toolbar library/assembly and then what is the instruction to follow?
Could you please explain?


Well, as you may read in RADME file, you have to do 3 steps.
1. Compile toolbar lib project and get the ESRI.ArcGIS.Client.Toolkit.Toolbar.dll file
2. Add this dll in References list in your project.
3. Add xaml and C# code to your project as shown in README.

If you want to see toolbar by default, change code
<Canvas x:Name="VGraphicsTools" Visibility="Collapsed"

to
<Canvas x:Name="VGraphicsTools" Visibility="Visible"


Good luck.
0 Kudos
ankurbhutani
Emerging Contributor
I just downloaded the classes and added these into a class library project to work it as a custom control and then add this dll reference into my main project and added toolbar.theme.xaml into ResourceDictionary of app.xaml.

It worked for me. Thanks a lot..
0 Kudos
MihirShah
New Contributor
I just downloaded the classes and added these into a class library project to work it as a custom control and then add this dll reference into my main project and added toolbar.theme.xaml into ResourceDictionary of app.xaml.

It worked for me. Thanks a lot..


Did you remove the original reference to ESRI.ArcGIS.Client.Toolkit ? Moreover, I am getting an error saying that I have made a duplicate reference when I add xmlns:tkit="clr-namespace:ESRI.ArcGIS.Client.Toolkit;assembly=ESRI.ArcGIS.Client.Toolkit.Toolbar"

Lastly, did you update all other ESRI references to version 3.1? I will have to make alot of changes in my project if I am unable to use the existing toolbar. Any help will be appreciated.

Thank You.
Mihir
0 Kudos
ankurbhutani
Emerging Contributor
No, you need not to remove the ESRI.ArcGIS.Client.Toolkit reference. you need to remove the namespace (ESRI.ArcGIS.Client.Toolkit.Toolbar)from the xaml and then add the toolbar control on the xaml page in the same way we add other toolkit controls.

Namespace will automatically added.

Thanks
Ankur
0 Kudos
MihirShah
New Contributor
No, you need not to remove the ESRI.ArcGIS.Client.Toolkit reference. you need to remove the namespace (ESRI.ArcGIS.Client.Toolkit.Toolbar)from the xaml and then add the toolbar control on the xaml page in the same way we add other toolkit controls.

Namespace will automatically added.

Thanks
Ankur


Hi, I was able to resolve some of the errors in my application. However, I am still getting this error: "the type or namespace name 'SelectedToolbarItemArgs' does not exist in the namespace 'ESRI.ArcGIS.Client.Toolkit' (are you missing an assembly reference?)"

Actually, I created a sample silverlight project to test. It isn't giving me the missing namespace error in that file. However, I am getting this error in the main application. Any ideas as to why am I facing this problem ? Any suggestions will be really helpful.

Thanks,
Mihir
0 Kudos