How to add text in the splitter grip resize handle
Environment
Product Version | Product | Author |
---|---|---|
2022.2.622 | SplitContainer for WinForms | Dinko Krastev |
Description
An example demonstrating how to replace the dotted text (....) with custom text within the SplitContainer.
Solution
The Splitters collection of the RadSplitContainer contains all SplitElements which are currently presented in the control. We could iterate this collection and use its Layout property. This property is of type SplitterElementLayout that holds the "dotted" grip handle. To add the custom text we can add custom LightVisualElement element to Layout children collection. The "dotted" grip handle is an image set to the BackgroundShape property. We can set this property to null so that we can see our custom text element.