BaseEdit.StyleSettings Property
Gets or sets an object that defines an editor’s appearance and behavior. This is a dependency property.
Namespace: DevExpress.Xpf.Editors
Assembly: DevExpress.Xpf.Core.v24.2.dll
NuGet Package: DevExpress.Wpf.Core
Declaration
Property Value
Type | Description |
---|---|
BaseEditStyleSettings | A BaseEditStyleSettings descendant that defines the editor’s appearance and behavior. |
Remarks
Various editor controls include multiple built-in styles. For instance, a TrackBarEdit supports four built-in styles that define its appearance and behavior: Native (TrackBarStyleSettings), Range (TrackBarRangeStyleSettings), Zoom (TrackBarZoomStyleSettings), and ZoomRange (TrackBarZoomRangeStyleSettings). A ProgressBarEdit supports two built-in styles: Native (ProgressBarStyleSettings) and Marquee (ProgressBarMarqueeStyleSettings).
The editor’s ItemContainerStyle property does not affect item appearance if you use the StyleSettings
property to define an operation mode. In this case, use the *StyleSettings
object’s ItemContainerStyle
property.
<Window ...
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
xmlns:dxetk="http://schemas.devexpress.com/winfx/2008/xaml/editors/themekeys">
<dxe:ComboBoxEdit ItemsSource="{Binding Customers}"
DisplayMember="Name"
HorizontalContentAlignment="Stretch">
<dxe:ComboBoxEdit.StyleSettings>
<dxe:RadioComboBoxStyleSettings>
<dxe:RadioComboBoxStyleSettings.ItemContainerStyle>
<Style BasedOn="{StaticResource {dxetk:EditorListBoxThemeKey ResourceKey=RadioButtonItemStyle}}"
TargetType="dxe:ListBoxEditItem">
<Setter Property="ContentTemplate">
<Setter.Value>
<DataTemplate>
<Border BorderThickness="2"
Background="Orange"
BorderBrush="Blue"
CornerRadius="4">
<TextBlock Text="{Binding}" Padding="2"/>
</Border>
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
</dxe:RadioComboBoxStyleSettings.ItemContainerStyle>
</dxe:RadioComboBoxStyleSettings>
</dxe:ComboBoxEdit.StyleSettings>
</dxe:ComboBoxEdit>
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the StyleSettings property.
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.