How to set text at the head of a RibbonApplicationMenu

后端 未结 6 2072
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-30 00:03

    The simplest solution (to me) was to insert a DrawingImage with a GlyphRun inside. On a separate post is asked how to get the AdvanceWidths and GlyphIndicies for the GlyphRun. The result is below

    
        
            
                
                    
                        
                            
                                
                            
                        
                    
                
            
        
    
    

    Resulting Ribbon:

    GlyphRun Result

提交回复
热议问题