Click here to Skip to main content
15,898,134 members
Home / Discussions / WPF
   

WPF

 
QuestionBlinking Pushpin in Bing Map Silverlight control Pin
Majid Shahabfar30-Oct-11 2:26
Majid Shahabfar30-Oct-11 2:26 
QuestionHow to Bind Canvas.Left Property Pin
Turhan Coskun28-Oct-11 3:51
professionalTurhan Coskun28-Oct-11 3:51 
GeneralRe: How to Bind Canvas.Left Property Pin
Turhan Coskun28-Oct-11 4:07
professionalTurhan Coskun28-Oct-11 4:07 
AnswerRe: How to Bind Canvas.Left Property Pin
Turhan Coskun28-Oct-11 10:09
professionalTurhan Coskun28-Oct-11 10:09 
QuestionProblem filtering Data in DomainService query Pin
jadughar28-Oct-11 0:06
jadughar28-Oct-11 0:06 
AnswerRe: Problem filtering Data in DomainService query Pin
jadughar28-Oct-11 3:13
jadughar28-Oct-11 3:13 
QuestionBinding RadTreeView SelectedItem in Code Behind Pin
Kevin Marois27-Oct-11 8:20
professionalKevin Marois27-Oct-11 8:20 
AnswerRe: Binding RadTreeView SelectedItem in Code Behind Pin
SledgeHammer0127-Oct-11 8:40
SledgeHammer0127-Oct-11 8:40 
When you do it in the XAML, you are creating a binding... in your C# code you are just copying the value over one time.

You need to do something like:

Binding binding = new Binding("SelectedItem");

binding.Source = this;
binding.UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged;
binding.Mode = BindingMode.TwoWay

SetBinding(RadTreeView.SelectedItemProperty, binding);

P.S. not sure why you are creating the tree in the code behind, but the above will work. There is probably a much cooler way to do what you are trying. You almost never need to create controls in the code behind.
GeneralRe: Binding RadTreeView SelectedItem in Code Behind Pin
Kevin Marois27-Oct-11 8:43
professionalKevin Marois27-Oct-11 8:43 
AnswerRe: Binding RadTreeView SelectedItem in Code Behind Pin
Mark Salsbery27-Oct-11 8:46
Mark Salsbery27-Oct-11 8:46 
QuestionSetting TextBlock width from code behind Pin
indian14326-Oct-11 7:20
indian14326-Oct-11 7:20 
AnswerRe: Setting TextBlock width from code behind Pin
Mark Salsbery26-Oct-11 7:23
Mark Salsbery26-Oct-11 7:23 
GeneralRe: Setting TextBlock width from code behind Pin
indian14326-Oct-11 7:53
indian14326-Oct-11 7:53 
GeneralRe: Setting TextBlock width from code behind Pin
SledgeHammer0126-Oct-11 8:48
SledgeHammer0126-Oct-11 8:48 
GeneralRe: Setting TextBlock width from code behind Pin
Kim Breugelmans26-Oct-11 10:21
Kim Breugelmans26-Oct-11 10:21 
AnswerRe: Setting TextBlock width from code behind Pin
AspDotNetDev26-Oct-11 10:17
protectorAspDotNetDev26-Oct-11 10:17 
GeneralRe: Setting TextBlock width from code behind Pin
indian14326-Oct-11 12:19
indian14326-Oct-11 12:19 
QuestionSSRS 2008 reports in Silverlight 4 apps Pin
arkiboys26-Oct-11 5:21
arkiboys26-Oct-11 5:21 
AnswerRe: SSRS 2008 reports in Silverlight 4 apps Pin
Mark Salsbery26-Oct-11 5:45
Mark Salsbery26-Oct-11 5:45 
AnswerRe: SSRS 2008 reports in Silverlight 4 apps Pin
Mycroft Holmes26-Oct-11 14:10
professionalMycroft Holmes26-Oct-11 14:10 
GeneralRe: SSRS 2008 reports in Silverlight 4 apps Pin
arkiboys26-Oct-11 23:41
arkiboys26-Oct-11 23:41 
GeneralRe: SSRS 2008 reports in Silverlight 4 apps Pin
Mycroft Holmes27-Oct-11 0:51
professionalMycroft Holmes27-Oct-11 0:51 
GeneralRe: SSRS 2008 reports in Silverlight 4 apps Pin
arkiboys28-Oct-11 4:38
arkiboys28-Oct-11 4:38 
QuestionDisplay list content Pin
columbos1492725-Oct-11 23:13
columbos1492725-Oct-11 23:13 
AnswerRe: Display list content Pin
Pete O'Hanlon25-Oct-11 23:33
mvePete O'Hanlon25-Oct-11 23:33 

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.