19 lines
545 B
C#
19 lines
545 B
C#
|
using System;
|
|||
|
using System.Globalization;
|
|||
|
|
|||
|
namespace CefSharp.MinimalExample.Wpf.Converter
|
|||
|
{
|
|||
|
class EnvironmentConverter : System.Windows.Data.IValueConverter
|
|||
|
{
|
|||
|
public object 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)
|
|||
|
{
|
|||
|
return System.Windows.Data.Binding.DoNothing;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|