Tag Archives: technology

Change border color on selected GridViewItem and ListViewItem

I have had this issue where any GridView or ListView I create with item selection enabled has a standard border color that I just couldn’t seem to change. It was a purple color, and it annoyed me because it didn’t match the colors I was using in my app.

I had given up hope on finding this until recently. Today I found the code for a GridViewItem style, and found the specific items that I could change a couple properties, and voilà!

Screenshot (1)

Custom color selection borders!

So here’s how you do it. First, you get the code for a GridViewItem. (Or a ListViewItem)
(GridViewItem)


(ListViewItem)


There are two things you are looking for (They’ll be near the bottom of each style):

  1. A rectangle with the name “SelectedBorder”
  2. A path with the name “SelectedEarmark”

All you need to do is change the Stroke property on the rectangle and the fill property on the path to the SolidColorBrush of your choice.

I hope this helps you as you seek to perfect your app!

Remember, the best way to learn is to DO. So feel free to mess around with the style code and get things looking just the way you want.

Thanks,

Joshua

Advertisements
Tagged

Why I Think the Microsoft Surface Pro is Coming Out 3 Months After the RT Version

Yeah, I know, it’s been a while . . .

My brother and I were talking, and I think we came up with a pretty viable reason why Microsoft will release the Surface Pro three months after the Surface RT. Let me string some facts together:

  1. Microsoft said that the Surface RT would be available around Windows 8 general availability, which they mentioned at the announcement press conference.
  2. The Verge reports that the only confirmed Windows 8 RT tablet in the works is one by Asus.
  3. There seems to be a plethora of Intel-based tablets which will run the full version of Windows 8, including ones by Lenovo, HP, Dell, and others.

Now, if you think about all these facts together, what can we conclude?

Well, first, how many OEMs are going to get “screwed” by Microsoft with the Surface RT? Well, currently it’s just Asus, as they are the only one currently developing a Windows RT tablet.

Second, what could be a possible reason for Microsoft waiting three months to release it’s Intel version of the Surface? Maybe it’s so that it doesn’t “screw” all the OEMs who will release their Intel-based Windows 8 tablets around Windows 8 general availability.

Can you think of a better reason? Have anything to add? I’d love to hear from you in the comments.

Tagged , , , , , ,