public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/ESRIStandardMapApplication1;component/MainPage.xaml", System.UriKind.Relative)); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.Map = ((ESRI.ArcGIS.Client.Map)(this.FindName("Map"))); this.MainManu = ((ESRI.ArcGIS.SilverlightMapApp.CollapsiblePanel)(this.FindName("MainManu"))); this.BannerGrid = ((System.Windows.Controls.Grid)(this.FindName("BannerGrid"))); this.title = ((System.Windows.Controls.TextBlock)(this.FindName("title"))); this.separatorBar = ((System.Windows.Shapes.Rectangle)(this.FindName("separatorBar"))); this.subtitle = ((System.Windows.Controls.TextBlock)(this.FindName("subtitle"))); this.myMenu = ((System.Windows.Controls.Button)(this.FindName("myMenu"))); this.btnAbout = ((System.Windows.Controls.Primitives.ToggleButton)(this.FindName("btnAbout"))); this.myMenuItems = ((System.Windows.Controls.Grid)(this.FindName("myMenuItems"))); this.myMenuItem1 = ((System.Windows.Controls.Button)(this.FindName("myMenuItem1"))); this.myMenuItem2 = ((System.Windows.Controls.Button)(this.FindName("myMenuItem2"))); this.myMenuItem3 = ((System.Windows.Controls.Button)(this.FindName("myMenuItem3"))); this.BaseMapSwitcher = ((System.Windows.Controls.Border)(this.FindName("BaseMapSwitcher"))); this.MainToolbar = ((ESRI.ArcGIS.SilverlightMapApp.CollapsiblePanel)(this.FindName("MainToolbar"))); this.btnToggleBaseMapSwitcher = ((System.Windows.Controls.Button)(this.FindName("btnToggleBaseMapSwitcher"))); this.btnToggleMapLegend = ((System.Windows.Controls.Primitives.ToggleButton)(this.FindName("btnToggleMapLegend"))); this.btnToggleOverviewMap = ((System.Windows.Controls.Primitives.ToggleButton)(this.FindName("btnToggleOverviewMap"))); this.btnToggleMagnifyingGlass = ((System.Windows.Controls.Button)(this.FindName("btnToggleMagnifyingGlass"))); this.Navigator = ((ESRI.ArcGIS.Client.Toolkit.Navigation)(this.FindName("Navigator"))); this.ScaleBar = ((ESRI.ArcGIS.Client.Toolkit.ScaleLine)(this.FindName("ScaleBar"))); this.OverviewMapPanel = ((ESRI.ArcGIS.SilverlightMapApp.WindowPanel)(this.FindName("OverviewMapPanel"))); this.OVMap = ((ESRI.ArcGIS.Client.Toolkit.OverviewMap)(this.FindName("OVMap"))); this.MagnifyingGlass = ((ESRI.ArcGIS.Client.Toolkit.MagnifyingGlass)(this.FindName("MagnifyingGlass"))); this.MapLegendPanel = ((ESRI.ArcGIS.SilverlightMapApp.WindowPanel)(this.FindName("MapLegendPanel"))); this.Legend = ((ESRI.ArcGIS.Client.Toolkit.Legend)(this.FindName("Legend"))); this.AboutWindow = ((ESRI.ArcGIS.SilverlightMapApp.WindowPanel)(this.FindName("AboutWindow"))); }
private static void OnIsOpenPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { WindowPanel panel = d as WindowPanel; panel.ChangeVisualState(true); }