跳到主要内容

github/tai

公开

Tai · Windows 软件与网站使用时长统计。上游 Planshit/Tai 的源码镜像,非灵栈原创;MIT 许可。来源:https://github.com/Planshit/Tai 。本次为手动同步,暂不提供安装包。

浏览文件

ToStringConverter.cs

25 行 · 690 B历史下载
1using System;
2using System.Collections.Generic;
3using System.Globalization;
4using System.Linq;
5using System.Text;
6using System.Threading.Tasks;
7using System.Windows.Data;
8using System.Windows.Media;
9
10namespace UI.Controls.Converters
11{
12 [ValueConversion(typeof(object), typeof(string))]
13 public class ToStringConverter : IValueConverter
14 {
15 public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
16 {
17 return value.ToString();
18 }
19
20 public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
21 {
22 throw new NotImplementedException();
23 }
24 }
25}