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)
(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

Tagged

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:

 

surface_04

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:

office_2013_rt_original

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.

P1080594

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.

P1080595

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

P1080596

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.

P1080597

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

P1080598

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

P1080599

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

P1080600

Then remove and set somewhere safe.

P1080601

Carefully unpack the new wireless card.

P1080602

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.

P1080603

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

P1080604

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

P1080605

Here, the new wireless card is completely attached.

P1080607

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.

P1080608

Now, screw in each of the seven screws.

P1080609P1080610P1080611P1080612P1080613P1080614P1080615

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

P1080616

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.

Enjoy!