Hello
SelAromDotNet,
>>To make things worse, while on Phone 8.1, the splash screen fills the entire screen (including the…
This should be an expected behavior because as we can see the windows phone screen would be smaller than a windows screen.
For reusing your code between a windows store app and a windows phone app. You would need to adjust the image height and width. For example, write code like below in the ExtendedSplash class:
void PositionImage()
{
extendedSplashImage.SetValue(Canvas.LeftProperty, splashImageRect.Lef);
extendedSplashImage.SetValue(Canvas.TopProperty, splashImageRect.Top);
#if WINDOWS_PHONE_APP
extendedSplashImage.Height = splashImageRect.Height / ScaleFactor;
extendedSplashImage.Width = splashImageRect.Width / ScaleFactor;
#else
extendedSplashImage.Height = splashImageRect.Height;
extendedSplashImage.Width = splashImageRect.Width;
#endif
}
When this code is running on a phone environment, it would set its height and width to be half of when it is running on the windows machine.
If you run the UWP splash screen sample, you could see it uses a similar measure to deal this business.
Regards.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click
<a href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.