小编Mar*_*bic的帖子

wpf绑定到索引器

<TextBlock Text="{Binding Path=[0]} />
Run Code Online (Sandbox Code Playgroud)

要么

<TextBlock Text="{Binding Path=[myKey]} />
Run Code Online (Sandbox Code Playgroud)

工作良好.但有没有办法将变量作为索引键传递?

<TextBlock Text="{Binding Path=[{Binding Column.Index}]} />
Run Code Online (Sandbox Code Playgroud)

.net data-binding wpf xaml indexer

14
推荐指数
2
解决办法
7741
查看次数

标签 统计

.net ×1

data-binding ×1

indexer ×1

wpf ×1

xaml ×1