I have a problem :-<....I have a class with 20 static members. I need to display all this members into some comboboxes from a table.(So this table's items are comboboxes that all list those 20 members ). my question is...it exist a way to bind my 20 members direct to the comboboxes? Thank in adnave
<ComboBox> <!--- Binding to the static member of DataObject class. local is custom namespace mapping. --> <TextBlock Text ="{Binding Source={x:Static local:DataObject.MyData}}"/> </ComboBox>
You can also combine all your data members to one IEnumerable derived class. Then the ComboBox.ItemsSource to collection object.
Hope this helps. Yiling, MVP(Visual C++)
Marked As Answer byMarco ZhouFriday, August 29, 2008 7:10 AM
I have a simpler way of localizing your app using attached properties. You can see this at: http://ashishkaila.blogspot.com/2010/02/localization-made-easy-in-wpf.html
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.