you dont want to do it with the script... it would be better if you do it with the xml... though you could do some xml work with the script to edit it before load...
anyway here is the code to do it:
code:
<Window Id="WindowName" Version="1">
[...]
<WindowTmpl>
<BackGroundColor>
<Red>255</Red>
<Green>0</Green>
<Blue>0</Blue>
<Alpha>255</Alpha>
</BackGroundColor>
</WindowTmpl>
[...]
</Window>
that should make the window red...
also you can make a Figure Element span the whole window and make that a color...
code:
<Element xsi:type="FigureElement" Id="RectMiddleColor">
<Position Top="-1" Left="-1" Width="202" Height="202"/>
<Figure><RoundRect><Radius>0</Radius></RoundRect></Figure>
<Fill>
<PlainColor>
<Red>255</Red>
<Green>0</Green>
<Blue>0</Blue>
<Alpha>255</Alpha>
</PlainColor>
</Fill>
</Element>
that will make the window red for a 200x200 window
I hope this is what you wanted...
please tell me if you need the code to edit the xml before loading the window... and i will try my best for you