Skip to content

Learn here about working with ribbon button image size of Syncfusion WPF Ribbon control in detailed manner.

Notifications You must be signed in to change notification settings

SyncfusionExamples/Working-with-wpf-ribbon-button-image-size

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

How to set the image to Ribbon Button in WPF Ribbon control?

This sample showcases how to set the image to Ribbon Button in WPF Ribbon control.

The WPF Ribbon control accommodates all the tools required for an application in a single, easy-to-navigate user interface like Microsoft Office. Ribbon buttons provide basic functionalities and allow customization of image size and layout.


Working with Ribbon Button Image Size

Ribbon items such as RibbonButton, SplitButton, and DropDownButton support image customization using SizeForm and IconStretch properties.

SizeForm Options:

  • Large: Large button with large image and text.
  • Small: Small button with small image and text.
  • ExtraSmall: Extra small button with image only.

IconStretch Options:

  • Fill: Image fills the destination without preserving aspect ratio.
  • Uniform: Image resizes uniformly to fit.
  • UniformToFill: Image resizes uniformly to fill.
  • None: Original image size is preserved.

Example:

<syncfusion:RibbonButton Label="Save" SizeForm="Large" IconStretch="Uniform" LargeIcon="Images/save32.png" />

Adaptive Ribbon Layout

The ribbon control dynamically resizes as the window width changes. Items switch from LargeSmallExtraSmall, and finally collapse into a dropdown.

Enable responsive resizing:

IsAutoSizeFormEnabled="True" CollapseImage="Images/collapse.png"

For more details, refer to KB Article.

Documentation

About

Learn here about working with ribbon button image size of Syncfusion WPF Ribbon control in detailed manner.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 9

Languages