Aeon Emulator Blog

October 25, 2009

Emulators without Borders

Filed under: Aeon, WPF — Greg Divis @ 2:37 pm

One issue I’ve had with authoring a WPF UserControl/CustomControl has been the dashed focus rectangle that gets automatically drawn to indicate keyboard focus. I’m sure there are situations where this is useful, but Aeon’s emulator display control is not one of them.

Control Border

Getting rid of this is pretty easy. Just set the FocusVisualStyle property to null.

<ContentControl FocusVisualStyle=”{x:Null}” />

Of course, most custom controls should probably set it to a more appropriate style rather than null, but in Aeon’s case it doesn’t really make sense to show focus in this way. Somehow I’ve managed to overlook this property since I started this project, but as of version 0.50, that focus rectangle is finally gone!

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

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

Blog at WordPress.com.

%d bloggers like this: