我想在WPF中传递一个枚举值作为命令参数,使用如下方式:
<Button
x:Name="uxSearchButton"
Command="{Binding Path=SearchMembersCommand}"
CommandParameter="SearchPageType.First"
Content="Search">
</Button>
SearchPageType
是枚举,这是为了知道从哪个按钮调用搜索命令.
这在WPF中是可能的,或者如何将枚举值作为命令参数传递?