I have a value converter that converts null to Visibility.Collapsed. Now I try to use it in a user control so that the whole control would collapse when it\'s DateContext is nul
In this case, when DataContext is null, binding will use value specified in TargetNullValue property. So simply set TargetNullValue=Collapsed and you're good to go :
Visibility="{Binding TargetNullValue=Collapsed}"
Reference : [How to Set TargetNullValue to Visibility.Collapsed in Binding]