fix StringNullOrEmptyToVisibilityConverter has no 0 parameter constructor

This commit is contained in:
renzhn 2015-08-27 19:57:54 +08:00
parent bc86c9b57d
commit 9ce239dedb

View File

@ -8,6 +8,8 @@ namespace Wox.Converters
{
public class StringNullOrEmptyToVisibilityConverter : ConvertorBase<StringNullOrEmptyToVisibilityConverter>
{
public StringNullOrEmptyToVisibilityConverter() { }
public override object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
return string.IsNullOrEmpty(value as string) ? Visibility.Collapsed : Visibility.Visible;