I
Integrater
Guest
Sorry if the title is awkward, it's tricky for me to word this problem concisely.
In my view model I have three bools that are two-way bound to three radio buttons, here is one of them, the other two are identical but with different names:
private bool _calcNumsOff;
public bool CalcNumsOff
{
get { return _calcNumsOff; }
set
{
_calcNumsOff = value;
OnPropertyChanged("CalcNumsOff");
}
}
On my main window I have a TextBox and when the radio-buttons are changed I would like the TextBox's TextChanged event to fire, but keep the text that it contains. So I would imagine the simplest way to do that is just send the TextBox the content of its own Text property with something like: InputTextBox.Text = InputTextBox.Text;
I assume this would be done in the property's setter? My main issue though is the scoping, the class can't see the TextBox, so maybe I'm going about this all wrong?
Continue reading...
In my view model I have three bools that are two-way bound to three radio buttons, here is one of them, the other two are identical but with different names:
private bool _calcNumsOff;
public bool CalcNumsOff
{
get { return _calcNumsOff; }
set
{
_calcNumsOff = value;
OnPropertyChanged("CalcNumsOff");
}
}
On my main window I have a TextBox and when the radio-buttons are changed I would like the TextBox's TextChanged event to fire, but keep the text that it contains. So I would imagine the simplest way to do that is just send the TextBox the content of its own Text property with something like: InputTextBox.Text = InputTextBox.Text;
I assume this would be done in the property's setter? My main issue though is the scoping, the class can't see the TextBox, so maybe I'm going about this all wrong?
Continue reading...