WPF TextBox.Text with MultiBinding
问题 I've got Custom Control with a TextBox in the default Template. The Custom Control has these 2 dependency properties (among others): SelectedValue, NullText (text to appear in the TextBox when nothing is selected and the value is provided) I'd like to set the TextBox.Text with the NullText value when the SelectedValue null is and the NullText not null is. <TextBox.Text> <MultiBinding Converter="{StaticResource myConverter}"> <Binding RelativeSource="TemplatedParent" Path="SelectedValue"/>