Back to Devexpress

RibbonProperties.ScaleIcons Property

windowsforms-devexpress-dot-xtrabars-dot-ribbonproperties-44d18aa2.md

latest2.1 KB
Original Source

RibbonProperties.ScaleIcons Property

Gets or sets whether icons for bar items are automatically stretched to match the current DPI settings of the user’s monitor.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(true)]
public bool ScaleIcons { get; set; }
vb
<DefaultValue(True)>
Public Property ScaleIcons As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true if bar item icons are scaled to match the current DPI settings; otherwise, false

|

Remarks

Increasing the DPI for your monitor enlarges the size of screen items. Use the ScaleIcons property to specify whether bar item icons should match the DPI settings of the user’s monitor. If this property is set to true , the bar item icons are scaled up if the DPI is increased and vice versa. Otherwise, the icons will remain a constant size, in terms of pixels.

Note that you can also provide large images for bar items. This can be accomplished via the BarItem.ImageOptions.LargeImage and BarItem.ImageOptions.LargeImageIndex properties.

See Also

LargeImage

LargeImageIndex

ScaleEditors

RibbonProperties Class

RibbonProperties Members

DevExpress.XtraBars Namespace