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