-
Robaticus
windows-phone-7 inotifypropertychanged missingmethodexception
I have been following the MSDN tutorial as a reference while making an MVC app for Winows Phone 7.1: http://msdn.microsoft.com/en-us/library/hh286405(v=vs.92).aspxIn my app, I have an object in a table that implements the INotifyPropertyChanging and INotifyPropertyChanged interfaces implemented and a property like this:private DateTime lastViewDate; [Column] public DateTime LastViewDate {get { return lastViewDate; }set{if (lastViewDate != value){NotifyPropertyChanging(“LastViewDate”);lastViewDat
-
Tom Padilla
c# wpf mvvm inotifypropertychanged
I am using MVC\MVVM and WPF. I have a form that is bound to a model and a controller that is catching the PropertyChanged events and evaluating business rules and validations. Well, I want to pop-up a message when a validation is false telling the user what is wrong and how to fix it. But I’m not sure the “correct” way from the controller. I’d like to throw an exception that can be caught by the view but I can’t figure out how. I’ve tried Dispatcher.Invoke() but that just got me an unhandled exc
-
accurec
c# dynamic data-binding devexpress inotifypropertychanged
I have an extended binding list for my purposes:public class MyList<T> : BindingList<T>, INotifyPropertyChanged {private List<T> invalidObjectsList;public MyList() : base(){invalidObjectsList = new List<T>();}…public bool IsValid {get{return invalidObjectsList.Count == 0;}}…// I have similar method for deletionAddElementToInvalidList(T element){invalidObjectsList.Add(element);OnPropertyChanged(“IsValid”);}…// Stuff for the INotifyPropertyChanged interfacepublic even
-
shansen
c# wpf data-binding mvvm inotifypropertychanged
I am working on a medium size WPF application that utilizes the MVVM pattern. ViewModels use INotifyPropertyChanged to refresh their respective Views.This approach works perfectly, except for one problem: when this application is left running for long periods of time (3-7 days) the Views (every single View in the entire app!) suddenly stop updating their bound properties. If I set a breakpoint in the ViewModels, they are chugging away happily, calling PropertyChanged like nothing is wrong. Howev
-
dotNETbeginner
c# winforms events enums inotifypropertychanged
public partial class FrmEditSiteParticulars : Form, INotifyPropertyChanged{public enum EntryTypes{Undefined,Site,Particular}private EntryTypes _EntryType;private EntryTypes EntryType { get{return _EntryType;}set{if (value != _EntryType){_EntryType = value;OnPropertyChanged(“EntryType”);}}}public event PropertyChangedEventHandler EntryTypeChanged;protected void OnPropertyChanged(string propertyName){PropertyChangedEventHandler handler = EntryTypeChanged;if (handler != null)handler(this, new Prope