We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

iOS Background Color

Thread ID:

Created:

Updated:

Platform:

Replies:

142543 Feb 8,2019 03:03 PM UTC Feb 12,2019 02:18 PM UTC Xamarin.Forms 2
loading
Tags: SfPopup
matteo
Asked On February 8, 2019 03:03 PM UTC

Hi, how can change the background of the popup if this is generated runtime with a grid structure?

With Android the background is correct, with iOS the background is transparent, if I set the white color of the grid I still have a step under header

Thanks in advance.




            popup = new SfPopupLayout();
            popup.PopupView.HeaderTitle = "Axys";
            popup.PopupView.AcceptButtonText = Resource.Ok;

            var grid = new Grid();

            grid.RowDefinitions.Add(new RowDefinition { Height = new GridLength(1, GridUnitType.Auto) });
            grid.RowDefinitions.Add(new RowDefinition { Height = new GridLength(1, GridUnitType.Auto) });
            grid.RowDefinitions.Add(new RowDefinition { Height = new GridLength(1, GridUnitType.Auto) });
            grid.ColumnDefinitions.Add(new ColumnDefinition { Width = new GridLength(1, GridUnitType.Star) } );
            grid.ColumnDefinitions.Add(new ColumnDefinition { Width = new GridLength(1, GridUnitType.Star) });

            Switch switcherX = new Switch
            {
                HorizontalOptions = LayoutOptions.EndAndExpand,
                VerticalOptions = LayoutOptions.CenterAndExpand,
                IsToggled = XSeries.IsVisible
            };
            switcherX.Toggled += switcherX_Toggled;

            Label labelX = new Label
            {
                TextColor = Color.Red,
                Text = Resource.LogVibsAxisX,
                HorizontalOptions = LayoutOptions.StartAndExpand,
                Margin = new Thickness(5, 0, 0, 0)
            };

            Switch switcherY = new Switch
            {
                HorizontalOptions = LayoutOptions.EndAndExpand,
                VerticalOptions = LayoutOptions.CenterAndExpand,
                IsToggled = YSeries.IsVisible
            };
            switcherY.Toggled += switcherY_Toggled;

            Label labelY = new Label
            {
                TextColor = Color.Blue,
                Text = Resource.LogVibsAxisY,
                HorizontalOptions = LayoutOptions.StartAndExpand,
                Margin = new Thickness(5, 0, 0, 0)
            };

            Switch switcherZ = new Switch
            {
                HorizontalOptions = LayoutOptions.EndAndExpand,
                VerticalOptions = LayoutOptions.CenterAndExpand,
                IsToggled = ZSeries.IsVisible,
            };
            switcherZ.Toggled += switcherZ_Toggled;

            Label labelZ = new Label
            {
                TextColor = Color.Green,
                Text = Resource.LogVibsAxisZ,
                HorizontalOptions = LayoutOptions.StartAndExpand,
                Margin = new Thickness(5, 0, 0, 0)
            };

            grid.Children.Add(labelX, 0, 0);
            grid.Children.Add(switcherX, 1, 0);
            grid.Children.Add(labelY, 0, 1);
            grid.Children.Add(switcherY, 1, 1);
            grid.Children.Add(labelZ, 0, 2);
            grid.Children.Add(switcherZ, 1, 2);
            grid.BackgroundColor = Color.White;

            popup.PopupView.ContentTemplate = new DataTemplate(() => { return grid; });

            popup.Show();

Attachment: UNADJUSTEDNONRAW_thumb_27_b9fa9e5b.zip

Pradeep Kumar Balakrishnan [Syncfusion]
Replied On February 11, 2019 12:51 PM UTC

Hi Matteo, 
 
Thank you for contacting syncfusion support.

Currently we are validating the reported issue with provided details, we will validate and let you know the further details in one business days (February 12,2019). We appreciate your patience until then.
 
 
Regards, 
Pradeep Kumar B 


Pradeep Kumar Balakrishnan [Syncfusion]
Replied On February 12, 2019 02:18 PM UTC

Hi matteo, 
  
Thank you for your patience. 
 
We have checked with your query ”Transparent space in below the header even the popupview content background color is white” in Xamarin IOS platform happening only in IPod device,. we are able to reproduce the issue in our older versions (upto v16.4.0.48).  
 
please update to the latest release version(V16.4.0.52) of the NuGet which could resolve the reported issue. We have changed default popup view background color as white from transparent. 
 
 
Regards,
Pradeep Kumar B
 
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon