Click here to Skip to main content
15,888,984 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: How to get the return value from a service in silver light Pin
Pete O'Hanlon9-Aug-09 22:20
mvePete O'Hanlon9-Aug-09 22:20 
QuestionHow to save image in a folder in silver light Pin
Nekkantidivya7-Aug-09 19:38
Nekkantidivya7-Aug-09 19:38 
AnswerRe: How to save image in a folder in silver light Pin
Michael Sync8-Aug-09 6:19
Michael Sync8-Aug-09 6:19 
AnswerRe: How to save image in a folder in silver light Pin
Jeremy Likness13-Aug-09 5:34
professionalJeremy Likness13-Aug-09 5:34 
QuestionBinding to a property of the page in XAML Pin
gantww7-Aug-09 15:01
gantww7-Aug-09 15:01 
AnswerRe: Binding to a property of the page in XAML Pin
Michael Sync8-Aug-09 6:15
Michael Sync8-Aug-09 6:15 
GeneralRe: Binding to a property of the page in XAML Pin
gantww10-Aug-09 16:48
gantww10-Aug-09 16:48 
GeneralRe: Binding to a property of the page in XAML Pin
gantww10-Aug-09 17:05
gantww10-Aug-09 17:05 
Ugh. I told you wrong. I forgot I had put some hackish stuff in the code behind that set the ItemsSource.

Here's roughly what I have. It's buried down in one cell of a datagrid that is in a cell of another datagrid on the page.
<ComboBox x:Name="cboTextColor" SelectedItem="{Binding Color}" Grid.Row="2" Grid.Column="1">

<ComboBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<Rectangle Fill="{Binding Color}" Width="25"/>
<TextBlock Text="{Binding ColorName}"/>
</StackPanel>
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>

There is a regular .NET property on the code behind page called ProductColors. It is currently an ObservableCollection<colorentry> (where ColorEntry has an id, a color code, and a description). It seems like I should be able to bind to it by doing something like:
<ComboBox ItemsSource={Binding ProductColors}" />
However, even though the list has two items in it, nothing shows in the drop down.

Does this need to be a dependency property or something for binding to work?
GeneralRe: Binding to a property of the page in XAML Pin
Mark Salsbery11-Aug-09 5:53
Mark Salsbery11-Aug-09 5:53 
QuestionBind variable number of columns in ListView Pin
Jack Valmadre7-Aug-09 12:01
Jack Valmadre7-Aug-09 12:01 
QuestionHow awesome would it be if... Pin
Mike Marynowski7-Aug-09 6:40
professionalMike Marynowski7-Aug-09 6:40 
JokeRe: How awesome would it be if... Pin
Super Lloyd7-Aug-09 15:34
Super Lloyd7-Aug-09 15:34 
GeneralRe: How awesome would it be if... Pin
Mike Marynowski8-Aug-09 4:36
professionalMike Marynowski8-Aug-09 4:36 
GeneralRe: How awesome would it be if... Pin
Pete O'Hanlon8-Aug-09 5:55
mvePete O'Hanlon8-Aug-09 5:55 
GeneralRe: How awesome would it be if... Pin
Mike Marynowski10-Aug-09 1:46
professionalMike Marynowski10-Aug-09 1:46 
GeneralRe: How awesome would it be if... Pin
Pete O'Hanlon10-Aug-09 1:58
mvePete O'Hanlon10-Aug-09 1:58 
GeneralRe: How awesome would it be if... Pin
Mike Marynowski10-Aug-09 2:00
professionalMike Marynowski10-Aug-09 2:00 
GeneralRe: How awesome would it be if... Pin
Michael Sync8-Aug-09 6:11
Michael Sync8-Aug-09 6:11 
GeneralRe: How awesome would it be if... Pin
Mike Marynowski10-Aug-09 1:48
professionalMike Marynowski10-Aug-09 1:48 
GeneralRe: How awesome would it be if... Pin
Super Lloyd8-Aug-09 12:21
Super Lloyd8-Aug-09 12:21 
GeneralRe: How awesome would it be if... Pin
Mike Marynowski10-Aug-09 1:50
professionalMike Marynowski10-Aug-09 1:50 
AnswerRe: How awesome would it be if... Pin
Nader Elshehabi10-Aug-09 2:17
Nader Elshehabi10-Aug-09 2:17 
GeneralRe: How awesome would it be if... Pin
Mike Marynowski10-Aug-09 2:22
professionalMike Marynowski10-Aug-09 2:22 
GeneralRe: How awesome would it be if... Pin
Nader Elshehabi10-Aug-09 2:24
Nader Elshehabi10-Aug-09 2:24 
GeneralRe: How awesome would it be if... Pin
Mike Marynowski10-Aug-09 2:48
professionalMike Marynowski10-Aug-09 2:48 

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.