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

Select all text in Spinner on focus #334

Closed
polepage opened this issue Jul 21, 2016 · 2 comments
Closed

Select all text in Spinner on focus #334

polepage opened this issue Jul 21, 2016 · 2 comments
Assignees
Milestone

Comments

@polepage
Copy link

polepage commented Jul 21, 2016

I want to imitate the behavior of Office 2013 controls, where all text in spinners and editable combo boxes is selected when it get focus. I don't see any way to do that in the current API as the textbox is obviously hidden in the implementation.

I tried to access the GotFocus and MouseDown routed events using methot outlined in issue #203 to no avail. In fact I don't understand where to put this kind of code to access the event.

Is there a way outside of using a different version of the control?

Thank you.
Pierre

Environment

  • Fluent.Ribbon v4.0.3
  • Theme Office 2013
  • Windows 10
  • .NET Framework 4.6
@batzen batzen added this to the 5.0.0 milestone Jul 22, 2016
@batzen batzen self-assigned this Jul 22, 2016
@batzen
Copy link
Member

batzen commented Jul 22, 2016

You have to put the code at your app startup, for example in your app class.

There is currently no option in Fluent.Ribbon to select all text on focus. I will add such a property to the Spinner control in v5.0 for you.

There is no different version of the control. We only provide one version of every control in Fluent.Ribbon.

@polepage
Copy link
Author

1- Thanks I'll try that.
2- Thank you!
3- I meant doing my own version of your control. :)

Thank you.

@batzen batzen changed the title Select all text in control. Select all text in Spinner on focus Jul 24, 2016
@batzen batzen closed this as completed in 5dfcec2 Aug 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants