now you can use ItemsSource on CoverView (for net>=4.5)

This commit is contained in:
NaBian committed 2019-02-13 17:40:47 +08:00
1 parent b179d90aa1
commit 5f299e988e
19 files changed
+375 -201

No files matched your search

@@ -0,0 +1,21 @@
using System;
using System.Globalization;
using System.Windows.Data;
using System.Windows.Media;
using HandyControl.Tools;
namespace HandyControlDemo.Tools.Converter
{
public class String2BrushConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
return value is string str ? ResourceHelper.GetResource<Brush>(str) : default(Brush);
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
}