mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-05-02 05:51:28 +08:00
添加项目文件。
This commit is contained in:
23
Util.DiagramDesigner/Converters/TrueToFalseConverter.cs
Normal file
23
Util.DiagramDesigner/Converters/TrueToFalseConverter.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Globalization;
|
||||
using System.Windows.Data;
|
||||
|
||||
namespace Util.DiagramDesigner
|
||||
{
|
||||
/// <summary>
|
||||
/// 这是一个颠倒黑白的世界
|
||||
/// </summary>
|
||||
public sealed class TrueToFalseConverter : IValueConverter
|
||||
{
|
||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
var v = (bool)value;
|
||||
return !v;
|
||||
}
|
||||
|
||||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user