How to get rid of whitespace between Runs in TextBlock?

后端 未结 6 627
情深已故
情深已故 2020-12-08 01:39

I have following XAML:



        
6条回答
  •  南方客
    南方客 (楼主)
    2020-12-08 02:21

    My solution is to make the default font size nearly invisible(FontSize="1") and then set the font size to the desired size at every each :

            
    
                
                
        
    
    

    You may be better off doing it in Code Behind. I have tried previous solutions but in certain situations VS just formatted away the carefully indented code.

提交回复
热议问题