我想将 MyEnum 的具体值作为 GetValues 方法的参数从 MyItemSourceProvider 传递。请问怎么写?
<ObjectDataProvider MethodName="GetValues" ObjectType="{x:Type local:MyItemSourceProvider}">
<ObjectDataProvider.MethodParameters>
<!-- ENUM value (e.g. MyEnum.Record1) -->
</ObjectDataProvider.MethodParameters>
</ObjectDataProvider>
方法:
public System.Collections.IEnumerable GetValues(MyEnum key) {}
public enum MyEnum {Record1, ...}