A
A
Artem Skopintsev2014-06-11 19:51:29
WPF
Artem Skopintsev, 2014-06-11 19:51:29

How to register a routed event when creating a custom control if there is no EventManager class?

Good day!
I started creating a control for my Windows Store application and ran into the problem of missing the EventManager class when trying to register a routed event.
How can I register an event? Is this class being replaced by something else? Or is there a completely different approach to this?
Thank you in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Vishnyakov, 2014-07-24
@asvishnyakov

You can't declare a custom routed event for Windows Runtime; routed events are limited to the set that comes from the Windows Runtime.

And there are plenty of such bummers, like the lack of routing events or DynamicResource. And then Microsoft wonders why everyone hates WinRT so much.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question