Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FluentAvalonia v2-preview4 #241

Merged
merged 4 commits into from
Nov 13, 2022
Merged

FluentAvalonia v2-preview4 #241

merged 4 commits into from
Nov 13, 2022

Conversation

amwx
Copy link
Owner

@amwx amwx commented Nov 13, 2022

Updates to Avalonia11.0-preview4

Changes that had to be made to support preview4, since it was apparently decided pointer and key eventargs shouldn't be publicly construct-able:

  • MenuFlyoutItemBase & MenuFlyoutSubItem now reuse the existing PointerEntered and PointerExited event args and just change the RoutedEvent to the MenuItem.PointerEntered[Exited]ItemEvent. No idea if this has side-effects, but seems to work
  • TextCommandBarFlyout Undo/Redo now uses the RawInputEvent (lower-level) to raise the necessary keystrokes for triggering Undo or Redo. I've also updated this to iterate over the key configurations in the PlatformHotKeyConfiguration rather than hard-coding to Ctrl-Z & Ctrl-Y. No other TextCommandBarFlyout behaviors have been changed or implemented to support newer features (will go on the list though)

Please remember that preview versions may have breaking changes between versions causing incompatibility between this library and upstream with version mismatches. Either wait until I update the package here or tread carefully if using a new upstream preview.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant