Admiral Land Admiral Land - 3 months ago 13
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

You can do something as simple as:

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

When image loads, it will cover the gray color.

Comments