Odd Behavior using XNA and XAML in Windows Phone

Just a tip. I am using XNA and XAML in the same page, and I have been watching that:

A Width property of a xaml image doesn’t change after a long time (seconds) after its property of width was changed WHEN I changed it once.

It changes well WHEN I change the value on every update.

So I recommend you If you have odd things like that to:

private double refresh = 0.0;
        private void UpdateAllBarStatus()
        {
            this.WinBar.Percentage = _well * 10 + refresh;
            refresh = refresh == 0.0 ? 0.01 : 0.0;
        }

Odd but it solved the issue.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s