优化更新代码,添加界面功能并整合
This commit is contained in:
19
WPFluent/Converters/StringIsEmptyConverter.cs
Normal file
19
WPFluent/Converters/StringIsEmptyConverter.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Windows.Data;
|
||||
|
||||
|
||||
namespace WPFluent.Converters;
|
||||
|
||||
/// <summary>
|
||||
/// 判断值是否为空
|
||||
/// </summary>
|
||||
public class StringIsEmptyConverter : IValueConverter
|
||||
{
|
||||
#region IValueConverter 成员
|
||||
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
|
||||
{ return string.IsNullOrEmpty(System.Convert.ToString(value)); }
|
||||
|
||||
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
|
||||
{ return null; }
|
||||
#endregion
|
||||
}
|
||||
Reference in New Issue
Block a user