Click here to Skip to main content
15,905,322 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends . I am new in WPF n just start with Grid .
in my windows.xmal i have set backgroung image for Grid. it fine when this window is in its default size...but upon changing or resizing Windows image get cut from it either size.. please help me out.
srry for my spelling mistak
Posted
Comments
Mehdi Gholam 23-Sep-11 7:40am    
Have you tried the stretch property?
Simon Bang Terkildsen 23-Sep-11 7:42am    
Post your XAML, please.
And screw spelling mistakes :) I can't spell either :D

Remove any attributes regardng the images width, height, or alignment. That should take care of it.
 
Share this answer
 
Hope this works for you...
XML
<Grid >
       <Grid.Background>
           <ImageBrush ImageSource=""></ImageBrush>
       </Grid.Background>
   </Grid>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900