开发者

Problem rendering Custom "MenuItem"

Here's my problem:

when i open my program in my computer the option menu is rendered like this: http:/开发者_StackOverflow中文版/img811.imageshack.us/img811/1623/prob1.jpg

but when i open my program with my father's computer and my brother computer the MenuItem renders out like this: http://img203.imageshack.us/img203/3451/prob2l.jpg

as you can see in my computer it renders the text in black and in others computer renders the text in white.

Here's my code:

<Separator>
    <Separator.Template>
        <ControlTemplate>
            <Border CornerRadius="2" Padding="5" Background="PaleGoldenrod" BorderBrush="Black" BorderThickness="1">
                <TextBlock Text="Global Options (Are Saved):" FontWeight="Bold" />
            </Border>
        </ControlTemplate>
    </Separator.Template>
</Separator>


Have you tried setting the texblock foreground to Black? (Perhaps Vista / 7 has Black as default while XP does not, forcing it to be black might help)

<TextBlock Text="Global Options (Are Saved):" FontWeight="Bold" Foreground="Black" />
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜