Tagged Questions
1
vote
2answers
30 views
WPF data bind with XML document
So the past year ive been working with android and as some of you might know all static String values in android are saved in the String.xml file.
Now i am currently working on a WPF project and in ...
0
votes
0answers
14 views
SelectionChanged not fire of WPF Editable ComboBox Sometimes
I set Combobox control to editable, but the selectionChanged Event not fire sometimes.My scenario is:
I want to realize Outlook function, In outlook 2010, If Some items are not be indexed, the search ...
0
votes
1answer
33 views
WPF filtering ListBox after ComboBox selected changes c#
I have ComboBox binded to 1 datatable(1 column "Country") and listbox binded to another 1(2 columns "Name", "Country").
How to make listbox filter on selected item in combo box changes?
For example:
...
1
vote
2answers
50 views
Reset combobox selected item on set using MVVM
I am using a ComboBox in my WPF application and following MVVM. There is a list of strings which I want to show in my ComboBox.
XAML:
<ComboBox ItemsSource="{Binding ItemsCollection}" ...
1
vote
0answers
38 views
WPF - need multicolored combobox
I'm trying to create a wpf combobox where certain keywords in the item text are always a different color (eg, phrase "abc" should always be blue, even if it's just a part of a longer word). Ideally, ...
0
votes
1answer
35 views
Binding certain elements from a list to a combobox
I have the following question:
In my view model I have a list with an object that has a property Name and Value, both strings. I want to bind the list to a combo box in my view, but I want to display ...
0
votes
1answer
34 views
WPF combo box text converter when IsEnabled changes
I've to change the Text property of a combo box when IsEnabled sets to false and it can manually selects field from the items source when IsEnabled is true from the same control, is this possible?
...
0
votes
1answer
34 views
WPF - Combobox - Add Item when user enter text in combo
I have a ComboBox binded with an ObservableCollection. How can I do when user enter a text in the ComboBox, if item not in the list, the code automatically add a new item to the list?
<ComboBox ...
0
votes
1answer
17 views
How to add a bitmap Image as Combo Box Item in WPF programmatically?
How do I add a bitmap Image as Combo Box Item in WPF programmatically ?
I am creating ComboBox dynamically as:
private ComboBox CreateSymbolComboBox(List<BitmapImage> images, int ...
1
vote
1answer
38 views
Bind ComboBox to Dictionary and the Selected to the Dictionary Key
How to bind the Selected to Dictionary Key?
The formatting of the Value may change.
Dictionary is char, string
<ComboBox Grid.Row="4" Grid.Column="0" DataContext="{Binding ...
0
votes
0answers
30 views
how to create datagrid dependency property add to ComboBox
How to add DataGrid dependency property add to ComboBox or other controls:
public DataGrid DataGridTemplate
{
get { return (DataGrid)GetValue(DataGridTemplateProperty); }
set { ...
0
votes
1answer
44 views
How to change the CornerRadius of the Combobox WPF
I want to use a ComboBox with different CornerRadius, how can I change that simply? I've tried with Style and ControlTemplate, but without any success.
0
votes
2answers
38 views
Setting combo box foreground color for the disabled state
I want to change color of combo box for diasbled state to more darker one.
Please let me know how do achieve this using triggers or any other way. Thanks !!
1
vote
1answer
43 views
datagrid showing one new row, but not any subsequent
I’ve got a datagrid with one column displaying a combobox. At present the new row is shown underneath existing rows – as expected.
<grid>
<DockPanel Grid.Column="0" Grid.Row="0">
...
0
votes
1answer
52 views
Get current Text of editable ComboBox in .NET 4
in .NET 3.5 I had a implementation which gets the current edited Text of a comboBox like this:
dependencyObject.GetValue(ComboBox.TextProperty);
everything worked fine and the value was the edited ...