Files
DP44/Common/DTS.Common/Converters/ActiveContentConverter.cs

27 lines
738 B
C#
Raw Normal View History

2026-04-17 14:55:32 -04:00
using System;
using System.Windows.Controls;
using System.Windows.Data;
using DTS.Common.Base;
namespace DTS.Common.Converters
{
public class ActiveContentConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
if (value is ContentControl)
return value;
return Binding.DoNothing;
}
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
if (value is ContentControl)
return value;
return Binding.DoNothing;
}
}
}