Converters - Explicit interface implementation

This commit is contained in:
amaitland 2018-02-02 16:53:45 +10:00
parent a923fe4d83
commit 9f7b6ab74d
2 changed files with 4 additions and 4 deletions

View File

@ -6,12 +6,12 @@ namespace CefSharp.MinimalExample.Wpf.Converter
{
public class EnvironmentConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
object IValueConverter.Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
return Environment.Is64BitProcess ? "x64" : "x86";
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
object IValueConverter.ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
return Binding.DoNothing;
}

View File

@ -6,12 +6,12 @@ namespace CefSharp.MinimalExample.Wpf.Converter
{
public class TitleConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
object IValueConverter.Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
return "CefSharp.MinimalExample.Wpf - " + (value ?? "No Title Specified");
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
object IValueConverter.ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
return Binding.DoNothing;
}