Relative Content

Tag Archive for c#wpfxaml

Why aren’t my images clickable? is there an element overlapping it?

I am currently creating a basic Library Management system for self-learning purposes. I’m using WPF for my frontend and I currently have the list of books displayed to the user, the issue is, although I have it set so when the book image is clicked a popup is displayed, nothing happens. Here is my code:

Scroll functionality using mousewheel not working in wpf xaml

I have a usercontrol in wpf xaml which displays image in 4X4 grid. But im not able to scroll with my mouse scroll wheel and scroll bar does not move with my mouse scroll wheel.
I can move scroll bar only by clicking on it and dragging. Also my view is not changing dynamically when i move my scroll bar .Only when it settles down at a certain position, view of 4X4 grid images change.
How to fix these issues?

WPF – how to create completly custom element

I am trying to create something like this: https://csacademy.com/app/graph_editor/ in a WPF app, but I am not really sure how to approach it. I think I need to create something like a custom element with specific behavior, but I am not really sure if it is even possible to do.

KeyDown event needing multiple presses

I am trying to change some elements of my WPF page after pressing the right and left keys on my keyboard. It works somewhat fine, my problem is that I need to press the right or left keys 3 times each time I want something to change. Also, I don’t know if it’s relevant but a weird rectangle appears after pressing the key for the first time, but if I press it again it disappears.