public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/SilverlightPrototype1.Screens;component/Map.xaml", System.UriKind.Relative)); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.mapCtrl = ((SilverlightPrototype1Screens.MapCtrl)(this.FindName("mapCtrl"))); }