public TableWidget()
        {
            this.Resources.MergedDictionaries.Add(SharedDictionaryManager.SharedStyleDictionary);
              this.Resources.MergedDictionaries.Add(SharedDictionaryManager.SharedDataTemplateDictionary);

              InitializeComponent();

              DataGridViewModel = new TableViewModel(null);
              DataContext = DataGridViewModel;

              Caption = "Table";
        }
        public StopWidget()
        {
            this.Resources.MergedDictionaries.Add(SharedDictionaryManager.SharedStyleDictionary);
              this.Resources.MergedDictionaries.Add(SharedDictionaryManager.SharedDataTemplateDictionary);

              InitializeComponent();

              DataGridViewModel = new StopViewModel(null, null, this);
              DataContext = DataGridViewModel;

              Caption = "Stops";
              Properties = new Dictionary<string, string>();

              // init the widget's data members from the VM
              DataGridViewModel.GetProperties(Properties);
        }