a way for a windows presentation foundation (WPF) class to provide notifications to clients when some interesting thing happens to the object.
Questions tagged [routed-events]
239 questions
0
votes
4 answers
Stopping a Control from handling routed events
Hopefully a simple question as I'm just getting to grips with routed events.
I have a custom UserControl. This contains lots of other controls.
Further up my tree I want to respond to double click events originating from one of the contained…

GazTheDestroyer
- 20,722
- 9
- 70
- 103
0
votes
2 answers
DataGrid inside TabItem event handling
I have a TabControl with two TabItems, inside the one TabItem I have a DataGrid.
I'm trying to handle the TabItem click, and it works, but, when I click in one row of the "dataGrid1" the event "TabItem_MouseLeftButtonUp" of TabItem click is fired…

Ewerton
- 4,046
- 4
- 30
- 56
0
votes
1 answer
EventTrigger RoutedEvent amimation in wpf xaml
I want an animation to be launched when MyObject.IsGlowing = true so I did this (I'm in a if that can help)
…

user1617263
- 1
- 1
0
votes
1 answer
WPF Not receiving routed events from user control
I have a UserControl which acts as a custom button, but since I changed my namespaces around the routed click event no longer works. Essentially my namespaces look something like this:
UI
UI.Controls
UI.Pages
I have a UI.Controls.CustomButton…

FlyingStreudel
- 4,434
- 4
- 33
- 55
0
votes
1 answer
WPF and routed event
I have a WPF window, which has a button that is inside a stackPanel, which is inside another stackPanel
I wrote an event handler for the button for the MouseDown event.
I want to execute this eventHandler three times for the button and the parent…

Ghassan Karwchan
- 3,355
- 7
- 37
- 65
0
votes
1 answer
PreviewMouseRightButtonDown routed event and WPF DataGrid
Now basically there are two questions here, let me just gently introduce you to the problem I'm having at the moment. Let's say we have a regular DataGrid, and I try to apply the PreviewMouseRightButtonDown on the row for custom functionality and at…

Patryk Ćwiek
- 14,078
- 3
- 55
- 76
0
votes
1 answer
Raising Keyboard events via an Interface in WPF
I am trying to build an application in WPF, where I want to handle inputs (KeyPress events) from multiple Keyboards connected to a single computer. So, I have a single class where I override the WndProc() method and am able to receive input from…

Himanshu Verma
- 257
- 1
- 3
- 10
0
votes
1 answer
WPF Firing the RoutedEvents with a Delay
I am gathering all the routed events fired for the MouseRightDownButton and storing them in a Queue. I have the Sender object as well as the RoutedEventArgs.
Now, I need to fire those events one by one and with a little pause. I also want to update…

azamsharp
- 19,710
- 36
- 144
- 222
0
votes
1 answer
How does the WPF event system know about the event route?
I am trying to understand how RoutedEvents work.
Well - I walked through some tutorials and understood why RoutedEvents are useful and how they work.
But there is one thing, that I don't get:
Let's say I wrote a class (e.g. "MyClass") , which has a…

CodeCannibal
- 324
- 6
- 21
0
votes
1 answer
What's wrong with declaration of this routed event?
I've created the following UserControl:
public partial class ReplacementPatternEditor : UserControl, INotifyPropertyChanged
{
....
public static readonly RoutedEvent CollectionChanged = EventManager.RegisterRoutedEvent(
…

serentei
- 57
- 1
- 1
- 5
0
votes
2 answers
Passing data between different views
I am writing a WPF application in C# according to the MVVM model.
I have a MainWindow which consists of several views: MenuView, ContentView1, ContentView2, . . . and so on.
The MenuView, ContentView1, ContentView2 . . ., are all cousins (not…

Dazy Jackson
- 85
- 1
- 4
- 12
-1
votes
1 answer
RoutedEvents Combobox not Firing
Hi could some kind person help. I have two user controls. One with a textbox, the other with a Combobox. The Main window will perform calculation routine as soon as combos and textboxes are modified.
The Textbox version works, the ComboBox…

Michael Boyd
- 17
- 6
-1
votes
1 answer
Why WPF ListBox.ListItems do not raise MouseRightButtonDown
I am trying out RoutedEvent example from WPF 4 Unleashed book. The example has many controls on a Window and it has defined MouseRightButtonDown on Window to display event source in the title bar of the window.
So when we right click on any of the…

Mahesha999
- 22,693
- 29
- 116
- 189