https://github.com/igorkulman/AutoCompleteBox/blob/master/AutoCompleteBox/AutoCompleteBox.cs
我下载了这个控件,但我无法构建它,
public Func<string, string, bool> SearchFunction
{
get { return (Func<string, string, bool>)GetValue(SearchFunctionProperty); }
set { SetValue(SearchFunctionProperty, value); }
}
当我尝试将 SearchFunction 用作公共时,我收到此错误。当我将其更改为内部时,它正在工作,但这次我无法从我的项目中访问 SearchFunction。
Method 'CodeAutoComplete.AutoCompleteBox.SearchFunction.get()' has a parameter of type
'System.Func<System.String, System.String, System.Boolean>' in its signature. Although
this generic type is not a valid Windows Runtime type, the type or its generic parameters
implement interfaces that are valid Windows Runtime types. Consider changing the type
'System.Func<T1, T2, TResult>' in the method signature. It is not a valid Windows Runtime
parameter type. C:\\..CodeAutoComplete\AutoCompleteBox.cs CodeAutoComplete (Windows 8.1)
我应该怎么办?