I want to use the Separator control in a vertical way (Lets say in a horizontal StackPanel).
Searching around I found this method but it doesn't use the Separator control rather it uses borders and rectangles. https://social.msdn.microsoft.com/forums/en-US/wpf/thread/eab865be-ad9b-45ed-b9d8-fc93f737b163
Is it possible to use the Separator control in a vertical way?
Summary. A simple class that adds a vertical separator bar between toolbar items (css class: 'x-toolbar-separator').
Separators are rendered as part of the list but are not selectable in the same way as the actual items. They provide a visual distinction between sets of related options. To demonstrate, create a new WPF application in Visual Studio, naming the solution, "SeparatorDemo".
To draw a line, create a Line element. Use its X1 and Y1 properties to set its start point; and use its X2 and Y2 properties to set its end point. Finally, set its Stroke and StrokeThickness because a line without a stroke is invisible. Setting the Fill element for a line has no effect, because a line has no interior.
Also:
<Separator Style="{StaticResource {x:Static ToolBar.SeparatorStyleKey}}" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With