Hello,
The splitter becomes Transparent by default when it is being dragged, but this is not what we want.
How to set the color of the splitter?
We are using 20.1.1
[Modified 4 years ago]
Hello,
The splitter becomes Transparent by default when it is being dragged, but this is not what we want.
How to set the color of the splitter?
We are using 20.1.1
[Modified 4 years ago]
Hello,
If you set the DockSite.IsLiveSplittingEnabled property to false, then it will show a filled in splitter that you move around and the controls will readjust after you drop it. In this mode, the color of that splitter fill while dragging is fixed to #80808080. You'd have to make a new implicit Style/Template for the splitter types to alter that color, but it's a good generic color that works with all themes. If you want to go that route, we can post the default Style.
Hello,
I do have IsLiveSplittingEnabled
set to False
since we are hosting WinForms controls inside the tool windows, but the splitter has Transparent
color while dragging it.
The default style which allows to override that color is highly appreciated.
First, let me ask something since you mentioned WinForms. When you first press the mouse down on the splitter when DockSite.IsLiveSplittingEnabled is false, do you see a gray rectangle appear?
And if so, by "Transparent color" do you mean the gray rectangle disappears when you move it over the WinForms controls?
Not really, by tranparent color I mean that after mouse down the one part of the splitter moves with the mouse and the other stays where it was when mouse down was initially pressed. And that part of it that stayed "looses" its original color and makes the Backgound
of DockSite
visible through it. This is what we want to avoid.
The splitters are normally transparent and show the DockSite background through them. Are you doing something like overriding their default Background to make the splitters always appear differently than the DockSite background, even when not in use?
Indeed.
The background is set using such style:
<Style TargetType="docking:SplitContainerSplitter">
<Setter Property="Background" Value="XYZ"/>
</Style>
[Modified 4 years ago]
Thanks, I see now. The splitters weren't originally designed to render non-transparently when not in use.
Ok we were able to improve the splitter to not translate itself when IsLiveSplittingEnabled=false and UseHostedPopups=false. This should be the scenario you are in, and will allow your colored splitter area to remain in place on drags, while still showing the "shadow" drag splitter. The update will be in the next maintenance release.
Thank you for the update!
Would that change/fix still allow to restyle the splitter after I get rid of the interop controls in the tool windows, and switch UseHostedPopups
into True
?
[Modified 4 years ago]
Hello,
There are basically three modes:
Please log in to a validated account to post comments.