1
我想將datagrid中的FontWeight綁定到代碼中的一個屬性並獲取一個xamlparseexception。這是代碼databinding fontweight silverlight 4
<sdk:DataGridTextColumn
Header="Date"
CellStyle="{StaticResource ListColumnStyle}"
Binding="{Binding Date}"
FontWeight="{Binding StatusToFont}"
IsReadOnly="True"/>
和屬性定義爲
public FontWeight StatusToFont
{
get
{
return FontWeights.SemiBold;
}
}
有人看到任何問題嗎?
感謝
謝謝。那就是訣竅。 – user642770 2011-06-14 12:50:49