mirror of https://github.com/AMT-Cheif/Stylet.git
BoolToVisibilityConverter returns null if input isn't a Visbility
This commit is contained in:
parent
ae371cc42f
commit
66fdec28f8
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue