优化更新代码,添加界面功能并整合
This commit is contained in:
22
WPFluent/Converters/RightSplitThicknessConverter.cs
Normal file
22
WPFluent/Converters/RightSplitThicknessConverter.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
|
||||
|
||||
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(); }
|
||||
}
|
||||
Reference in New Issue
Block a user