Click here to Skip to main content
15,911,141 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Trigger problems Pin
GDavy30-Jun-08 20:42
GDavy30-Jun-08 20:42 
QuestionErrors appear sometimes [modified] Pin
jamie55029-Jun-08 3:29
jamie55029-Jun-08 3:29 
AnswerRe: Errors appear sometimes Pin
Insincere Dave29-Jun-08 4:59
Insincere Dave29-Jun-08 4:59 
QuestionWhy does ToggleButton fail to obey binding when clicked? Pin
RNEELY27-Jun-08 7:29
RNEELY27-Jun-08 7:29 
AnswerRe: Why does ToggleButton fail to obey binding when clicked? Pin
Insincere Dave27-Jun-08 16:45
Insincere Dave27-Jun-08 16:45 
QuestionExport WPF grid to HTML page !! Pin
Karunish25-Jun-08 1:23
Karunish25-Jun-08 1:23 
AnswerRe: Export WPF grid to HTML page !! Pin
Pete O'Hanlon25-Jun-08 1:43
mvePete O'Hanlon25-Jun-08 1:43 
QuestionWhat is killing all WPF command CanExecutes? Pin
artwallacex24-Jun-08 13:41
artwallacex24-Jun-08 13:41 
I've encountered a strange problem in my WPF app. Basically, something appears to be killing all of my Command CanExecute methods.

Every UI element that has a Command tied to it will be disabled after certain operations, while most other times they will function normally. Calling a dialog such as MessageBox.Show("Really?", MessageBoxButton.YesNo) then executing my code will cause the problem.

Even UI elements with the most simple CanExecute such as this will be disabled after the dialog is shown.
private void Cmd_Exit_CanExecute(object sender, CanExecuteRoutedEventArgs e)
{
    e.CanExecute = true;
}


Adding CommandManager.InvalidateRequerySuggested(); into the methods does not help.

Once they get disabled, clicking something active in the window will return normal behavior.

I've exhausted all of the things that I know of to try to find out what is causing this problem. Where should I go from here? I feel that it's something in the bindings that is the problem but bringing up the debugger causes the behavior to change.
AnswerRe: What is killing all WPF command CanExecutes? Pin
RNEELY27-Jun-08 7:33
RNEELY27-Jun-08 7:33 
GeneralRe: What is killing all WPF command CanExecutes? Pin
artwallacex27-Jun-08 11:03
artwallacex27-Jun-08 11:03 
GeneralRe: What is killing all WPF command CanExecutes? Pin
RNEELY27-Jun-08 13:38
RNEELY27-Jun-08 13:38 
GeneralRe: What is killing all WPF command CanExecutes? Pin
artwallacex27-Jun-08 14:07
artwallacex27-Jun-08 14:07 
QuestionWrapping a WPF GUI component to use it with a HID different than mouse? Pin
Member 367304824-Jun-08 7:07
Member 367304824-Jun-08 7:07 
QuestionMaking Refresh on Viewport3D Pin
sondos0123-Jun-08 23:46
sondos0123-Jun-08 23:46 
QuestionLoading DWF/DXF/DWG file Pin
Member 384581521-Jun-08 0:15
Member 384581521-Jun-08 0:15 
AnswerRe: Loading DWF/DXF/DWG file Pin
Pete O'Hanlon21-Jun-08 0:51
mvePete O'Hanlon21-Jun-08 0:51 
AnswerRe: Loading DWF/DXF/DWG file Pin
wout de zeeuw1-May-11 10:37
wout de zeeuw1-May-11 10:37 
QuestionSingleInstance Application Pin
Jammer20-Jun-08 9:21
Jammer20-Jun-08 9:21 
AnswerRe: SingleInstance Application Pin
Pete O'Hanlon20-Jun-08 9:44
mvePete O'Hanlon20-Jun-08 9:44 
QuestionRe: SingleInstance Application [modified] Pin
Jammer20-Jun-08 12:25
Jammer20-Jun-08 12:25 
AnswerRe: SingleInstance Application Pin
Pete O'Hanlon21-Jun-08 0:49
mvePete O'Hanlon21-Jun-08 0:49 
GeneralRe: SingleInstance Application Pin
Jammer21-Jun-08 7:06
Jammer21-Jun-08 7:06 
GeneralRe: SingleInstance Application Pin
Pete O'Hanlon22-Jun-08 8:39
mvePete O'Hanlon22-Jun-08 8:39 
GeneralRe: SingleInstance Application Pin
Jammer22-Jun-08 23:43
Jammer22-Jun-08 23:43 
GeneralRe: SingleInstance Application Pin
Pete O'Hanlon23-Jun-08 0:02
mvePete O'Hanlon23-Jun-08 0:02 

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.