Category Archives: Uncategorized

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)


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.




What will Windows RT look like?

I’ve been thinking, “What exactly will the final version of Windows RT look like?” Yes, yes, I know, the interface will look something like this screen:



But what about the little details? I forget where I read this, but I’ve heard tech editors say that there will be no desktop on Windows RT? Really? How do they know? Yes, I also know that Windows RT won’t support tradition x86/x64 applications, but that doesn’t mean that the desktop won’t be there. Take a look at this picture of Excel 2013 for Windows RT:


Ahem, pardon me, but what does that look like on the bottom of the screenshot? What’s that? Bingo! The “taskbar”! Where does the taskbar usually show up? Right again! On the DESKTOP!

So, it looks like there will be a desktop on Windows RT. A desktop with a file manager and a desktop version of Internet Explorer 10.

So please, all you people who say that the desktop will be missing from Windows RT, please stop.

Changing a Wireless card in a Lenovo G560

This is a relatively easy task even for those not very technically inclined.

Tools: A small Phillips head screwdriver, a small flat head screwdriver, and a pair of small pliers. A small container is also preferred to hold loose screws.

First, begin by powering off the device, unplugging the power adapter, and removing the battery.

Now, there is a large panel on the bottom of the laptop, held into place by seven (7) Phillips head screws.


Once you have removed those seven screws and placed them in a safe place, use the flat head screwdriver to pop up the panel, starting on the right side in the above picture. Be careful not to break any of the small clips holding it in place.


Once you have removed the panel, set it aside somewhere safe. You should now see something similar to the below picture.


In the above picture, the wireless card is in the top right of the large “hole” left by the panel. It has a small barcode on it, and black and white wires running vertically to it.


With the small pliers, gently but firmly remove the two wires connected to the wireless card. Don’t worry, they just pop straight off.


There is one small screw holding the wireless card down. Unscrew it and set the screw somewhere safe, you are going to need it.


Gently pull the wireless card towards the center of the laptop until the connection comes loose.


Then remove and set somewhere safe.


Carefully unpack the new wireless card.


From now on, we are basically doing the same steps in reverse.

Gently insert the new wireless card by sliding it into the connection. Look carefully before you start, there is only one way to insert it and you don’t want to break your new wireless card. Or the laptop for that matter.


Now, screw in the small screw that you set aside.


Now, using the pliers, carefully attach the wire connections. They go on straight down.


Here, the new wireless card is completely attached.


Now, replace the panel, making sure to press down all around the edges until you here it click in place and it is flush with the rest of the bottom.


Now, screw in each of the seven screws.


Then, reinsert your battery, plug in the laptop (if desired), and power on the laptop.


There you have it!

Windows, or any other operating system, should automatically detect the new hardware and have it ready for use.

Tagged , , , , ,

Welcome . . .

. . . to JG’s Tech Thougts. Where I share my thoughts on anything techwise that catches my fancy.