ここにTextBoxがあります
<TextBox ...>
<TextBox.Text>
<Binding Path="MinStepDiff" UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<local:ImpellerArgsRule IsCanBeZero ="false"/>
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
コンテンツは他のComboBoxに依存しています
<ComboBox ...>
<ComboBoxItem Content="Sample1"/>
<ComboBoxItem Content="Sample2"/>
<ComboBoxItem Content="Sample3"/>
</ComboBox>
Sample1またはが選択されている場合Sample3、TextBoxはにバインドする必要がありますMinStepDiff
が選択されている場合Sample2、TextBoxはその時点でバインドする必要がありMinToleranceます
どちらもオブジェクトのプロパティです。
どうすればいいですか?