Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ImageButtonInfo.GlyphStyle Property

Gets or sets a style applied to the button’s glyph (Glyph). This is a dependency property.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v24.2.dll

NuGet Package: DevExpress.Wpf.Core

#Declaration

public Style GlyphStyle { get; set; }

#Property Value

Type Description
Style

A Style object applied to the button’s glyph.

#Remarks

The following code sample specifies the GlyphStyle (“myGlyphStyle”) and applies the style to the ButtonEdit‘s image:

<Window ...
  xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors">
  <Window.Resources>
    <Style x:Key="myGlyphStyle" TargetType="Image">
      <Setter Property="Height" Value="12"/>
      <Setter Property="Width" Value="12"/>
    </Style>
  </Window.Resources>
  <dxe:ButtonEdit Text="Input a value">
    <dxe:ImageButtonInfo Glyph="/DevExpress.Images.v20.1;component/SvgImages/Outlook Inspired/Glyph_Phone.svg" 
                         GlyphStyle="{StaticResource myGlyphStyle}"/>
  </dxe:ButtonEdit>
</Window>

See Also