Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 WPF 如何将IsEnableda 的属性绑定Button到我的网格的选定行的DataGridCheckBoxColumn值?
IsEnabled
Button
DataGridCheckBoxColumn
因此,每当我的网格中选定的行发生更改时,按钮将根据其中一列的值启用/禁用。
按钮看起来像这样
<Button Content="Update" IsEnabled="{Binding ElementName=grid, Path=SelectedItem.SomeValue}"/>