namespace GDNXFD.Alert.Config.Converters
{
using System;
using System.Windows;
using System.Windows.Data;
///
/// enum to bool converter
///
public class BooleanToRadioButtonConverter : IValueConverter
{
///
/// Convert a travel type to bool.
///
///
///
///
///
///
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
if (value is bool)
{
return !(bool)value;
}
return value;
}
///
/// Convert back
///
///
///
///
///
///
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
if (value is bool)
{
return !(bool)value;
}
return value;
}
}
}