Click here to Skip to main content
15,902,447 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: I need an ebay program Pin
Pete O'Hanlon13-Jan-10 3:03
mvePete O'Hanlon13-Jan-10 3:03 
QuestionSilverlight error in asp.net aplication Pin
Amit Patel198512-Jan-10 22:37
Amit Patel198512-Jan-10 22:37 
AnswerRe: Silverlight error in asp.net aplication Pin
Abhinav S12-Jan-10 23:13
Abhinav S12-Jan-10 23:13 
QuestionRe: Silverlight error in asp.net aplication Pin
Mark Salsbery13-Jan-10 6:49
Mark Salsbery13-Jan-10 6:49 
AnswerRe: Silverlight error in asp.net aplication Pin
Michael Eber21-Jan-10 9:08
Michael Eber21-Jan-10 9:08 
AnswerRe: Silverlight error in asp.net aplication Pin
Kunal Chowdhury «IN»23-Jan-10 23:25
professionalKunal Chowdhury «IN»23-Jan-10 23:25 
QuestionProblem in 3D drawing for jagged line Pin
Gopal_Kanchana12-Jan-10 20:50
Gopal_Kanchana12-Jan-10 20:50 
QuestionWin7:WPF has a bug when set a button visible during system suspending or resuming. (Online Waiting) [modified] Pin
YoYo_Yao12-Jan-10 16:02
YoYo_Yao12-Jan-10 16:02 
My WPF application need to set some buttons visibility to Visible when system suspending or resuming, but in Win7, I still can NOT see these buttons after resumed. These buttons will be shown if I move mouse on them in this case.

I think this is because system doesn't waite applications during Win7 suspending, but how can I force refresh and show my buttons after resumed?

I created a WPF demo to test this issue, only one button is the main dialog in this demo, and it also can reproduce this issue in Win7. The main code is below(In default, DemoBtn.Visibility = Hidden):

void Window1_Loaded(object sender, RoutedEventArgs e)
{
      SystemEvents.PowerModeChanged += new PowerModeChangedEventHandler(SystemEvents_PowerModeChanged);
}

private void SystemEvents_PowerModeChanged(object sender, PowerModeChangedEventArgs e)
{
      if (e.Mode == PowerModes.Suspend)
      {
            //DemoBtn.Visibility = Visibility.Visible;
      }
      else if (e.Mode == PowerModes.Resume)
      {
            DemoBtn.Visibility = Visibility.Visible;
      }
}


modified on Tuesday, January 12, 2010 10:10 PM

AnswerRe: Win7:WPF has a bug when set a button visible during system suspending or resuming. (Online Waiting) Pin
Daniel Grunwald15-Jan-10 4:37
Daniel Grunwald15-Jan-10 4:37 
QuestionEquivalent of treeView1.Nodes.Find in WPF TreeView ? Pin
Mohammad Dayyan12-Jan-10 8:27
Mohammad Dayyan12-Jan-10 8:27 
AnswerRe: Equivalent of treeView1.Nodes.Find in WPF TreeView ? Pin
Pete O'Hanlon13-Jan-10 3:30
mvePete O'Hanlon13-Jan-10 3:30 
GeneralRe: Equivalent of treeView1.Nodes.Find in WPF TreeView ? Pin
Mohammad Dayyan13-Jan-10 8:33
Mohammad Dayyan13-Jan-10 8:33 
GeneralRe: Equivalent of treeView1.Nodes.Find in WPF TreeView ? Pin
Pete O'Hanlon13-Jan-10 8:46
mvePete O'Hanlon13-Jan-10 8:46 
GeneralRe: Equivalent of treeView1.Nodes.Find in WPF TreeView ? Pin
Mohammad Dayyan14-Jan-10 2:53
Mohammad Dayyan14-Jan-10 2:53 
GeneralRe: Equivalent of treeView1.Nodes.Find in WPF TreeView ? Pin
Pete O'Hanlon14-Jan-10 10:47
mvePete O'Hanlon14-Jan-10 10:47 
QuestionHow can I bind data from one combo box to another ? Pin
gil eichenbaum12-Jan-10 2:47
gil eichenbaum12-Jan-10 2:47 
AnswerRe: How can I bind data from one combo box to another ? Pin
Pete O'Hanlon12-Jan-10 3:42
mvePete O'Hanlon12-Jan-10 3:42 
GeneralRe: How can I bind data from one combo box to another ? Pin
gil eichenbaum12-Jan-10 5:34
gil eichenbaum12-Jan-10 5:34 
Questionbinding Path Fill to Hashtable item property Pin
DTh197810-Jan-10 11:21
DTh197810-Jan-10 11:21 
AnswerRe: binding Path Fill to Hashtable item property Pin
AspDotNetDev11-Jan-10 15:55
protectorAspDotNetDev11-Jan-10 15:55 
GeneralRe: binding Path Fill to Hashtable item property Pin
DTh197811-Jan-10 19:27
DTh197811-Jan-10 19:27 
QuestionData Binding Pin
#realJSOP9-Jan-10 2:59
professional#realJSOP9-Jan-10 2:59 
AnswerRe: Data Binding Pin
Daniel Vaughan9-Jan-10 5:45
Daniel Vaughan9-Jan-10 5:45 
GeneralRe: Data Binding Pin
Lutosław12-Jan-10 4:05
Lutosław12-Jan-10 4:05 
GeneralRe: Data Binding Pin
Daniel Vaughan12-Jan-10 5:47
Daniel Vaughan12-Jan-10 5:47 

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.