public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { ClipBoardType t = (ClipBoardType)value; switch (t) { case ClipBoardType.FileSystem: return(null); case ClipBoardType.Image: return("\xe61e"); case ClipBoardType.Text: return("\xe649"); default: return(null); } }
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { ClipBoardType t = (ClipBoardType)value; switch (t) { case ClipBoardType.FileSystem: return(Visibility.Hidden); case ClipBoardType.Image: return(Visibility.Visible); case ClipBoardType.Text: return(Visibility.Visible); default: return(Visibility.Hidden); } }
public ClipBoradBindModel(string detial, ClipBoardType type) { Type = type; _detial = detial; this._createTime = DateTime.Now; }