56.4 F
Los Angeles
Saturday, April 20, 2024

Trump Lawyer Resigns One Day Before Trial To Begin

Joseph Tacopina has filed with the courts that he will not represent Donald J. Trump. The E. Jean Carroll civil case is schedule to begin Tuesday January 16,...

Judge Lewis A. Kaplan Issues Order RE Postponement

On May 9, 2023, a jury found Donald J. Trump liable for sexual assault and defamation. The jury awarded Ms. Carroll $5 million in damages. Seven months ago,...

ASUS Announces 2023 Vivobook Classic Series

On April 7, 2023, ASUS introduced five new models in the 2023 Vivobook Classic series of laptops. The top laptops in the series use the 13th Gen Intel® Core™...
StaffIncremental BloggerUpdate on Vista issues with WPF apps

Update on Vista issues with WPF apps

I have a better understanding of some of the issues I’ve been experiencing with WPF on Vista. First, it appears that the display beta drivers definitely have an influence on the repaint problem I was seeing. In fact, I’ve since discovered that most of the time I don’t see it occur and it seems OK on other Vista machines.

In terms of the menus, here’s what I’m seeing. On Vista, submenu items appear to be inheriting the parent menu item’s Foreground color. In XP, on the other hand, the Foreground color does not get inheritied. I think it’s correct on XP. Compare this to the Background color which doesn’t get inherited in either XP nor Vista.

You can create a menu with submenu items in Microsoft Expression Blend and change the parent menu item’s Foreground color to see the submenu items change in real-time. Notice, again, that changing the parent’s Background color has no affect on the background colors of the child menu items.

I wrote a simple XAML app that shows what I’m seeing in Vista (with and without Glass):

MenuTestVista.png

and now in XP:

MenuTestXP.png

In the dropdown menu the menu items should not be red (I think), but they are in Vista.

I may have something goofy in my Vista installations, so here’s the test project I created and a sample app called MenuTest. If you want to give it a try on your Vista RTM machine, let me know what you see.

Here’s the XAML I’m using for the menu:

<Menu>
<MenuItem Header=”File” Foreground=”Red” Background=”Pink”>
<MenuItem Header=”Item 1″></MenuItem>
<MenuItem Header=”Item 2″></MenuItem>
<MenuItem Header=”Item 3″></MenuItem>
<MenuItem Header=”Item 4″></MenuItem>
</MenuItem>
</Menu>

Loren
Lorenhttp://www.lorenheiny.com
Loren Heiny (1961 - 2010) was a software developer and author of several computer language textbooks. He graduated from Arizona State University in computer science. His first love was robotics.

Latest news

Related news