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

Add custom, clickable margin in demo #420

Merged
merged 3 commits into from
May 31, 2024

Conversation

mgarstenauer
Copy link
Contributor

This PR adds a custom margin to the text editor demo. It behaves like the breakpoint margin in Visual Studio. A gray circle is rendered when the mouse is over the margin and a red circle is rendered when the margin is clicked.

Screenshot:
image

@mgarstenauer
Copy link
Contributor Author

I changed the colors to match the breakpoint margin in Visual Studio.

image

I think it would be helpful to add this change to the AvaloniaEdit.Demo. It demonstrates how to use AvaloniaEdit's AbstractMargin. (However, feel free to decline the PR if you don't want to bloat the AvaloniaEdit.Demo - that's fine with me.)

@danipen danipen merged commit f92e552 into AvaloniaUI:master May 31, 2024
2 checks passed
@mgarstenauer mgarstenauer deleted the demo-custom-margin branch May 31, 2024 13:48
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.

2 participants