mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-18 06:29:44 +08:00
fix StringNullOrEmptyToVisibilityConverter has no 0 parameter constructor
This commit is contained in:
parent
bc86c9b57d
commit
9ce239dedb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user