How to set Visibility of Label which is bound to Textbox?
问题 I have three TEXTBOX which are bound to LABEL. When I type something in TEXTBOX then TextBox text value is set to Label. Problem is i want to set Visiblity of LABEL to COLLAPSED when text box is blank and vice versa . how to do it using Visibility Convert in WPF? in .XAML file: <TextBox Name="txtEmail1" Grid.Column="1" Grid.Row="0" Text="Email" HorizontalAlignment="Stretch" Margin="2" VerticalAlignment="Stretch"/> <TextBox Name="txtEmail2" Grid.Column="1" Grid.Row="0" Text="Email2" Visibility