BoolToVisibilityConverter returns null if input isn't a Visbility

This commit is contained in:
Antony Male 2014-04-15 13:05:18 +01:00
parent ae371cc42f
commit 66fdec28f8
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ namespace Stylet.Xaml
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
if (!(value is Visibility))
return false;
return null;
var vis = (Visibility)value;