是否有一种简单的方法可以在其中一个标准UI对话框中更改font colour
和(最好)font type
其中一个字符串Wix
?
我不想将整个对话框源代码复制并粘贴到我的文件中.
例如,在欢迎对话框中,我想保持WelcomeDlgTitle
和WelcomeDlgDescription
相同,只是改变font colour
为白色.
sas*_*ont 24
很容易,你只需要定义一个白色的新TextStyle,例如
<TextStyle Id="White8" FaceName="Tahoma" Size="8" Red="255" Green="255" Blue="255" />
<TextStyle Id="White12" FaceName="Tahoma" Size="12" Red="255" Green="255" Blue="255" />
Run Code Online (Sandbox Code Playgroud)
然后更新要更改的字符串以使用该样式,例如
<String Id="WelcomeDlgDescription">{\White8}The Setup Wizard will install [ProductName] on your computer. Click Next to continue or Cancel to exit the Setup Wizard.</String>
<String Id="WelcomeDlgTitle">{\White12}Welcome to the [ProductName] Setup Wizard</String>
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
9981 次 |
最近记录: |