I'm using MVVM in my WPF application.
I have a Window that has a view inside it. In that view a value can be changed and I will bind it to a TextBox in my main Window:
<TextBox
Text="{Binding Path=myViewModel.MyValue">
</TextBox>
Now I would need to bind this myViewModel.MyValue to a property inside my main window view model, so that I can use it to perform a filter in a collection.
Can I use a Setter or any other thing that sets the value of my MainViewModel.Property whenever the myViewModel.MyValue changes?
If so, how can I do it?