In XAML I set up a style that says a button's background is red. I assign it
to a button on my form. When I mouse over it the background turns usual
blue-ish color. Mouse away it goes back to red. However, if I click the
button and mouse away, the colors begin to alternate between red and the
blue. It's a very simple form. Is this a bug in VS 2008 beta 2?

Rich Sienkiewicz
Inflexis Corp.

RE: Button Background in .NET 3.0 by RSienkiewicz

RSienkiewicz
Thu Aug 16 19:44:46 CDT 2007

Never mind, it's by design under Vista. A button that has focus alternates
colors for visual affect. Never noticed it before as the affect is subtle on
normal colored buttons

Rich

"RSienkiewicz" wrote:

> In XAML I set up a style that says a button's background is red. I assign it
> to a button on my form. When I mouse over it the background turns usual
> blue-ish color. Mouse away it goes back to red. However, if I click the
> button and mouse away, the colors begin to alternate between red and the
> blue. It's a very simple form. Is this a bug in VS 2008 beta 2?
>
> Rich Sienkiewicz
> Inflexis Corp.