在Wixsharp中更改横幅文本的颜色

时间:2017-02-20 16:20:58

标签: wixsharp

使用默认的WiXUI_Minimal时是否可以更改横幅中显示的文本的颜色,还是必须添加自定义对话框?

1 个答案:

答案 0 :(得分:0)

我设法解决了这个问题。

SELECT   type, name, line, text 
   FROM  all_source 
   WHERE type = 'PACKAGE BODY'
     AND name like 'P%' 
     AND UPPER(text) like '%' || p_table_or_view_name || '%'
   ORDER BY name, line;

...

project.BannerImage = "black_banner.jpg";
project.LocalizationFile = "default.wxs";
project.WixSourceGenerated += Project_WixSourceGenerated;

然后我将其添加到文件default.wxs

private static void Project_WixSourceGenerated(XDocument document)
{
    var product = document.Select("Wix/Product");

    var ui = product.AddElement("UI");

    // Banner Title
    ui.Add(new XElement("TextStyle",
        new XAttribute("Id", "White12"),
        new XAttribute("FaceName", "Tahoma"),
        new XAttribute("Size", "12"),
        new XAttribute("Red", "255"),
        new XAttribute("Green", "255"),
        new XAttribute("Blue", "255")));

    // Banner description
    ui.Add(new XElement("TextStyle",
        new XAttribute("Id", "White8"),
        new XAttribute("FaceName", "Tahoma"),
        new XAttribute("Size", "8"),
        new XAttribute("Red", "255"),
        new XAttribute("Green", "255"),
        new XAttribute("Blue", "255")));
}