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 を public として使用しようとすると、このエラーが発生します。内部として変更すると機能しますが、今回はプロジェクトから 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)
私は何をすべきか?