Front desk
<stackpanel grid.column= "5" grid.columnspan= "1" grid.row= "0" grid.rowspan= "5" > <button name= "Btn_Boo Kmark "content=" bookmarks "click=" Btn_bookmark_click_1 "></Button> <button name=" Btn_overviewmap "Content = "Eagle Eye" click= "Btn_overviewmap_click_1" ></Button> </StackPanel>
<esri:overviewmap x:name= "Moverviewmap" grid.columnspan= "1" map= " {Binding Elementname=china} ' > <esri:o Verviewmap.layer> <esri:arcgistiledmapservicelayer id= "Streetlayer" Url= "Http://localhost/arcgis/rest/services/Map/MapServer"/> </esri:OverviewMap.Layer> </esri:o Verviewmap>
<esri:bookmark name= "Mbookmark" visibility= "collapsed" margin= "0,-2,0,0" verticalalignment= "Top" Map= "{Binding Elementname=china} "grid.column=" 4 "grid.columnspan=" 1 "grid.row=" 0 "grid.rowspan=" 1 "/>
Background
namespace public partial class Mainpage:usercontrol {&NBSP;&NBSP;&NBSP;&N bsp; public MainPage () { InitializeComponent (); } private void Btn_bookmark_ Click_1 (object sender, RoutedEventArgs e) { if (mbookmark.visibility = = visibility.collapsed) { mbookmark.visibility = visibility.visible; } Else mbookmark.visibility = Visibility.collapSed }
private void Btn_overviewmap_click_1 (object sender, RoutedEventArgs e) {if (moverviewmap.visibility = = visibility.collapsed) {moverviewmap.visibility = visibility.visible; } else moverviewmap.visibility = visibility.collapsed; } }
}
Bookmarks, Eagle Eye