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

ToggleSwitchEdit.ContentPlacement Property

Gets or sets the position of the content area within the ToggleSwitchEdit control. This is a dependency property.

Namespace: DevExpress.Xpf.Editors

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

NuGet Package: DevExpress.Wpf.Core

#Declaration

public ToggleSwitchContentPlacement ContentPlacement { get; set; }

#Property Value

Type Description
ToggleSwitchContentPlacement

A ToggleSwitchContentPlacement enumeration value.

Available values:

Name Description
Near

The content is displayed at the near side of the toggle switch.

Far

The content is displayed at the far side of the toggle switch.

Both

Both types of content are displayed at the opposite sides of the toggle switch.

Inside

The content is displayed inside the toggle switch.

#Remarks

Use the ContentPlacement property to specify the required content position. The image belows demonstrates the available options.

ToggleSwitch ContentPosition

See Also