xaml-sdk/ScheduleView/AgendaViewDefinition/ViewDefinitionToVisibilityC...

25 строки
691 B
C#

using System;
using System.Windows;
using System.Windows.Data;
namespace AgendaViewDefinition
{
public class AgendaViewDefinitionToVisibilityConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
if (value.ToString().Equals("Agenda"))
{
return Visibility.Visible;
}
return Visibility.Collapsed;
}
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
throw new NotImplementedException();
}
}
}