【发布时间】:2013-06-13 10:23:32
【问题描述】:
我有使用以下代码从我的 XAML(视图)执行的命令:
<HyperlinkButton Command="{Binding DataContext.HyperlinkGoToCommand, RelativeSource={RelativeSource AncestorType=UserControl}}" CommandParameter="ABCD">
<TextBlock Text="ABCD" TextDecorations="Underline"/></HyperlinkButton>
目前 CommandParameter 作为字符串传递,它工作正常,但我想将 CommandParameter 作为 List (单项通用列表)而不是字符串传递。
【问题讨论】:
-
如果您的命令和通用列表在同一个视图模型中,则根本不需要命令参数。所以请提供更多信息
标签: c# wpf silverlight mvvm