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.v19.2.dll
Declaration
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.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ContentPlacement 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.