1

我在 Windows Phone 7 中遇到灰色过渡帧问题。

我正在使用 Silverlight for Windows Phone 工具包,除了颜色之外,转换工作正常。突然,过渡帧的颜色变成了灰色。就我的应用而言,我将覆盖应用资源,如下所示:

        (App.Current.Resources["PhoneBackgroundBrush"] as SolidColorBrush).Color = Colors.White;
        (App.Current.Resources["PhoneForegroundBrush"] as SolidColorBrush).Color = Colors.Black;

当我不这样做时,如果手机上的主题是深色的,则过渡框是黑色的,如果手机上的主题是白色的,则过渡框是白色的。应该如此。

一旦我设置了资源(背景和前景画笔),如果手机上的主题是深色的,则过渡框变为灰色,如果手机上的主题为白色,则过渡框变为白色。

任何猜测地球上发生了什么?

谢谢

4

1 回答 1

0

OK, I have found what caused this, and it's the most unusual thing. I wasted 4 hours and then realized what was the thing I changed compared to the last version of my app.

I realized that I added the AdDuplex ad control. I have no idea how and why this influences the color of the transition page, but whenever I debug my app using trial mode and display the ad control, the transition page becomes gray. When I am not in trial but "paid" mode, the ad is not visible and the transition page is white.

Removing the AdDuplex control helps. (not such a great solution)

于 2012-11-21T15:26:09.193 回答