Skip to main content

Microsoft Silverlight

Answered Question Cursor, selection, don't show up in controls with a dark backgroundRSS Feed

(0)

Eloff
Eloff

Member

Member

139 points

114 Posts

Cursor, selection, don't show up in controls with a dark background

Edit: The Problem is with the flashing cursor inside the TextBox control (and the selection highlighting in the same control) 

I've heard this actually happens in WPF too, even in applications like Visual Studio, how embarrassing. It shouldn't be up to the application to somehow replace the cursor (which Silverlight doesn't support yet) for dark controls. All that needs to happen is use current cursor when background is lighter than a certain threshold, and a cursor with inverted color when the background is darker than a certain threshold.

The mouse pointer is fine, it is white with a black border, which works anywhere. But the I-beam cursor is black, and vanishes against a dark background.

The simplest solution is just give it a white border, it will look the same on white, but at least on black it will be visible. No programming changes required at all.

fullsailrick
fullsail...

Contributor

Contributor

3699 points

829 Posts

Re: I-beam cursor, selection, don't show up in controls with a dark background

This isn't a bug.  You can fix this by going to Start->Control Panel->Mouse

Click the pointers tab.

From the list, select the "Conductor" theme.

Click OK.

Eloff
Eloff

Member

Member

139 points

114 Posts

Re: I-beam cursor, selection, don't show up in controls with a dark background

This IS a bug. Requiring the user to change his/her windows theme to use your app is very clearly a bug.

But it is not the I-beam cursor. That shows up just great. Actually it's the little flashing cursor inside the TextBox that has the problem. 

fullsailrick
fullsail...

Contributor

Contributor

3699 points

829 Posts

Re: I-beam cursor, selection, don't show up in controls with a dark background

OK.  What you need to do is click Start->All Programs--> Accessories--> Ease of Access

and run Microsoft Narrator. 

This way, when you click in the textbox it will read the entire page to you and let you know that you've clicked inside of a textbox.  Plus, you can change your cursor theme to "Dinosaur." 

It's a Win / Win situation.

Eloff
Eloff

Member

Member

139 points

114 Posts

Re: I-beam cursor, selection, don't show up in controls with a dark background

That is why there should be a <sarcasm> tag in HTML 5. 

Yi-Lun Luo - MSFT
Yi-Lun L...

All-Star

All-Star

25052 points

2,747 Posts

Answered Question

Re: Cursor, selection, don't show up in controls with a dark background

Hello, thanks for reporting this. It's a known issue which our developers are working on. Sorry I can't give you more details at this time... In WPF, the caret's color is always the contrast of TextBox's Background.

shanaolanxing - I'll transfer to the Windows Azure team, and will have limited time to participate in the Silverlight forum. Apologize if I don't answer your questions in time.

Ozzy1
Ozzy1

Member

Member

22 points

16 Posts

Re: Re: Cursor, selection, don't show up in controls with a dark background

This seems to still be a problem with SL 2 RTW.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities