/// <summary> /// Initializes a new instance of the MainViewModel class. /// </summary> public MainViewModel(UserNamesViewModel usertNamesCollection) { UsertNamesCollection = usertNamesCollection; ButtonClick = _buttonClick ?? (_buttonClick = new RelayCommand(ButtonClickCommand)); ////if (IsInDesignMode) ////{ //// // Code runs in Blend --> create design time data. ////} ////else ////{ //// // Code runs "for real" ////} }
/// <summary> /// Initializes a new instance of the MainViewModel class. /// </summary> public MainViewModel(UserNamesViewModel usertNamesCollection) { UsertNamesCollection = usertNamesCollection; ButtonClick = _buttonClick ?? (_buttonClick = new RelayCommand(ButtonClickCommand)); ////if (IsInDesignMode) ////{ //// // Code runs in Blend --> create design time data. ////} ////else ////{ //// // Code runs "for real" ////} }