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
1
vote
1 answer
WPF RadioButton Click with RaiseEvent
We have a simple control that inherits from a RadioButton. I would like to programmically check it.
If it were a button we would click we would normally do.
Button MyButton = ...
MyButtonClickArgs = new RoutedEventArgs(Button.ClickEvent,…

denver
- 2,863
- 2
- 31
- 45
1
vote
2 answers
raising events passing parameters in wpf
I'd like to add tabs to my window when an item in the GridView is double-clicked. But the tab that will be added depends on the clicked item. Which way should I do this on WPF? I thought about RoutedEvents, but I don't know how to pass a parameter…

Thiago
- 2,238
- 4
- 29
- 42
1
vote
1 answer
How are UI events generated in WPF?
I am trying to understand how UI related RoutedEvents are generated in WPF.
For instance, how does pressing the left mouse button on a control starts the tunneling of PreviewMouseDown?
I couldn't find a clear answer myself. My intuition is that the…

elnigno
- 1,751
- 14
- 37
1
vote
1 answer
Check if EventSetter is declared for UserControl from ParentWindow
I am making a ToolBar menu UserControl for my project. The ToolBar will have n quantities of buttons based on each situation it undergoes. So for example in certain windows toolbar will have new, edit, delete buttons, but in other it might have…

user3524375
- 86
- 1
- 1
- 8
1
vote
1 answer
MS Surface Tag Visualizer steals contact events
I'm struggling with the TagVisualizer control on an MS Surface project. In theory the control seems great, allowing you to respond to input from real world physical objects
The problem is that the control will cover the entire screen (since I want…

Isak Savo
- 34,957
- 11
- 60
- 92
1
vote
1 answer
WPF: make mouse enter/leave work on back peer while click works on front
The code below is a complete example of my conundrum. I need mouse enter/leave events to work on the back peer while still having mouse events work on the front peer. So far I can only get one or the other. I get the background events to work by…

Brannon
- 5,324
- 4
- 35
- 83
1
vote
0 answers
TagVisualizer not allowing touch meant for the TagVisualization
my TagVisualizer covers the whole MS Surface window, when a tagged object is placed a TagVisualization (which is merely a dummy list) is shown as it should. However, I can not touch an item from the list if an object is on the surface (using persist…

Sheroug
- 11
- 2
1
vote
4 answers
Ignore parent in PreviewMouseButtonDown on TreeviewItem
I have a treeview and im trying to implement a drag and drop functionallity.