Click here to Skip to main content
15,878,809 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: WPF Detect Property Change In Entity In VM Pin
Matt T Heffron11-Mar-14 7:53
professionalMatt T Heffron11-Mar-14 7:53 
GeneralRe: WPF Detect Property Change In Entity In VM Pin
Kevin Marois11-Mar-14 8:00
professionalKevin Marois11-Mar-14 8:00 
SuggestionRe: WPF Detect Property Change In Entity In VM Pin
Matt T Heffron11-Mar-14 8:13
professionalMatt T Heffron11-Mar-14 8:13 
GeneralRe: WPF Detect Property Change In Entity In VM Pin
Kevin Marois11-Mar-14 8:18
professionalKevin Marois11-Mar-14 8:18 
AnswerRe: WPF Detect Property Change In Entity In VM Pin
pradeep surya5-Mar-14 7:31
pradeep surya5-Mar-14 7:31 
QuestionWPF Bind Window Activated Event To Command Pin
Kevin Marois3-Mar-14 10:40
professionalKevin Marois3-Mar-14 10:40 
AnswerRe: WPF Bind Window Activated Event To Command Pin
Pete O'Hanlon3-Mar-14 10:53
mvePete O'Hanlon3-Mar-14 10:53 
GeneralRe: WPF Bind Window Activated Event To Command Pin
Kevin Marois3-Mar-14 11:11
professionalKevin Marois3-Mar-14 11:11 
Thanks Pete. That did it.

The Getter for the command fires, but the execute never does.

My code is pretty standard:

private ICommand _WindowActivatedCommand;
public ICommand WindowActivatedCommand
{
    get
    {
        if (_WindowActivatedCommand == null)
            _WindowActivatedCommand = new RelayCommand(p => windowActivated(), p => windowCanActivate());

        return _WindowActivatedCommand;
    }
}

private bool windowCanActivate()
{
    return true;
}
private void windowActivated()
{

}


Neither windowCanActivate nor windowActivated ever fire. How do I know if the Event is calling the command?
If it's not broken, fix it until it is

GeneralRe: WPF Bind Window Activated Event To Command Pin
Pete O'Hanlon3-Mar-14 11:16
mvePete O'Hanlon3-Mar-14 11:16 
GeneralRe: WPF Bind Window Activated Event To Command Pin
Kevin Marois3-Mar-14 11:17
professionalKevin Marois3-Mar-14 11:17 
GeneralRe: WPF Bind Window Activated Event To Command Pin
Pete O'Hanlon3-Mar-14 11:18
mvePete O'Hanlon3-Mar-14 11:18 
GeneralRe: WPF Bind Window Activated Event To Command Pin
Kevin Marois3-Mar-14 11:19
professionalKevin Marois3-Mar-14 11:19 
GeneralRe: WPF Bind Window Activated Event To Command Pin
Pete O'Hanlon3-Mar-14 11:37
mvePete O'Hanlon3-Mar-14 11:37 
GeneralRe: WPF Bind Window Activated Event To Command Pin
Kevin Marois3-Mar-14 11:39
professionalKevin Marois3-Mar-14 11:39 
GeneralRe: WPF Bind Window Activated Event To Command Pin
Pete O'Hanlon3-Mar-14 12:33
mvePete O'Hanlon3-Mar-14 12:33 
GeneralRe: WPF Bind Window Activated Event To Command Pin
Kevin Marois3-Mar-14 12:48
professionalKevin Marois3-Mar-14 12:48 
GeneralRe: WPF Bind Window Activated Event To Command Pin
Kevin Marois4-Mar-14 7:44
professionalKevin Marois4-Mar-14 7:44 
GeneralRe: WPF Bind Window Activated Event To Command Pin
Pete O'Hanlon5-Mar-14 12:13
mvePete O'Hanlon5-Mar-14 12:13 
QuestionProblem in wpf prism Pin
Arun kumar Gautam25-Feb-14 20:51
Arun kumar Gautam25-Feb-14 20:51 
AnswerRe: Problem in wpf prism Pin
Pete O'Hanlon27-Feb-14 11:41
mvePete O'Hanlon27-Feb-14 11:41 
QuestionWPF DatagridComboBoxColumn - puzzler Pin
Duke Carey25-Feb-14 4:14
professionalDuke Carey25-Feb-14 4:14 
AnswerRe: WPF DatagridComboBoxColumn - puzzler Pin
Duke Carey25-Feb-14 7:07
professionalDuke Carey25-Feb-14 7:07 
GeneralRe: WPF DatagridComboBoxColumn - puzzler Pin
Richard Deeming25-Feb-14 7:25
mveRichard Deeming25-Feb-14 7:25 
GeneralRe: WPF DatagridComboBoxColumn - puzzler Pin
Duke Carey25-Feb-14 7:42
professionalDuke Carey25-Feb-14 7:42 
QuestionRestore Avalondock Layout Pin
Letram5924-Feb-14 0:19
Letram5924-Feb-14 0:19 

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.