N
N
Nikita2017-06-09 10:06:21
.NET
Nikita, 2017-06-09 10:06:21

How to change user controls when changing value in ComboBox?

I have a UserControl which contains a combobox
Example of a combobox.

<ComboBox Name="cbType"
                  ItemsSource="{Binding TriggerScheduler}"
                  SelectedValue="{Binding Plan.Scheduler, Mode=TwoWay}">

I need to change the components in the UserControl when changing the value in the combobox.
Example: With the first value in the combobox, I should have a Textbox on my UserControl. The second value is 2 checkboxes and 2 textboxes. How can this be implemented in the ViewModel without doing View processing?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question