Admiral Land Admiral Land - 1 year ago 115
C# Question

How to make image placeholder?

How to get image placeholder? It should looks like empty place (16*16) in gray color.
And when i select image- it places into placeholder.

I know how to select image from files, but i do not know how to make empty space (16*16 with gray color).

Can you get me some links or simple example?
Thank you!

Answer Source

You can do something as simple as:

<Grid Background="Gray">
   <Image />

When image loads, it will cover the gray color.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download