Questions tagged [imultivalueconverter]

IMultiValueConverter is an interface defined in Microsoft .NET WPF and used with MultiBinding data binding. Implementors of the interface have the opportunity to compose or convert items from multiple input collections into a single output collection.

The Microsoft .NET WPF MultiBinding object requires that you provide an IMultiValueConverter implementation when specifying multiple input collections in the MultiBinding object. The multivalue converter's job is to decide how to combine the elements from the multiple input collections. The IMultiValueConverter implementation can also filter elements, returning only a subset of the items found in the input collections.

For more details, see the MSDN documentation for IMultiValueConverter

133 questions
0
votes
1 answer

Convert function always have one value DependencyProperty.UnsetValue - WPF

I'm new to WPF. In my application I'm trying to calcualte the datagrid column based on another column and TextBox. it should multiply the two and give the result. For the same I'm using the IMultiValueConverter. I'm in DataGrid the Bindings are as…
Jankhana
  • 953
  • 4
  • 18
  • 29
0
votes
1 answer

How to use an IMultiValueConverter to look up data from a related table

I have a DataGridTemplateColumn in a DataGrid that looks like this:
Robert Harvey
  • 178,213
  • 47
  • 333
  • 501
0
votes
1 answer

wpf update binding property on converter property change

I have a TextBlock which has a Foreground property bound with MultiBinding as following:
0
votes
0 answers

MultiValueConverter not working as expected

I am trying to implement a "dirty flag" of sorts in my WPF Application, and I am running into some problems. I have a data grid, and one of the columns allows users to edit the Value property of an item of a custom Device class. In the future, the…
Cubemaster
  • 507
  • 1
  • 6
  • 20
0
votes
0 answers

Unable to get the correct command parameter in a visual tree when multiple parameters are passed

I am unable to pass the text of textblock tbAge as the second command parameter. Though I am able to pass the first command parameter i.e. the text of tbName. Need to understand what extra i need to add ?.
DotNetSpartan
  • 931
  • 4
  • 20
  • 41
0
votes
3 answers

Multibinding. How to update correct value to source?

My issue is as follows. I have 3 Textboxes bound to 3 fields in a Dataset. TextBox_Rate , TextBox_Hours , TextBox_Salary . What i needed was for TextBox_Rate + TextBox_Hours to be = TextBox_Salary . I found out that this can be achieved by use of a…
GaaTY
  • 118
  • 3
  • 12
0
votes
0 answers

WPF IMultiValueConverter DependencyProperty.UnsetValue

I have several fields which per these fields I want to make some row in list visible or not visible per these fields. I am trying to work with IMultiValueConverter, however, all the values I get are {DependencyProperty.UnsetValue}. I attaching my…
neWork IL
  • 63
  • 5
0
votes
2 answers

Correct way to not implement ConvertBack on a IMultiValueConverter

I have an object that implements IMultiValueConverter. It is used to bind visibility of a column based upon a particular permutation of a specific bool value and a specific enum value, both part of the bound data. The ConvertBack method self…
Adam G
  • 1,283
  • 1
  • 6
  • 15
0
votes
1 answer

WPF: Change Progress-Bar color with IMultiValueConverter

Ok so i have this properties in my View Model: public double Progress { get { return _progress; } set { _progress= value; OnPropertyChanged(); } } public bool IsChecked { get { return _isChecked; } set { …
Dean Movy
  • 139
  • 1
  • 9
0
votes
1 answer

WPF MultiBinding Ellipse Fill

I am not able to get MultiBinding on Ellipse.Fill working correctly. I do have (single) Binding working correctly, plus MultiBinding on Ellipse.Tooltip:
Conrad
  • 2,197
  • 28
  • 53
0
votes
1 answer

Multibinding not working - StrokeThickness of paths is unchanged

I have an ItemsControl with ItemsSource filled by an ObservableCollection of Paths. The Path class that implements INotifyPropertyChanged has a property named StrokeThickness : private double _strokeThickness; public double StrokeThickness { …
user6551609
0
votes
1 answer

MultiValueConverter works with Color property but not with Background property

I have a MultiValueConverter returning one of two SolidColoBrush passed as values[] elements depending on a bool passed as values[] elment as well. All values[] elements are DependencyProperty. The problem is that when I bind a Background property…
0
votes
0 answers

WPF Binding to nullable integer DP

For some reason, the IMultiValueConverter is not setting my property through ConvertBack function. My custom ComboBox XAML looks like this:
Adder
  • 165
  • 1
  • 14
0
votes
2 answers

IMultiValueConverter receives empty string from bound value when used in a DataGridTemplateColumn

I have a nested bunch of objects in an Observable Collection which is bound to a DataGrid. A IMultiValueConverter is used to gather information from two properties; this works when I do so in a DataGridTextColumn, but fails in a…
0
votes
1 answer

C# / WPF - DataGrid - Update Element Color after timeout

I currently use the following method to set the colour of my Row Background. XAML