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 the ability to triple click text boxes to select a whole line #765

Merged
merged 1 commit into from
Jul 31, 2023

Conversation

ScrubN
Copy link
Collaborator

@ScrubN ScrubN commented Jul 31, 2023

I hate the way I had to implement this. TL;DR we have to define it within every page/window it is used since defining it in app.xaml breaks the default visual template.

Note: The behavior must be defined everywhere that it is used; defining it just once within app.xaml breaks the default template.
@ScrubN ScrubN merged commit 3ea62f0 into lay295:master Jul 31, 2023
3 checks passed
@ScrubN ScrubN deleted the wpf-triple-click branch July 31, 2023 02:15
@Stelminator
Copy link
Contributor

Thank you! I didn't expect it to be pretty, but I didn't realize it would require so much copypasta.

@ScrubN
Copy link
Collaborator Author

ScrubN commented Jul 31, 2023

Thank you! I didn't expect it to be pretty, but I didn't realize it would require so much copypasta.

Ideally it should have just been used once in app.xaml but apparently templates don't behave correctly in that situation? So unfortunately it had to be a lot of copypasta, though it's still better than manually applying the property to every instance of a textbox.

@Stelminator
Copy link
Contributor

Stelminator commented Jul 31, 2023

Ideally it should have just been used once in app.xaml but apparently templates don't behave correctly in that situation?

Yup, I understand the compromise in the solution and I wish knew why it doesn't work in app.xaml, and I do not know.

@ScrubN ScrubN mentioned this pull request Aug 4, 2023
2 tasks
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.

triple click support in UI
2 participants