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

WPF

 
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 
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 
If you are trying to size to content, don't set the width manually and the control will auto-size. There is a lot more to auto-sizing then just the string length. What about font, font size, font style, fixed width vs. true type, etc?

EDIT: since you mentioned View Model, I assume you are using MVVM. The VM doesn't have access to the View unless you passed it in to the VM using various methods, but thats kind of defeating the whole point.
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 
AnswerRe: Display list content Pin
Member 103390726-Oct-11 3:22
Member 103390726-Oct-11 3:22 
GeneralRe: Display list content Pin
Member 103390726-Oct-11 4:24
Member 103390726-Oct-11 4:24 
GeneralRe: Display list content Pin
Member 103390726-Oct-11 5:02
Member 103390726-Oct-11 5:02 
GeneralRe: Display list content Pin
SledgeHammer0126-Oct-11 8:46
SledgeHammer0126-Oct-11 8:46 
SuggestionString Formatting in XALM, Silverlight Pin
chrisndirangu25-Oct-11 21:30
chrisndirangu25-Oct-11 21:30 
GeneralRe: String Formatting in XALM, Silverlight Pin
Mycroft Holmes25-Oct-11 21:39
professionalMycroft Holmes25-Oct-11 21:39 

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.