Click here to Skip to main content
14,334,458 members

Silverlight / WPF

 
AnswerRe: Add column sorting to a WPF grid Pin
Gerry Schmitz8-Jul-16 6:52
mveGerry Schmitz8-Jul-16 6:52 
QuestionSingle Instance WPF App - Pass Params From Second Instance To First Instance Pin
Kevin Marois30-Jun-16 8:46
professionalKevin Marois30-Jun-16 8:46 
QuestionWPF empty tabbed dashboard example code Pin
holdorf28-Jun-16 12:07
memberholdorf28-Jun-16 12:07 
AnswerRe: WPF empty tabbed dashboard example code Pin
Pete O'Hanlon28-Jun-16 20:53
protectorPete O'Hanlon28-Jun-16 20:53 
SuggestionRe: WPF empty tabbed dashboard example code Pin
Richard MacCutchan28-Jun-16 21:09
protectorRichard MacCutchan28-Jun-16 21:09 
AnswerRe: WPF empty tabbed dashboard example code Pin
Gerry Schmitz1-Jul-16 5:47
mveGerry Schmitz1-Jul-16 5:47 
GeneralRe: WPF empty tabbed dashboard example code Pin
holdorf6-Jul-16 10:11
memberholdorf6-Jul-16 10:11 
QuestionRaisePropertyChanged is not being called Pin
Kevin Marois27-Jun-16 10:41
professionalKevin Marois27-Jun-16 10:41 
I have a models project with a base model. In the base model I have:
public class ModelBase : INotifyPropertyChanged
{
    public event PropertyChangedEventHandler PropertyChanged;

    protected void RaisePropertyChanged(string propertName)
    {
        if (PropertyChanged != null)
        {
            PropertyChanged(this, new PropertyChangedEventArgs(propertName));
        }
    }
}
The model has:
public class MonthViewDayModel : ModelBase
{
    private bool _IsVisible;
    public bool IsVisible
    {
        get { return _IsVisible; }
        set
        {
            if (_IsVisible != value)
            {
                _IsVisible = value;
                RaisePropertyChanged("IsVisible");
            }
        }
    }
}
When I step into the base the PropertyChanged event is ALWAYS null, yet I'm bound to these models in the XAML. The DataContext is being set.

What's wrong here?
If it's not broken, fix it until it is


modified 29-Jun-16 3:53am.

AnswerRe: RaisePropertyChanged is not being called Pin
Mycroft Holmes27-Jun-16 14:27
memberMycroft Holmes27-Jun-16 14:27 
AnswerRe: RaisePropertyChanged is not being called Pin
Bernhard Hiller27-Jun-16 21:50
memberBernhard Hiller27-Jun-16 21:50 
AnswerRe: RaisePropertyChanged is not being called Pin
Jacob Himes28-Jun-16 22:28
professionalJacob Himes28-Jun-16 22:28 
QuestionWPF Diagram Of Logical & Visual Trees Pin
Kevin Marois23-Jun-16 13:56
professionalKevin Marois23-Jun-16 13:56 
AnswerRe: WPF Diagram Of Logical & Visual Trees Pin
Gerry Schmitz24-Jun-16 3:53
mveGerry Schmitz24-Jun-16 3:53 
QuestionHow To Render WinForms Control In WPF Pin
Kevin Marois21-Jun-16 8:07
professionalKevin Marois21-Jun-16 8:07 
AnswerRe: How To Render WinForms Control In WPF Pin
Gerry Schmitz23-Jun-16 7:46
mveGerry Schmitz23-Jun-16 7:46 
GeneralRe: How To Render WinForms Control In WPF Pin
Kevin Marois23-Jun-16 8:28
professionalKevin Marois23-Jun-16 8:28 
GeneralRe: How To Render WinForms Control In WPF Pin
Gerry Schmitz23-Jun-16 12:42
mveGerry Schmitz23-Jun-16 12:42 
QuestionHow to Set WPF InkCanvas Drawing area Pin
Om Prakash17-Jun-16 22:24
memberOm Prakash17-Jun-16 22:24 
AnswerRe: How to Set WPF InkCanvas Drawing area Pin
Gerry Schmitz18-Jun-16 6:21
mveGerry Schmitz18-Jun-16 6:21 
QuestionWPF/MVVM Tabbed UI - Handle Menu Commands Pin
Kevin Marois14-Jun-16 11:54
professionalKevin Marois14-Jun-16 11:54 
AnswerRe: WPF/MVVM Tabbed UI - Handle Menu Commands Pin
Mycroft Holmes14-Jun-16 14:44
memberMycroft Holmes14-Jun-16 14:44 
GeneralRe: WPF/MVVM Tabbed UI - Handle Menu Commands Pin
Kevin Marois14-Jun-16 15:15
professionalKevin Marois14-Jun-16 15:15 
GeneralRe: WPF/MVVM Tabbed UI - Handle Menu Commands Pin
Mycroft Holmes14-Jun-16 16:27
memberMycroft Holmes14-Jun-16 16:27 
AnswerRe: WPF/MVVM Tabbed UI - Handle Menu Commands Pin
U. G. Leander16-Jun-16 1:34
professionalU. G. Leander16-Jun-16 1:34 
QuestionHow to Change WPF Textbox SpellCheck Language to UK English Pin
Dave M121:-)4-Jun-16 22:33
memberDave M121:-)4-Jun-16 22:33 

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.