add buttons to navigation

760
5
04-26-2011 10:31 AM
ThaoNguyen
New Contributor II
From ArcGis samples, I can add navigation by doing the following:
<esri:Navigation Margin="5" HorizontalAlignment="Left" VerticalAlignment="Bottom"
        Map="{Binding ElementName=MyMap}"  >   
</esri:Navigation>

I want to add 2 buttons (in red border in the attached image) to the navigation.  Is there a way I can do this?
0 Kudos
5 Replies
JenniferNery
Esri Regular Contributor
0 Kudos
ThaoNguyen
New Contributor II
Sure you can customize the template: http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2010/05/20/Use-control-templates-to-customize...


I read that page before posting the question, but I don't have Expression Blend.  I guess I will have to figure it out in WPF.  Thanks!
0 Kudos
ThaoNguyen
New Contributor II
Sure you can customize the template: http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2010/05/20/Use-control-templates-to-customize...


If I had expression, I would be able to copy the xaml for the basic navigation and modify it from Visual Studio.  However, I don't have expression.  If you have expresion and have the xaml code for the basic navigation, would you please attach the code to this post?

Thanks!
0 Kudos
ThaoNguyen
New Contributor II
If I had expression, I would be able to copy the xaml for the basic navigation and modify it from Visual Studio.  However, I don't have expression.  If you have expresion and have the xaml code for the basic navigation, would you please attach the code to this post?

Thanks!


Found the xaml code for navigation at esri source code:
http://esrisilverlight.codeplex.com/SourceControl/changeset/view/60541#722559
0 Kudos
JenniferNery
Esri Regular Contributor
ExpressionBlend has a trial version and is useful for these type of things: http://www.microsoft.com/expression/products/blend_overview.aspx I recommend that you download it so you can edit templates on any control (not necessarily ours) 🙂
0 Kudos