Exemplo n.º 1
0
 public MapControlWindow()
 {
     InitializeComponent();
     _mapControl = this.mapControl;
     viewModel   = new MapControlWindow_ViewModel();
     viewModel.UpdateMapControlContent();
     DataContext = viewModel;
 }
 public MapControlWindow()
 {
     InitializeComponent();
     _mapControl = this.mapControl;
     viewModel = new MapControlWindow_ViewModel();
     viewModel.UpdateMapControlContent();
     DataContext = viewModel;
 }
        public MapControlWindow()
        {
            InitializeComponent();
            // parent the MapControlWindow properly so that even when 'clicks' occur
            // MapControlWindow is not obscured behind ArcGIS Pro or other windows
            base.Owner = FrameworkApplication.Current.MainWindow;

            _mapControl = this.mapControl;
            // Create our viewmodel (MVVM)
            viewModel = new MapControlWindow_ViewModel();
            viewModel.UpdateMapControlContent();
            // set the datacontext to our ViewModel
            base.DataContext = viewModel;
        }