How to set text at the head of a RibbonApplicationMenu

后端 未结 6 2052
Happy的楠姐
Happy的楠姐 2020-12-29 23:20

I\'m trying to have text in the top level of a RibbonApplicationMenu (trying to the get the word \"File\" there similar to Word or Outlook). It seems the Microsoft.Wi

6条回答
  •  独厮守ぢ
    2020-12-29 23:59

    Right. If you want no code-behind and no complex glyph computations, use the following XAML:

    
      
        
          
            
              
            
            
              
                
                    
                
              
            
          
        
      
    
    

    Advantages of this approach:

    • XAML-only, no code-behind
    • No glyph measurement
    • Easy to change label

提交回复
热议问题