Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ComboBox Binding
Message
From
29/03/2008 09:25:24
 
 
To
All
General information
Forum:
ASP.NET
Category:
Windows Presentation Foundation (WPF)
Title:
ComboBox Binding
Miscellaneous
Thread ID:
01306702
Message ID:
01306702
Views:
49
Hi,

Just playing with XAML. I have:
<ComboBox>
   <ListBoxItem Content="Red" Foreground="{Binding Path=Content , RelativeSource={RelativeSource Self}}"/>
    <ListBoxItem Content="Orange" Foreground="{Binding Path=Content , RelativeSource={RelativeSource Self}}"/>
     <ListBoxItem Content="Green" Foreground="{Binding Path=Content , RelativeSource={RelativeSource Self}}"/>
</ComboBox>
which is kinda silly (but neat). But the Foreground color doesn't show up in the ComboBox once an item is selected. Any suggestions?
Next
Reply
Map
View

Click here to load this message in the networking platform