WpfApplication4/L2BConverer.cs
(完整代码) 772Busing System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
namespace WpfApplication4
{
class L2BConverer : IValueConverter
{
public object Convert(object value,Type targetType,object parameter,CultureInfo culture)
{
//获取输入值并强制转换
int textLength = (int)value;
//三目运算符:判断数值长度是否>6 ? 是返回true : 否返回false
return textLength > 6 ? true : false;
}
public object ConvertBack(object value,Type targetType,object parameter,CultureInfo culture)
{
throw new NotImplementedException();
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
