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

ButtonInfo Class

Represents a button for a button editor.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v19.1.dll

Declaration

public class ButtonInfo :
    ButtonInfoBase,
    ICommandSource

Remarks

The ButtonInfo class implements the functionality of an individual button that can be displayed within button editors (e.g., ButtonEdit, DateEdit, etc.).

Example

This example shows how to create a new edit button with a custom glyph in code.

<Window x:Class="DXEditors_HowToCreateButtonEdit.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525" xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors">
    <Grid>
        <dxe:ButtonEdit 
            HorizontalAlignment="Left" Margin="176,129,0,0" Height="22"
            Name="btnEdit" VerticalAlignment="Top" Width="150" />
    </Grid>
</Window>

The following code snippets (auto-collected from DevExpress Examples) contain references to the ButtonInfo class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also