Horizontal lines appearing in the ContentDialog view

I am trying to create a modal progress overlay in my windows 8.1 app.

I have a class that creates a ContentDialog that fills the entire screen and outputs like this:

_contentDialog = new ContentDialog();
_contentDialog.FullSizeDesired = true;      // full screen
_contentDialog.Background = new SolidColorBrush(Colors.Black);
_contentDialog.Background.Opacity = 0.7;    

 await _contentDialog.ShowAsync();

      

However, this code creates horizontal lines in the ContentDialog that I need to remove.

enter image description here

What is causing these lines to appear and how do I remove them?

+3


source to share


1 answer


Setting the background of the ContentDialog to transparent will cause the lines to disappear. Unfortunately, you cannot make it black.



        _contentDialog = new ContentDialog();
        _contentDialog.Background = new SolidColorBrush(Colors.Transparent); 

      

+2


source







All Articles