Net5 Using Observable.FromEventPattern<KeyEventArgs> #1599
Answered
by
clairernovotny
SID9-HoneyBee
asked this question in
Q&A
-
I want to use RX in WPF Net5. To control the KeyDown event I installed System.Reactive as a Nuget package, but ObserverOn does not find DispatcherScheduler . keyDownSubscripton = Observable.FromEventPattern(this, "KeyDown")
How do I fix it? |
Beta Was this translation helpful? Give feedback.
Answered by
clairernovotny
Aug 27, 2021
Replies: 1 comment
-
You need to specify the 19041 SDK, like this |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
clairernovotny
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to specify the 19041 SDK, like this
net5.0-windows10.0.19041
as the TFM. You can target lower builds of Windows if desired, as that simply specifies the SDK used to build.