Converters - Explicit interface implementation
This commit is contained in:
parent
a923fe4d83
commit
9f7b6ab74d
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user