09b92eac80
(Code is declared in the MainWindow now)
21 lines
594 B
C#
21 lines
594 B
C#
using System;
|
|
using System.Globalization;
|
|
using System.Windows.Data;
|
|
|
|
namespace CefSharp.MinimalExample.Wpf.Binding
|
|
{
|
|
public class TitleConverter : IValueConverter
|
|
{
|
|
object IValueConverter.Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
|
{
|
|
|
|
return "CefSharp.MinimalExample.Wpf - " + (value ?? "No Title Specified");
|
|
}
|
|
|
|
object IValueConverter.ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
|
{
|
|
return System.Windows.Data.Binding.DoNothing;
|
|
}
|
|
}
|
|
}
|