How to show a full screen Modal ContentDialog in Windows Phone 8.1

后端 未结 3 959
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-15 09:30

When a user is trying to login to my app, I am displaying a ContentDialog containing a few TextBlocks and a ProgressBar.

I choose ContentDialog because it is modal a

3条回答
  •  悲哀的现实
    2020-12-15 10:21

    I found a solution which eliminates the code behind. Not sure if this is more of a work around. But it allows me to easily use Binding to decide when to display this modal dialog and when to hide it.

    This is my XAML

    
    
        
            
            
            
            
            
            
        
        
        
        
        
    
    
        
    
    

    I play around with the visibility of the Grid that has Canvas.ZIndex="1" using Binding and decide when to display the modal window.

提交回复
热议问题