aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.UI/Converters/WeatherVisibilityConverter.cs
blob: 5706ecec9eaf82df02463d16253be6edc91d144e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using System;
using System.Globalization;
using System.Windows;
using System.Windows.Data;

namespace MediaBrowser.UI.Converters
{
    public class WeatherVisibilityConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return value == null ? Visibility.Collapsed : Visibility.Visible;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}