增加系统预设渐变背景

This commit is contained in:
liufei
2022-05-10 15:33:06 +08:00
parent 2d66ccf61b
commit e578fbbb9b
11 changed files with 368 additions and 52 deletions

View File

@@ -0,0 +1,33 @@
using GeekDesk.Constant;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
namespace GeekDesk.Converts
{
class StringAppendConvert : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value == null) return null;
if (parameter == null)
{
return value.ToString();
} else
{
string val = value.ToString();
string param = parameter.ToString();
return param.Replace("{}", val);
}
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
}