Click here to Skip to main content
15,891,372 members
Home / Discussions / WPF
   

WPF

 
QuestionUpdate silverlight xap file Pin
Nekkantidivya31-Aug-09 19:18
Nekkantidivya31-Aug-09 19:18 
AnswerRe: Update silverlight xap file Pin
zlezj1-Sep-09 0:49
zlezj1-Sep-09 0:49 
AnswerRe: Update silverlight xap file - Sample code Pin
zlezj1-Sep-09 2:23
zlezj1-Sep-09 2:23 
GeneralRe: Update silverlight xap file - Sample code Pin
Nasenbaaer2-Jun-10 5:06
Nasenbaaer2-Jun-10 5:06 
AnswerRe: Update silverlight xap file Pin
Mark Salsbery1-Sep-09 5:28
Mark Salsbery1-Sep-09 5:28 
QuestionWPF CheckBox state Pin
Gary Wheeler31-Aug-09 9:47
Gary Wheeler31-Aug-09 9:47 
AnswerRe: WPF CheckBox state [modified] Pin
Super Lloyd31-Aug-09 14:43
Super Lloyd31-Aug-09 14:43 
GeneralRe: WPF CheckBox state Pin
Gary Wheeler1-Sep-09 0:55
Gary Wheeler1-Sep-09 0:55 
Super Lloyd wrote:
<CheckBox Content="I'm Checked!" IsChecked="True"/>


I can't set the initial state of the checkbox in the XAML, since the initial state is determined programmatically during the Loaded() event handler for the dialog.

Super Lloyd wrote:
Now, I'm a bit puzzle by what you mean "in the event handler"


I'm referring to something like this, where a flag tells the CheckBox Checked() handler whether or not to do its thing:
bool _SettingInitialState = true;
//...
_SettingInitialState = true;
_Checkbox.IsChecked = initial_state;
_SettingInitialState = false;
//...
private void _CheckedHandler(...)
{
  if (!_SettingInitialState)
  {
     // normal Checked() handling
  }
}


Software Zen: delete this;

GeneralRe: WPF CheckBox state Pin
Super Lloyd1-Sep-09 0:58
Super Lloyd1-Sep-09 0:58 
GeneralRe: WPF CheckBox state Pin
Gary Wheeler1-Sep-09 1:11
Gary Wheeler1-Sep-09 1:11 
GeneralRe: WPF CheckBox state Pin
Super Lloyd1-Sep-09 1:27
Super Lloyd1-Sep-09 1:27 
GeneralRe: WPF CheckBox state Pin
Gary Wheeler1-Sep-09 1:35
Gary Wheeler1-Sep-09 1:35 
QuestionDynamic enumlist Pin
ProgrammerWPF31-Aug-09 8:43
ProgrammerWPF31-Aug-09 8:43 
AnswerRe: Dynamic enumlist Pin
Not Active31-Aug-09 9:54
mentorNot Active31-Aug-09 9:54 
GeneralRe: Dynamic enumlist Pin
ProgrammerWPF31-Aug-09 9:57
ProgrammerWPF31-Aug-09 9:57 
GeneralRe: Dynamic enumlist Pin
Not Active31-Aug-09 10:10
mentorNot Active31-Aug-09 10:10 
GeneralRe: Dynamic enumlist Pin
ProgrammerWPF31-Aug-09 10:19
ProgrammerWPF31-Aug-09 10:19 
GeneralRe: Dynamic enumlist Pin
Not Active31-Aug-09 10:44
mentorNot Active31-Aug-09 10:44 
GeneralRe: Dynamic enumlist Pin
Pete O'Hanlon31-Aug-09 10:49
mvePete O'Hanlon31-Aug-09 10:49 
QuestionBinding DataSet to TreeView problem [Question specifically for Josh Smith/Anyone else who can help] Pin
Etienne_12331-Aug-09 7:09
Etienne_12331-Aug-09 7:09 
AnswerRe: Binding DataSet to TreeView problem Pin
Etienne_12331-Aug-09 7:34
Etienne_12331-Aug-09 7:34 
QuestionHow to upload and save images in database Pin
Nekkantidivya29-Aug-09 3:18
Nekkantidivya29-Aug-09 3:18 
AnswerRe: How to upload and save images in database Pin
Eduard Keilholz21-Sep-09 4:43
Eduard Keilholz21-Sep-09 4:43 
Questionlistbox, wpf and getchild Pin
pkboo29-Aug-09 0:31
pkboo29-Aug-09 0:31 
AnswerRe: listbox, wpf and getchild Pin
Pete O'Hanlon30-Aug-09 11:14
mvePete O'Hanlon30-Aug-09 11:14 

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.