How to create a speech bubble in UWP?

后端 未结 2 1116
别那么骄傲
别那么骄傲 2020-12-10 18:00

I\'m creating a chat application and would like to create the typical speech bubble that contains each message. I created a Path object in Blend (in XAML) like this:

2条回答
  •  我在风中等你
    2020-12-10 18:07

    You may use Polygon in combination with StackPanel:

    
        
    
        
            
        
    
    

    which looks like this:

    EDIT:

    Version with border:

    
        
    
        
            
        
    
        
    
    

    This is probably not the easiest and the best way how to do this, maybe Path will be better to do this, but it works:

提交回复
热议问题