wpf - How to Detect When the Enter Key was Pressed using F sharp (F#) -


how detect when enter key pressed when using f sharp (f#) , xaml?

i haveve seen articles on how in c# (like this link) , didn't find on line while searching f#.

in console application can this, similar c# code.

open system let keystroke = console.readkey()  if keystroke.key.equals(consolekey.enter)     printfn "enter pressed" else     printfn "%c pressed" keystroke.keychar 

in wpf can information key presses registering previewkeydown, or similar events. how run simple c# code given keypress?


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -