我可以这样写
<TextBox FontWeight="ExtraBold">
</TextBox>
我可以这样写
<TextBox>
<TextBox.Style>
<Style>
<Setter Property="TextElement.FontWeight" Value="ExtraBold"/>
</Style>
</TextBox.Style>
但我不了解文本框interracts有。. 例如文本块具有内联的财产。 和MSDN说下面的"东西,RichEditBox和文本不支持案文对象模型,该模型的基础上。." 谁知道它是如何工作的?!
public static readonly DependencyProperty FontWeightProperty = TextElement.FontWeightProperty.AddOwner(...);
在控制。cs。 看到的 参考来源.