HandyOrg / HandyControl

Contains some simple and commonly used WPF controls
https://handyorg.github.io/
MIT License
6.18k stars 1.04k forks source link

请问如何修改TextBox 占位符的颜色 #1628

Open budaowengd opened 3 months ago

budaowengd commented 3 months ago

<hc:TextBox Margin="30" Foreground="Crimson" hc:InfoElement.IsReadOnly="True" hc:InfoElement.ShowClearButton="True" hc:InfoElement.Placeholder="111" hc:InfoElement.Title="我title2"/>

我想修改Placeholder的颜色,应该怎么做

Lizhengbo0304 commented 2 months ago

自己重写一下Style,如果想做成通用的,就再添加个附加属性