Click here to Skip to main content
15,897,518 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Regarding MVVM framework for WPF Pin
Richard MacCutchan5-Aug-12 6:55
mveRichard MacCutchan5-Aug-12 6:55 
GeneralWPF Update UI When Collection Changes Pin
Kevin Marois1-Aug-12 11:05
professionalKevin Marois1-Aug-12 11:05 
GeneralRe: WPF Update UI When Collection Changes Pin
Pete O'Hanlon1-Aug-12 11:44
mvePete O'Hanlon1-Aug-12 11:44 
GeneralRe: WPF Update UI When Collection Changes Pin
Kevin Marois1-Aug-12 11:52
professionalKevin Marois1-Aug-12 11:52 
GeneralRe: WPF Update UI When Collection Changes Pin
Pete O'Hanlon1-Aug-12 12:10
mvePete O'Hanlon1-Aug-12 12:10 
GeneralRe: WPF Update UI When Collection Changes Pin
Kevin Marois1-Aug-12 12:23
professionalKevin Marois1-Aug-12 12:23 
GeneralRe: WPF Update UI When Collection Changes Pin
Pete O'Hanlon1-Aug-12 12:45
mvePete O'Hanlon1-Aug-12 12:45 
GeneralRe: WPF Update UI When Collection Changes Pin
Kevin Marois1-Aug-12 12:51
professionalKevin Marois1-Aug-12 12:51 
No, simply

public string Caption {get; set; }


How their generated is irellevant here. The entities are in a seperate Entities project used by 2 diferent UI projects - WPF and Web.

So now we're talking about going from

public class AddressEntity : _EntityBase
{
    public string Caption { get; set; }
    public string Street1 { get; set; }
    public string Street2 { get; set; }
    public string City { get; set; }
    public string State { get; set; }
    public string ZipCode { get; set; }
}


to

private string _Caption = string.Empty;
public string Caption 
{
    get { return _Caption; }
    set
    {
        if (_Caption != value)
        {
            _Caption = value;
            RaisePropertyChanged("Caption");
        }
    }
}

.
.
.
.
}


That's a tremendous amount of code in many entities just to support WPF.

One possibility is in the WPF UI simple reload the list from data.
If it's not broken, fix it until it is

GeneralRe: WPF Update UI When Collection Changes Pin
Mycroft Holmes1-Aug-12 13:10
professionalMycroft Holmes1-Aug-12 13:10 
GeneralRe: WPF Update UI When Collection Changes Pin
Kevin Marois1-Aug-12 13:27
professionalKevin Marois1-Aug-12 13:27 
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 
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 

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.