selecteditem
What is the simplest way to get the selected text of a combo box containing only text entries?
My WPF ComboBox contains only text entries. The user will select one. What is the simplest way to get the text of the selected ComboBoxItem? Please answer in both C# and Visual Basic. Here is my Combo[详细]
2023-01-16 20:26 分类:问答Why in C# , in the control combobox , i can't change the property SelectedItem?
I have a simple class called Tuple. whi开发者_运维知识库ch looks like this : class tuple { string name;[详细]
2023-01-15 07:12 分类:问答I've got two list but one itemclick method
The problem is that I have two listView but one itemClick method, if I put a switch, the position on one list is the same than the other list... And by example if I want to open a popup on an item in[详细]
2023-01-14 19:15 分类:问答C# WPF treeview filled with recursive built list<> add item at position
Hi I have a TreeView which is filled with a hierarchicaldatatemplate <TreeView Name=\"DokumentBrowser\" ItemTemplate=\"{StaticResource HierachrTree}\"[详细]
2023-01-13 07:49 分类:问答WPF - Combobox SelectedItem not getting set?
I have a Combo开发者_JAVA技巧Box that has its ItemsSource bound to a static List<CustomSettings> of options. The ComboBox is part of a form which is bound to a CustomObject class, and one of the[详细]
2023-01-11 19:29 分类:问答Combobox SelectedItem doesn't update when source changes
I have a viewmodel which implement INotifyPropertyChanged. On this viewModel is a property called SubGroupingView. This property is bound to the selected item of a combo box. When i change the combo b[详细]
2023-01-11 16:47 分类:问答check if a values has been selected from dropdown in c#
I have 3 dropdown boxes (combo box) in asp.net environment. They are all optional开发者_开发技巧, so if a user has selected anything, i am updating database, if nothing has been selected at all, i am[详细]
2023-01-11 13:11 分类:问答How do I bind to different property on ComboBox SelectedItem?
I have a combobox in WPF like this: <ComboBox Text=\"Select 开发者_如何学编程Language...\" IsEditable=\"True\" IsReadOnly=\"True\"[详细]
2023-01-08 18:03 分类:问答Listbox selecteditem problem wpf
I am binding dataview to listbox. How to get the selected item. 开发者_如何学CGeethaThank you for the reply. I got the solution.[详细]
2023-01-07 19:54 分类:问答Object binding to Winforms ComboBox fails when SelectedItem is null
I found a lot of posts that dodge this topic, but none that actually addresses this case. I have a ComboBox bound to a List<State>, where State is a business object that has Abbreviation and Na[详细]
2023-01-07 08:46 分类:问答