wpf - MultiBinding to an ObservableCollection -
I am working in a list of ViewModel with wpf and multibinding.
Suppose I have an observation resolution, the same type of view modal is as follows:
code:
public class ShapeVM {color of public color {Get; Set; } Public string name {get; Set; }} OverviewCollection Size = IBM = New Observational Collection (); ShapeVMs.Add (...); ShapeVMs.Add (...); ShapeVMs.Add (...); ShapeVMs.Add (...); ShapeVMs.Add (...); // In the archive size of 5 sizes I see :
& Lt; / UserControl & gt; Is it possible that whenever the chosen color of colored color changes, then the size of the size of the 5 size will automatically change to the selected color of the color box?
If I set the DataContext of UserControl to one size or size, then only the sizes of the same size will change.
However, at the same time I would like to change 5 SPVM, the color of the ColorBox has changed.
Another simple solution is your problem
& lt; Combo box x: name = "cbb" grid. Value = "{binding path = selected collar, element name = clobod}" selected valuepath = "color" />. & Lt; Color box x: name = "clrbox" /> I hope this will help one.
Comments
Post a Comment