Loading files
namespace IDE.Controls
{
using System;
using System.Windows;
using System.Windows.Data;
public class WatermarkHelper
{
#region IMultiValueConverter Members
public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
if (values[0] is bool && values[1] is bool)
{
var hasText = !(bool)values[0];
var hasFocus = (bool)values[1];
if (hasFocus || hasText)
return Visibility.Collapsed;
}
return Visibility.Visible;
}
public object[] ConvertBack(object value, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture)
{
throw new NotImplementedException();
}
#endregion
}
}
366e28f22This file is pinned to the selected release. Download the original to open it in your design tool.