Change color of PopupLayout background overlay

Hi,
is it somehow possible to change the color of the background overlay when the popup is displayed? Right now it is transparent black, but I'd like to have it transparent.
Or can it be disabled?
Thanky you

3 Replies

VR Vigneshkumar Ramasamy Syncfusion Team October 11, 2018 06:48 AM UTC

Hi Marco Bünter,  
  
Thanks for contacting Syncfusion support.  
  
We have analyzed your query for displaying the popup without overlay. You have to set the width, height, x and y properties of the popup view in order to have a transparent background. If incase the default height and width which the popup is loaded is fine, you can set the values 250 and 300 or else you can set any desired values as the height and width of the popup view. Refer the following code examples  
  
  private void ClickToShowPopup_Clicked(object sender, EventArgs e) 
        { 
            var screenWidth = this.Width; 
            var screenHeight = this.Height; 
 
            // The default height and width of PopupView is 250 and 300 respectively. 
            // You have to set the width, height, x and y properties of the popup view inorder to have a transparent background. 
            // If in case the default height and width with which the popup is loaded is fine you can set the values 250 and 300 
            // Else you can set any desired values as the height and width of the popup view. 
            var popupHeight = popupLayout.PopupView.HeightRequest = 250; 
            var popupWidth = popupLayout.PopupView.WidthRequest = 300; 
 
            popupLayout.Show((screenWidth - popupWidth) / 2, (screenHeight - popupHeight) / 2); 
        } 
  
We have prepared a sample to achieve your requirement and you can download the same from the following link  
 
Sample Link: SfPopup
 
 
Please let us know if this helpful.  
 
Regards,  
Vigneshkumar R 



DS Digital Services October 11, 2018 11:58 AM UTC

Perfect. Works as expected.
Thank you


VR Vigneshkumar Ramasamy Syncfusion Team October 11, 2018 12:04 PM UTC

 
Hi Marco Bünter,   
 
We glad to know that your requirement has been achieved. Please get in touch if you required further assistance on this. 
   
Regards 
Vigneshkumar R 


Loader.
Up arrow icon