Access keyboard and mouse state like in WPF #5487
Unanswered
mcmikecreations
asked this question in
Q&A
Replies: 1 comment 8 replies
-
|
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! I'm currently trying to translate code from WPF to Avalonia and I ran into problems with WPF Keyboard and Mouse classes.
I'm looking for a replacement for
Keyboard.Modifiers
andMouse.LeftButton
etc. for methods that are not direct mouse and keyboard event handlers. For example, this line for keyboard and this line for mouse.P.S. As a follow-up to #5470, is there a way to access system properties like in WPF:
VerticalScrollBar.Track
hereSystemParameters.WheelScrollLines
hereVisual.TransformToAncestor
hereMaybe
Point point = TransformToAncestor(_parent).Transform(new Point(0, 0))
is identical toPoint point = new Point(0, 0).Transform(this.TransformToVisual(_parent))
?FrameworkElement.LayoutTransform
the same as AvaloniaVisual.RenderTransform
as here?Beta Was this translation helpful? Give feedback.
All reactions