Click here to Skip to main content
15,885,167 members
Home / Discussions / WPF
   

WPF

 
QuestionAdding a TabItem to an existing derived TabControl in WPF Pin
Richard Dutton15-Nov-09 23:39
Richard Dutton15-Nov-09 23:39 
AnswerRe: Adding a TabItem to an existing derived TabControl in WPF Pin
Mark Salsbery16-Nov-09 7:40
Mark Salsbery16-Nov-09 7:40 
GeneralRe: Adding a TabItem to an existing derived TabControl in WPF Pin
Richard Dutton16-Nov-09 21:25
Richard Dutton16-Nov-09 21:25 
GeneralRe: Adding a TabItem to an existing derived TabControl in WPF Pin
Mark Salsbery17-Nov-09 12:17
Mark Salsbery17-Nov-09 12:17 
QuestionWCF Pin
sris 42615-Nov-09 23:23
sris 42615-Nov-09 23:23 
AnswerRe: WCF Pin
Kevin McFarlane16-Nov-09 7:29
Kevin McFarlane16-Nov-09 7:29 
QuestionEquivalent binding in code? Pin
Richard Dutton15-Nov-09 22:58
Richard Dutton15-Nov-09 22:58 
AnswerRe: Equivalent binding in code? Pin
Gideon Engelberth16-Nov-09 4:56
Gideon Engelberth16-Nov-09 4:56 
I think the problem comes from the fact that you are setting the binding before you have put the helpEditor into the visual tree. I think you will need to rearrange into something like:

TabControl tc = /* whatever tab control that will host the items */;
TabItem ti = new TabItem();
ti.Header = "Notes";
helpEditor = new ScadaAlarmViewer.HelpEditor();
Binding idBinding = new Binding("Id");
idBinding.RelativeSource = new RelativeSource(RelativeSourceMode.FindAncestor, typeof(MyStuff.Symbol), 1);

//do these before setting the binding
ti.Content = helpEditor;
tc.Items.Add(ti);

//now that helpEditor is part of a visual tree with a Symbol ancestor, set the binding.
helpEditor.SetBinding(MyStuff.HelpEditor.PlantIdProperty, idBinding);

QuestionHow to down the Excel file from Application folder in WPF with C# Pin
ChandrakanthGaddam15-Nov-09 20:03
ChandrakanthGaddam15-Nov-09 20:03 
AnswerRe: How to down the Excel file from Application folder in WPF with C# Pin
Christian Graus15-Nov-09 20:52
protectorChristian Graus15-Nov-09 20:52 
GeneralRe: How to down the Excel file from Application folder in WPF with C# Pin
ChandrakanthGaddam15-Nov-09 23:56
ChandrakanthGaddam15-Nov-09 23:56 
QuestionSilverLight Server ? Pin
Mohammad Dayyan15-Nov-09 0:21
Mohammad Dayyan15-Nov-09 0:21 
AnswerRe: SilverLight Server ? Pin
Mark Salsbery15-Nov-09 5:54
Mark Salsbery15-Nov-09 5:54 
QuestionMenu in WPF ? Pin
Mohammad Dayyan14-Nov-09 0:55
Mohammad Dayyan14-Nov-09 0:55 
AnswerRe: Menu in WPF ? Pin
Richard MacCutchan14-Nov-09 1:21
mveRichard MacCutchan14-Nov-09 1:21 
GeneralRe: Menu in WPF ? Pin
Mohammad Dayyan14-Nov-09 1:38
Mohammad Dayyan14-Nov-09 1:38 
GeneralRe: Menu in WPF ? Pin
Richard MacCutchan14-Nov-09 2:12
mveRichard MacCutchan14-Nov-09 2:12 
GeneralRe: Menu in WPF ? Pin
Christian Graus15-Nov-09 19:45
protectorChristian Graus15-Nov-09 19:45 
GeneralRe: Menu in WPF ? Pin
Mohammad Dayyan15-Nov-09 23:44
Mohammad Dayyan15-Nov-09 23:44 
AnswerRe: Menu in WPF ? Pin
Mark Salsbery14-Nov-09 10:34
Mark Salsbery14-Nov-09 10:34 
QuestionSkinnable silverlight applications Pin
Eduard Keilholz13-Nov-09 11:54
Eduard Keilholz13-Nov-09 11:54 
AnswerRe: Skinnable silverlight applications Pin
Mark Salsbery15-Nov-09 6:03
Mark Salsbery15-Nov-09 6:03 
GeneralRe: Skinnable silverlight applications Pin
Eduard Keilholz15-Nov-09 10:36
Eduard Keilholz15-Nov-09 10:36 
Questionrequest error Pin
Tauseef A13-Nov-09 7:17
Tauseef A13-Nov-09 7:17 
AnswerRe: request error Pin
Mark Salsbery13-Nov-09 7:56
Mark Salsbery13-Nov-09 7:56 

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.