Questions tagged [routedevent]

A routed event is a type of event that can invoke handlers on multiple listeners in an element tree, rather than just on the object that raised the event.

53 questions
3
votes
1 answer

Custom Routed Event in F#

I'm trying to translate this C# code. My attempt so far: type MyButtonSimple() as self = inherit Button() static let TapEvent = EventManager.RegisterRoutedEvent ( "Tap", RoutingStrategy.Bubble, …
Funk
  • 10,976
  • 1
  • 17
  • 33
3
votes
1 answer

Can you use routed events with a MultiTrigger?

Does WPF support using a triggers that respond to routed events but only given a condition is met? For example, WPF supports triggering on routed events through Event Triggers. ie:
Marchy
  • 3,334
  • 5
  • 37
  • 27
2
votes
2 answers

why does the wpftoolkit datepicker eat the return key down event?

I am wondering if anybody knows why the datepicker will pass standard keys to any parent control's key down routed event, but not the return key? here's the xaml i wrote:
Nathan Tregillus
  • 6,006
  • 3
  • 52
  • 91
2
votes
1 answer

WPF Command bindings - how can I get to event handlers

Hi Is there any way to choose from where XAML should use command bindings event handlers? I added copule of command binding to my cusotm control, however functions which are resonsible for execute and can_execute are not directly in code behind but…
wpflerner
  • 21
  • 2
2
votes
2 answers

The bast way to track "modified" of a control?

I have a usercontrol which may contain many different kind of controls (e.g. button, textbox, combobox or checkbox). I need a generic way to track if anything has been changed. In most cases I don't care about the details (ie I don't need to know…
newman
  • 6,841
  • 21
  • 79
  • 126
2
votes
1 answer

Can RxJS Observables be only handled by one subscriber?

I'm trying to understand how Observables and RxJS works, so this might be not at all the point of how to use them. I have an Angular2 application and am additionally using RxJS Observables to send events around. Now for a special type of error…
peter
  • 14,348
  • 9
  • 62
  • 96
2
votes
0 answers

Wpf Usercontrol, Check if RoutedEvent is bound

I have the following UserControl:
2
votes
1 answer

F# Event Handler using XAML markup

Now that I have a Custom Routed Event, how can I specify a handler in XAML?