¡@

Home 

c# Programming Glossary: viewmodelbase

ObservableCollection not noticing when Item in it changes (even with INotifyPropertyChanged)

http://stackoverflow.com/questions/1427471/observablecollection-not-noticing-when-item-in-it-changes-even-with-inotifyprop

this code doesn't work public class CollectionViewModel ViewModelBase public ObservableCollection EntityViewModel ContentList get.. when IsRowChecked is toggled public class EntityViewModel ViewModelBase private bool _isRowChecked public bool IsRowChecked get return.. _isRowChecked value RaisePropertyChanged IsRowChecked PS ViewModelBase containts everything for RaisePropertyChanged etc. and it's..

Dynamically Updating TabControl Content at Runtime

http://stackoverflow.com/questions/15209870/dynamically-updating-tabcontrol-content-at-runtime

TabControl Window ViewModel public class TabbedViewModel ViewModelBase private ObservableCollection TabViewModel _items public ObservableCollection.. _items new ObservableCollection TabViewModel private ViewModelBase _selectedItem public ViewModelBase SelectedItem get return.. TabViewModel private ViewModelBase _selectedItem public ViewModelBase SelectedItem get return _selectedItem set _selectedItem..

A super-simple MVVM-Light WP7 sample?

http://stackoverflow.com/questions/3655422/a-super-simple-mvvm-light-wp7-sample

myself in my model or use Mvvm Light's ViewModelBase implementation. I actually tried it both ways and had it working.. it both ways and had it working but decided I liked using ViewModelBase better because it supports broadcast and I think in my actual.. ViewModels. It seems a bit uncouth to be basing a Model on ViewModelBase class but I don't think there's any harm in doing so. . My model..

Changing the View for a ViewModel

http://stackoverflow.com/questions/5309099/changing-the-view-for-a-viewmodel

the logic for switching views public class MainViewModel ViewModelBase public MainViewModel this.ItemViewModel new SampleViewModel..

Binding WPF ComboBox to a Custom List

http://stackoverflow.com/questions/561166/binding-wpf-combobox-to-a-custom-list

Path ConnectionName . public class ConnectionViewModel ViewModelBase public string Name get set public string Password get set public.. string Password get set public class MainWindowViewModel ViewModelBase List ConnectionViewModel ... public CollectionView Connections..

Notify ObservableCollection when Item changes

http://stackoverflow.com/questions/8490533/notify-observablecollection-when-item-changes

DataGrid ViewModel public class MyViewModel ViewModelBase private TrulyObservableCollection MyType myItemsSource public.. true new MyType MyProperty false public class MyType ViewModelBase private bool myProperty public bool MyProperty get return myProperty.. value RaisePropertyChangedEvent MyProperty public class ViewModelBase INotifyPropertyChanged public event PropertyChangedEventHandler..