tags:

views:

32

answers:

1

hello all i have a problem i want ot set the image of my grid through code behind is any body help me how can i achieve this.

thanks in advance shashank

+1  A: 

Did you forget the Background Property. The brush should be an ImageBrush whose ImageSource could be set to your image path.

Veer
can u tell me the exact syntax for this
Chunmun Tyagi
@SHASHANK: The syntax would be something like this: `<Grid Background="{StaticResource yourBrush}" />`
Veer