reduce height in ribbon button

Ribbon for WPF Forum

Posted 8 years ago by duyhai707
Version: 11.2.0554
Avatar

Hello actipro team,

 

I try to set max height for 

 

<ribbon:Ribbon Name="m_ribbon" IsApplicationButtonVisible="False" IsMinimized="True" IsApplicationMenuOpen="False"
IsCustomizeQuickAccessToolBarMenuItemVisible="False" MaxHeight="45" IsCollapsible="False">
<ribbon:Ribbon.ApplicationMenu>
<ribbon:ApplicationMenu Visibility="Collapsed" >
</ribbon:ApplicationMenu>
</ribbon:Ribbon.ApplicationMenu>
<ribbon:Ribbon.TabPanelItems>
<ribbon:ToggleMinimizationButton />
</ribbon:Ribbon.TabPanelItems>

<ribbon:Ribbon.Tabs>
<ribbon:Tab Label="Datein" TabIndex="1" MaxHeight="10">

<ribbon:Group Label="Zwischenablage" MaxHeight="35">

<ribbon:Button ImageSourceSmall="{Image:Copy16}" MaxHeight="25" />

</ribbon:Group>

 

</ribbon:Ribbon.Tabs>
</ribbon:Ribbon>

 

AND

m_ribbon.CollapseThresholdSize = new Size(15, 15);

 

<Style TargetType="{x:Type ribbon:GroupPresenter}">
<Setter Property="MaxHeight"
Value="35"/>
</Style>

 

But the content size of ribbon button still is 93pixel.

So, how can we reduce the height of Ribbon?

 

Thanks,

Regards,

Hai.

Comments (1)

Answer - Posted 8 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Hai,

The Ribbon is designed to work at specific heights.  I would not recommend doing what you are trying to do since it will not work correctly.  Instead, perhaps start the ribbon in a minimized mode.


Actipro Software Support

The latest build of this product (v2020.1.0) was released 22 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.