Skip to main content
A newer version of this page is available. .

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.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Core, 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