Click here to Skip to main content
15,889,116 members
Home / Discussions / WPF
   

WPF

 
QuestionWPF Combobox databinding Pin
babongita5-Mar-09 3:37
babongita5-Mar-09 3:37 
AnswerRe: WPF Combobox databinding Pin
ABitSmart5-Mar-09 4:07
ABitSmart5-Mar-09 4:07 
GeneralRe: WPF Combobox databinding Pin
babongita5-Mar-09 5:20
babongita5-Mar-09 5:20 
GeneralRe: WPF Combobox databinding Pin
ABitSmart5-Mar-09 5:23
ABitSmart5-Mar-09 5:23 
GeneralRe: WPF Combobox databinding Pin
babongita5-Mar-09 5:40
babongita5-Mar-09 5:40 
GeneralRe: WPF Combobox databinding Pin
ABitSmart5-Mar-09 5:57
ABitSmart5-Mar-09 5:57 
GeneralRe: WPF Combobox databinding Pin
babongita5-Mar-09 6:11
babongita5-Mar-09 6:11 
GeneralRe: WPF Combobox databinding Pin
ABitSmart5-Mar-09 16:47
ABitSmart5-Mar-09 16:47 
GeneralRe: WPF Combobox databinding Pin
babongita6-Mar-09 2:26
babongita6-Mar-09 2:26 
GeneralRe: WPF Combobox databinding Pin
ABitSmart6-Mar-09 3:15
ABitSmart6-Mar-09 3:15 
babongita wrote:
SelectedValue="{Binding SelectedParameter.Name, Mode=TwoWay}"

and
babongita wrote:
<TextBlock Text="{Binding ParameterDisplayName}"/>

I guess both of these are bound to the Parameter object. Was just curious to know if these are two different properties or a typo ? Cause your textbox is bound to a property names "ScreenLabel", which I think is the display label.


babongita wrote:
Then the Parameter class looks like the following
has a Name (of Type ParameterName)

In your description, you say, Name is of type "ParameterName". So then, I suspect this,
SelectedValue="{Binding SelectedParameter.Name, Mode=TwoWay}"

Here you are binding to SelectedParameter.Name where Name is of type ParamterName. The binding will fail since it is not binding to a string type.

If you open your output window in the solution explorer (assuming you are using VS) you would be able to see binding failure messages logged.
GeneralRe: WPF Combobox databinding Pin
babongita6-Mar-09 3:32
babongita6-Mar-09 3:32 
GeneralRe: WPF Combobox databinding Pin
ABitSmart6-Mar-09 4:55
ABitSmart6-Mar-09 4:55 
GeneralRe: WPF Combobox databinding Pin
babongita6-Mar-09 5:08
babongita6-Mar-09 5:08 
GeneralRe: WPF Combobox databinding Pin
babongita6-Mar-09 5:10
babongita6-Mar-09 5:10 
GeneralRe: WPF Combobox databinding Pin
ABitSmart6-Mar-09 5:24
ABitSmart6-Mar-09 5:24 
GeneralRe: WPF Combobox databinding Pin
babongita6-Mar-09 5:29
babongita6-Mar-09 5:29 
GeneralRe: WPF Combobox databinding Pin
ABitSmart6-Mar-09 5:59
ABitSmart6-Mar-09 5:59 
GeneralRe: WPF Combobox databinding [modified] Pin
babongita6-Mar-09 6:38
babongita6-Mar-09 6:38 
GeneralRe: WPF Combobox databinding Pin
ABitSmart6-Mar-09 6:41
ABitSmart6-Mar-09 6:41 
GeneralRe: WPF Combobox databinding Pin
babongita6-Mar-09 6:49
babongita6-Mar-09 6:49 
GeneralRe: WPF Combobox databinding Pin
ABitSmart6-Mar-09 6:56
ABitSmart6-Mar-09 6:56 
GeneralRe: WPF Combobox databinding Pin
babongita6-Mar-09 7:02
babongita6-Mar-09 7:02 
GeneralRe: WPF Combobox databinding Pin
babongita6-Mar-09 9:03
babongita6-Mar-09 9:03 
GeneralRe: WPF Combobox databinding Pin
ABitSmart6-Mar-09 17:47
ABitSmart6-Mar-09 17:47 
GeneralRe: WPF Combobox databinding Pin
ABitSmart6-Mar-09 3:05
ABitSmart6-Mar-09 3:05 

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.