I got a TextBox here
<TextBox ...> <TextBox.Text> <Binding Path="MinStepDiff" UpdateSourceTrigger="PropertyChanged"> <Binding.ValidationRules> <local:ImpellerArgsRule IsCanBeZero ="false"/> </Binding.ValidationRules> </Binding> </TextBox.Text> </TextBox> It's Content is rely on other ComboBox
<ComboBox ...> <ComboBoxItem Content="Sample1"/> <ComboBoxItem Content="Sample2"/> <ComboBoxItem Content="Sample3"/> </ComboBox> If Sample1 or Sample3 is chosen, the TextBox should be bind to MinStepDiff
If Sample2 is chosen, the TextBox should be bind to MinTolerance then
Both of them are properties of an object.
How can I do it?