0
我有一列中這個按鈕:在WPF Datagrid的具體取決於列的值更改分配的功能和文本按鈕
<DataGridTemplateColumn>
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<Button Click="UpdateTopic">Update</Button>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
但現在我要求無論是在它的文字和功能應用它根據我的專欄中的值進行更改。我怎樣才能做到這一點?
使用'binding'來更改文本並檢查函數內的列值(或使用'binding')。 – Bolu
顯然,您不能綁定函數。 –