Back to Devexpress

FontEdit Class

wpf-devexpress-dot-xpf-dot-editors-e06a5e61.md

latest2.9 KB
Original Source

FontEdit Class

A font editor.

Namespace : DevExpress.Xpf.Editors

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
[DXLicenseWpfEditors]
public class FontEdit :
    ComboBoxEdit
vb
<DXLicenseWpfEditors>
Public Class FontEdit
    Inherits ComboBoxEdit

Remarks

The FontEdit displays available fonts in the drop-down window and allows an end user to select a font.

Tip

The FontEdit class inherits its features from the ComboBoxEdit class.

Refer to the ComboBoxEdit class description for information on derived features and API.

Create a FontEdit

xaml
<Window ...
    xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors">

<dxe:FontEdit Font="Arial"/>
...

Edit Value

The FontEdit value is specified by the EditValue of Font property. To respond to edit value changing, handle the BaseEdit.EditValueChanging and BaseEdit.EditValueChanged events.

Use the AllowConfirmFontUseDialog property to display a confirmation dialog window an end user tries to set a font which is not installed on the system.

Inheritance

Show 15 items

Object DispatcherObject DependencyObject Visual UIElement FrameworkElement Control BaseEdit TextEditBase TextEdit ButtonEdit PopupBaseEdit LookUpEditBase ComboBoxEdit FontEdit

See Also

FontEdit Members

DevExpress.Xpf.Editors Namespace