ฉันสามารถเขียนเหมือนนี้
<TextBox FontWeight="ExtraBold">
</TextBox>
และฉันสามารถเขียนเหมือนนี้
<TextBox>
<TextBox.Style>
<Style>
<Setter Property="TextElement.FontWeight" Value="ExtraBold"/>
</Style>
</TextBox.Style>
แต่ฉันไม่เข้าใจว่า TextBox interracts กับ TExtElement. ตัวอย่างเช่น TExtBlock มี Inlines ริมทรัพย์ และ MSDN บอกว่าต่อไปนี้"PasswordBox,RichEditBox และ TextBox ไม่สนับสนุนข้อความวัตถุนางแบบนั้นจาก TextElement." ใครจะรู้มั้ยว่ามันทำงานยังไง!
public static readonly DependencyProperty FontWeightProperty = TextElement.FontWeightProperty.AddOwner(...);
ในการควบคุมà™àà§à•à£àà™. เห็น การอ้างอิงแหล่งข่าว.