-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello,
I have an Adorner which adornes a Border (please see screenshot below). The MouseDown Event for the Adorner is however only raised, when clicking on an element in the adorner. I need the MouseDown Event to be raised, when clicking on any place in the adorner above the adorned element. How…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello,
I have an Adorner and I want that Adorner to be able to receive keyboard events, but I'm having problems with those whole focus stuff. Can somebody please tell, what has to be done to make an adorner able to receive keyboard events? Thank you very much for any help!
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
In a UI I'm building, I want to adorn a panel whenever one of the controls in the panel has the focus. So I handle the IsKeyboardFocusWithinChanged event, and add an adorner to the element when it gains the focus and remove the adorner when it loses focus. This seems to work OK.
The problem I'm…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm developing a WPF app using MVVM. Most of my views have only xaml markup and nothing (except default boilerplate) on code behind.
All except one view that I use adorners to "blacken" the screen when I want to make the whole screen disabled.
private void Window_Loaded(object sender, RoutedEventArgs…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm trying to add an overlay effect to my UserControl and I know that's what adorners are used for in WPF. But I'm a bit confused about how they supposedly work. I figured that adorner layer is implicitly handled by WPF runtime, and as such, should always be available.
But when I create an instance…
>>> More