init
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Windows.Data;
|
||||
//FB 44625 Converter used in Xamal to Dectect Yes/No/NotSet
|
||||
namespace DTS.Common.Converters
|
||||
{
|
||||
public class YesNoRadioButtonsConventer : IValueConverter
|
||||
{
|
||||
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
|
||||
{
|
||||
return parameter.ToString() == value.ToString();
|
||||
}
|
||||
|
||||
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
|
||||
{
|
||||
return (bool)value ? parameter : Binding.DoNothing;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user