2015-05-15 13:40:44 +03:00
|
|
|
|
using System;
|
|
|
|
|
using System.Windows;
|
|
|
|
|
using System.Windows.Data;
|
|
|
|
|
|
|
|
|
|
namespace AgendaViewDefinition
|
|
|
|
|
{
|
2020-09-24 16:59:02 +03:00
|
|
|
|
public class AgendaViewDefinitionToVisibilityConverter : IValueConverter
|
2015-05-15 13:40:44 +03:00
|
|
|
|
{
|
|
|
|
|
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();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|