aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.UI/Converters/WeatherVisibilityConverter.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.UI/Converters/WeatherVisibilityConverter.cs')
-rw-r--r--MediaBrowser.UI/Converters/WeatherVisibilityConverter.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/MediaBrowser.UI/Converters/WeatherVisibilityConverter.cs b/MediaBrowser.UI/Converters/WeatherVisibilityConverter.cs
new file mode 100644
index 000000000..5706ecec9
--- /dev/null
+++ b/MediaBrowser.UI/Converters/WeatherVisibilityConverter.cs
@@ -0,0 +1,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();
+ }
+ }
+}