I have two converters, one sets the control visibility to Hidden if the text is null. The other converts an int into a string. I’m trying to use them both below, I want to make the DockPanel Hidden if tbDisposition.Text is null, but my DockPanel binding is a bit off.
<DockPanel Visibility="{Binding Path=tbDisposition.Text, Converter={StaticResource cIsVisible}}">
<TextBlock Text="Disposition: "/>
<TextBlock Name="tbDisposition" Text="{Binding Path=SessionEvent.DispositionID, Converter={BLL:CodeMarkupExtension}}" Foreground="Blue" />
</DockPanel>
You need to use ElementName: