23 lines
591 B
C#
23 lines
591 B
C#
|
|
|
|
|
|
using System.Windows.Data;
|
|
|
|
namespace WPFluent.Converters;
|
|
|
|
internal class RightSplitThicknessConverter : IValueConverter
|
|
{
|
|
public object Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
|
|
{
|
|
if(value is not Thickness thickness)
|
|
{
|
|
return default(Thickness);
|
|
}
|
|
|
|
return new Thickness(thickness.Left, thickness.Top, thickness.Right, thickness.Bottom);
|
|
}
|
|
|
|
public object ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture)
|
|
{ throw new NotImplementedException(); }
|
|
}
|