1
如何將自定義對象存儲在WPF DataGrid單元格中?例如,我想存儲這樣的內容: http://yfrog.com/0583557380j。 。如何將自定義對象存儲在WPF DataGrid單元格中?
我沒有想法:(謝謝
如何將自定義對象存儲在WPF DataGrid單元格中?例如,我想存儲這樣的內容: http://yfrog.com/0583557380j。 。如何將自定義對象存儲在WPF DataGrid單元格中?
我沒有想法:(謝謝
<DataGrid ItemsSource="{Binding}" AutoGenerateColumns="False" >
<DataGrid.Columns>
<DataGridTemplateColumn Header="Custom Column">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<!-- whatever you like in here -->
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridtemplateColumn>
</DataGrid.Columns>
</DataGrid>
謝謝,這是所有我需要:)。你能幫助我解決另一個問題嗎? 如何設置字體顏色和整數值之間的依賴關係?例如,對於值「4」,顏色爲綠色,值爲「-3」 - 紅色。 *不知道* – Dmitriy 2010-08-27 12:29:31
@Dmitriy:沒問題。如果您有其他問題,請隨時爲其創建新主題,而不是試圖在此處解決。 – 2010-08-27 13:13:12
http://stackoverflow.com/questions/4635983/wpf-plugin-creating-ui-strategy – Dmitriy 2011-01-08 20:46:51