Click here to Skip to main content
15,898,222 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: WPF Update UI When Collection Changes Pin
Kevin Marois6-Aug-12 7:25
professionalKevin Marois6-Aug-12 7:25 
GeneralRe: WPF Update UI When Collection Changes Pin
Mycroft Holmes6-Aug-12 12:38
professionalMycroft Holmes6-Aug-12 12:38 
GeneralRe: WPF Update UI When Collection Changes Pin
SledgeHammer011-Aug-12 13:15
SledgeHammer011-Aug-12 13:15 
GeneralRe: WPF Update UI When Collection Changes Pin
Kevin Marois1-Aug-12 13:32
professionalKevin Marois1-Aug-12 13:32 
GeneralRe: WPF Update UI When Collection Changes Pin
Mycroft Holmes1-Aug-12 14:17
professionalMycroft Holmes1-Aug-12 14:17 
GeneralRe: WPF Update UI When Collection Changes Pin
SledgeHammer011-Aug-12 15:49
SledgeHammer011-Aug-12 15:49 
GeneralRe: WPF Update UI When Collection Changes Pin
Kevin Marois1-Aug-12 17:33
professionalKevin Marois1-Aug-12 17:33 
GeneralRe: WPF Update UI When Collection Changes Pin
SledgeHammer011-Aug-12 17:46
SledgeHammer011-Aug-12 17:46 
If you use a code generator, you'd just regenerate them. If you don't use a code generator, you would just change your "ObservableObject" base class. Granted, all your entities would still have the if (blah != value) RaisePropertyChangedEvent(), but that function wouldn't do anything. Heck, you could even do something clever like (and this is just psuedo-code to give you the idea):

public string SomeProp
{
get { return base.GetProp("SomeProp"); }
set { base.SetProp("SomeProp", value); }
}

obviously the base class will store a dictionary of string <-> objects, or whatever.

in base.SetProp() you would do something like (whilst supporting WPF) again psuedo code:

void SetProp(string propName, object value)
{
object o;

_dict.LookUpObject();

if ((o as IComparable).CompareTo(value) != 0)
{
_dict.UpdateValue()
RaisePropertyChanged(propName);
}
}

then if you remove WPF support down the road, you would just change this function and get rid of RaisePropertyChanged() and remove the INPC implementation.
GeneralRe: WPF Update UI When Collection Changes Pin
Kevin Marois2-Aug-12 13:39
professionalKevin Marois2-Aug-12 13:39 
GeneralRe: WPF Update UI When Collection Changes Pin
SledgeHammer012-Aug-12 14:08
SledgeHammer012-Aug-12 14:08 
GeneralRe: WPF Update UI When Collection Changes Pin
Pete O'Hanlon1-Aug-12 22:13
mvePete O'Hanlon1-Aug-12 22:13 
GeneralRe: WPF Update UI When Collection Changes Pin
Kevin Marois2-Aug-12 6:31
professionalKevin Marois2-Aug-12 6:31 
GeneralRe: WPF Update UI When Collection Changes Pin
Gerry Schmitz2-Aug-12 8:40
mveGerry Schmitz2-Aug-12 8:40 
GeneralRe: WPF Update UI When Collection Changes Pin
Kevin Marois2-Aug-12 8:47
professionalKevin Marois2-Aug-12 8:47 
GeneralRe: WPF Update UI When Collection Changes Pin
Gerry Schmitz2-Aug-12 9:05
mveGerry Schmitz2-Aug-12 9:05 
GeneralRe: WPF Update UI When Collection Changes Pin
Ed Hill _5_2-Aug-12 23:02
Ed Hill _5_2-Aug-12 23:02 
GeneralRe: WPF Update UI When Collection Changes Pin
Pete O'Hanlon2-Aug-12 9:47
mvePete O'Hanlon2-Aug-12 9:47 
GeneralRe: WPF Update UI When Collection Changes Pin
Gerry Schmitz2-Aug-12 9:55
mveGerry Schmitz2-Aug-12 9:55 
GeneralRe: WPF Update UI When Collection Changes Pin
Kevin Marois2-Aug-12 9:57
professionalKevin Marois2-Aug-12 9:57 
GeneralRe: WPF Update UI When Collection Changes Pin
Pete O'Hanlon2-Aug-12 10:21
mvePete O'Hanlon2-Aug-12 10:21 
GeneralRe: WPF Update UI When Collection Changes Pin
Kevin Marois2-Aug-12 10:25
professionalKevin Marois2-Aug-12 10:25 
GeneralRe: WPF Update UI When Collection Changes Pin
Kevin Marois2-Aug-12 10:02
professionalKevin Marois2-Aug-12 10:02 
GeneralRe: WPF Update UI When Collection Changes Pin
Kevin Marois2-Aug-12 9:56
professionalKevin Marois2-Aug-12 9:56 
GeneralRe: WPF Update UI When Collection Changes Pin
Gerry Schmitz2-Aug-12 10:33
mveGerry Schmitz2-Aug-12 10:33 
GeneralRe: WPF Update UI When Collection Changes Pin
Kevin Marois2-Aug-12 10:43
professionalKevin Marois2-Aug-12 10:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.