Hello.
Seems ilke none of the other StackOverflow questions answers this specific question. Or it may be lousy search skills...
I have a ("CanResizeWithGrip
" + "WindowStyle="none"
") application written in WPF
/ C#
.
The application resizes sideways only (MaxHeight
and MinHeight
are the same), so I would want the cursor of the ResizeGrip
to be ScrollWE
(horizontal only) instead of the diagonal default.
Users try to resize vertically when the cursor hints them they can.
I tried to modify the control template by using the code below, but then the whole window disappears and I'm left only with the resizegrip UI -- and still a diagonal cursor!
<Window.Template>
<ControlTemplate TargetType="Window">
<ResizeGrip Cursor="ScrollWE" />
</ControlTemplate>
</Window.Template>
Resizing is working properly, the window is stylized properly (when I don't use the ControlTemplate
above).
I only need to change the cursor that appears over the ResizeGrip
. How to do that?
Hints on directions to follow are welcome too (complete answers even more :)).
Edit: Hans is right on his comment. I mistakenly used ScollSE in my ControlTemplate trial (I fixed that in the question now).