Answer the question
In order to leave comments, you need to log in
How to set data binding from more than one source?
I managed to bind data to fields, an instance of a class
public MainWindow(){
this._chamber = new CameraFeutron();
this.DataContext = _chamber;
InitializeComponent();
}
<TextBox Text="{Binding current_temperature}" />
<TextBox Text="{Binding current_humidity}" />
<TextBox Text="{Binding set_temperature}" />
<TextBox Text="{Binding set_humidity}" />
<TextBox Text="{Binding Source=Ratronic_communicator, Path=temperature}" />
Answer the question
In order to leave comments, you need to log in
What you want to do is called ViewModel. Put all the necessary properties in one class and bind to them without problems, there will be tons and billions of examples on the Internet at the request of MVVM Example. Here is an example.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question