C#TextBox中 hcIconElement设置字体大小
在C#中,TextBox的hc:IconElement的字体大小可以通过修改IconElement的FontSize属性来实现。以下是一个示例代码:
<TextBox Width="200" Height="30">
<TextBox.Resources>
<Style TargetType="hc:IconElement">
<Setter Property="FontSize" Value="20"/>
</Style>
</TextBox.Resources>
<hc:IconElement Glyph=""/>
</TextBox>
在上面的示例中,我们将TextBox的hc:IconElement的FontSize属性设置为20,这将使图标的字体大小为20。你可以根据你的需求调整FontSize的值。
原文地址: https://www.cveoy.top/t/topic/ic95 著作权归作者所有。请勿转载和采集!