Ribbon菜单栏布局和调整大小

设置菜单组的变化顺序。窗口大小调整时,GroupSizeReductionOrder设置多个菜单组的先后顺序,下图显示当逐渐缩小窗口时,菜单的变化

 

           

                              GroupSizeReductionOrder="tbdGroup2, tbdGroup1, editGroup">

               

                   

                                           LargeImageSource="Images/LargeIcon.png">

                       

                       

                                                          ImageSource="Images\SmallIcon.png"/>

                   

                   

                                         SmallImageSource="Images\SmallIcon.png"

                                         LargeImageSource="Images\LargeIcon.png"/>

                   

                                         SmallImageSource="Images\SmallIcon.png"

                                         LargeImageSource="Images\LargeIcon.png"/>

                   

                                         SmallImageSource="Images\SmallIcon.png"

                                         LargeImageSource="Images\LargeIcon.png"/>

                   

                                         SmallImageSource="Images\SmallIcon.png"

                                         LargeImageSource="Images\LargeIcon.png"/>

 

               

               

                   

                                           LargeImageSource="Images/LargeIcon.png">

                       

                       

                                                          ImageSource="Images\SmallIcon.png"/>

                   

                   

                                         SmallImageSource="Images\SmallIcon.png"

                                         LargeImageSource="Images\LargeIcon.png"/>

               

               

                   

                                           LargeImageSource="Images/LargeIcon.png">

                       

                       

                                                          ImageSource="Images\SmallIcon.png"/>

                   

                   

                                         SmallImageSource="Images\SmallIcon.png"

                                         LargeImageSource="Images\LargeIcon.png"/>

               

           

设置单个组内空间的变化顺序。当菜单大小调整时,GroupSizeDefinitions按照下表的关系设置每个组中控件的布局

 

IsLabelVisible

Has a large image and up to two lines for a label.

RibbonImageSize.Large

true

Has a small image and one line for a label.

RibbonImageSize.Small

true

Has just a small image and no label.

RibbonImageSize.Small

false

            

                       

                       

                           

                           

                            

                               

                               

                       

                       

                   

 

                           

                           

                           

                           

                           

 

                           

                           

                           

                           

                           

你可能感兴趣的:(WPF,软件开发,header,button,image,up)