I am working on a panorama and many simple pages on the men page on a Windows Phone 7 project. All my pages have a background set:
& lt; Local: PhoneApplicationPage & gt; & Lt; Grid background = "{static resource pagebacker}" & gt; The content here & lt; / Grid & gt; & Lt; / Local: PhoneApplicationPage & gt; PageBackground has an application resource set as default. XML and light.xaml like this:
& lt; ImageBrush x: Key = "Panorama Background" ImageSource = "/ Resources / Panorama Background 01 Dark. JPG" Stretch = "None" /> & Lt; ImageBrush X: Key = "Page Background" Image Source = "/ Resources / Pageback Gallery 01 Dark. JPGZ" Stretch = "None" /> PageBackground01Dark.jpg The image size is 800x800 px.
When a page is displayed in Portrait Orientation , the image is centered with the right horizontal and the image height corresponds to the page height. It's okay.
When a page Landscape orientation , the width of the image corresponds to the width of the page, but the image is standing
I want my background image to be" topping "in the page.
Grid's background property is not an interesting option. I would not want to create 2 photos for this. There should be a clear solution here, which is what I want to do:
& lt; Imagebrush x: key = "PageBackground" ImageSource = "/ resource / PageBackground01Dark.jpg" alignment Y = "0" />
Comments
Post a Comment