I would like to Hide/ Display text in a TextBlock depending on the Checked Status of a Radio Button. But I cannot get it to work. Any advice is welcome.
Radio Button Code:
Text Block Code
Error is a the ElementName.
Radio Button Code:
VB.NET:
<StackPanel Grid.Column="0" Grid.Row="0" Margin="8,0,0,5">
<RadioButton Content="mA to PV"
GroupName="select_conversion_type"
x:Name="mA_to_PV_Radio_Button"
Click="MA_to_PV_Radio_Button_Click"
Cursor="Hand"/>
</StackPanel>
Text Block Code
VB.NET:
<
<TextBlock Text="Text 01"
FontSize="12"
TextWrapping="Wrap"
Margin="5, 0, 0, 0"
Visibility="{Binding
➥ElementName=mA_to_PV_Radio_Button, Path=mA_to_PV_Radio_Button.IsChecked}"/>
Error is a the ElementName.
Last edited: