Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

WPF TextBlock Repaint Issue?

0 views
Skip to first unread message

jpuopolo

unread,
Dec 8, 2007, 8:56:45 PM12/8/07
to
All:

I have a pretty simple test Windows Presentation Foundation (WPF)
application - a Window with a dark blue background. On the Window, I
place a TextBlock with Arial white bold font...

When I click on the TextBlock, I generate a random string and place it
in the TextBlock, e.g., MyTextBlock.Text = newText;

For some reason, the TextBlock does not always repaint cleanly - there
is sometime "cruft" left over from whatever text was previously in the
text field. I've tried explicitly setting the TextBlock's background
as well - no effect.

Also, when I resize the (parent) window, there is sometime "holes"
left in the background.

Could this be some sort of weird video card issue? I have a pretty new
DELL D620 running Windows XP and the new (released) Visual Studio 2008
bits....

Thoughts?

Thanks,
John

0 new messages