WPF ScrollViewer issues
Hello, I have the problem that the scrollviewer in C# (WPF) does not work properly. I haven't defined anything special, but the scrollviewer runs from bottom to top, i.e. with the content, which is exactly the opposite direction. I would be very grateful if someone could help me.
My code:
18 Replies
I think @Mimal99 can help you with that 😉 ...
Thanks, let's see what he's saying 🙂
Can you share the whole sample code?
Sure, one moment
It's just XAML code for the design, I'll add the C# code and all functions later
Or do you need more?
no just need this
alright
@FabiCrafter it seems the issue is with the custom scrollbar template
Okay, do you have any idea how to fix it?
I have no clue why this happened
... 😄 i just know dotnet web api's but when i commented out that code it is working as expected.
maybe try getting the code from chatgpt. i am doing that rn
I've just tried that, but unfortunately ChatGPT 3.5 doesn't seem to have a solution for my problem
i am not much experienced with wpf but try this out. chatpgpt is giving half-a$$ results
GitHub
WPF-Custom-Scrollbar/Source/MainWindow.xaml at master · CSharpDesig...
How to design a Custom Scrollbar in WPF. Contribute to CSharpDesignPro/WPF-Custom-Scrollbar development by creating an account on GitHub.
Adding IsDirectionReversed="True" to my Track attribute fixed the issue. Thanks guys.
when i pasted i was getting errors.. and didnt know how to solve it lol