Bug 30627 - Windows Phone backgroundimage of page not showing after layout update
Summary: Windows Phone backgroundimage of page not showing after layout update
Status: RESOLVED NORESPONSE
Alias: None
Product: Forms
Classification: Xamarin
Component: Windows ()
Version: 1.4.2
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-06-01 03:19 UTC by Bruno VT
Modified: 2016-04-09 00:48 UTC (History)
2 users (show)

Tags: windows
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NORESPONSE

Description Bruno VT 2015-06-01 03:19:32 UTC
I have a contentpage with a few Stacklayouts. When I set a background image for my page it shows but when I try to hide or show a layout from my code(ErrorLayout) the background image turns black. Possible windows phone drawing issue?

<ContentPage.Resources>
    <ResourceDictionary>
      <OnPlatform x:Key="SplashScreenAdImageHeight"
            x:TypeArguments="x:Double"
            iOS="50"
            Android="50"
            WinPhone="75"/>
      <OnPlatform x:Key="LogoImageHeight"
            x:TypeArguments="x:Double"
            iOS="150"
            Android="150"
            WinPhone="250"/>
    </ResourceDictionary>
  </ContentPage.Resources>

  <ContentPage.Content>
    <StackLayout HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" Orientation="Vertical">
      <StackLayout Orientation="Vertical" HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand" Spacing="15">
        <Image x:Name="LogoImage" Aspect="AspectFit" BackgroundColor="Transparent" WidthRequest="{StaticResource LogoImageHeight}" HeightRequest="{StaticResource LogoImageHeight}" HorizontalOptions="Center" VerticalOptions="Center"/>

        <StackLayout x:Name="LoadLayout" Orientation="Vertical" Spacing="20" IsVisible="True">
          <customcontrols:LoadingControl />
          <Label x:Name="LoadLabel" HorizontalOptions="Center" XAlign="Center" />
        </StackLayout>
        
        <StackLayout x:Name="ErrorLayout" Orientation="Vertical" Spacing="20" IsVisible="False">
          <Label x:Name="ErrorLabel" TextColor="Red" HorizontalOptions="Center" XAlign="Center"/>
          <Button x:Name="RetryButton" Text="{extension:ResourceExtension Name=ExtendedSplashPage_Retry}" MinimumWidthRequest="300" HorizontalOptions="Center"/>
        </StackLayout>
      </StackLayout>

      <Image x:Name="SplashScreenBannerAdImage" HorizontalOptions="FillAndExpand" VerticalOptions="End" HeightRequest="{StaticResource SplashScreenAdImageHeight}" Aspect="AspectFill"/>
      <customcontrols:AdMobBanner x:Name="AdMobBanner" VerticalOptions="End"/>
    </StackLayout>
  </ContentPage.Content>
</ContentPage>
Comment 1 Seth Rosetter 2015-06-02 13:59:26 UTC
Thank you for taking the time to submit the bug. We tried to reproduce the issue you reported but were unable given the description. If you could please attach a reproduction to the bug by starting with a clean Xamarin.Forms project and adding just the code necessary to demonstrate the issue we would very much appreciate it. We monitor recently touched NEEDS INFO bugs so we’ll notice you attached the reproduction we’ll take it from there. 

Warm regards,
Xamarin Forms Team
Comment 2 Jason Smith [MSFT] 2016-04-09 00:48:52 UTC
Thank you for your bug report. As we have not received the information requested, we cannot properly triage your bug and are marking it resolved.

Warm regards,
Xamarin Forms Team