20 lines
728 B
C#
20 lines
728 B
C#
|
|
// This Source Code Form is subject to the terms of the MIT License.
|
|||
|
|
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
|
|||
|
|
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
|
|||
|
|
// All Rights Reserved.
|
|||
|
|
|
|||
|
|
namespace WPFluent.Gallery.Helpers;
|
|||
|
|
|
|||
|
|
internal sealed class NullToVisibilityConverter : IValueConverter
|
|||
|
|
{
|
|||
|
|
public object Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
|
|||
|
|
{
|
|||
|
|
return value is null ? Visibility.Collapsed : Visibility.Visible;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public object ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture)
|
|||
|
|
{
|
|||
|
|
throw new NotImplementedException();
|
|||
|
|
}
|
|||
|
|
}
|