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

Textfield selection properties not working #635

Closed
DevFromDownUnder opened this issue Mar 22, 2024 · 3 comments
Closed

Textfield selection properties not working #635

DevFromDownUnder opened this issue Mar 22, 2024 · 3 comments
Labels
control-textfield enhancement New feature or request
Milestone

Comments

@DevFromDownUnder
Copy link
Contributor

Just testing selection properties of a textfield and they are not working, not sure about others.

Setting child properties does work.

Using TextField page of uranium app as a test

private void TestRoot_Clicked(object sender, EventArgs e)
{
    NameField.Focus();

    NameField.CursorPosition = 0;
    NameField.SelectionLength = NameField.Text?.Length ?? 0;
}

private void TestChild_Clicked(object sender, EventArgs e)
{
    NameField.Focus();

    NameField.EntryView.CursorPosition = 0;
    NameField.EntryView.SelectionLength = NameField.Text?.Length ?? 0;
}

TestRoot_Clicked

image

TestChild_Clicked

image

DevFromDownUnder pushed a commit to DevFromDownUnder/UraniumUI that referenced this issue Mar 22, 2024
@DevFromDownUnder
Copy link
Contributor Author

Thought the existing pull had already been accepted, accidentally added to it.

#634 has the commits for this.

Do you want me to delete the PR and split into two new PRs?

DevFromDownUnder pushed a commit to DevFromDownUnder/UraniumUI that referenced this issue Mar 22, 2024
@DevFromDownUnder
Copy link
Contributor Author

Thought the existing pull had already been accepted, accidentally added to it.

#634 has the commits for this.

Do you want me to delete the PR and split into two new PRs?

Reset and branched into a new PR.

I will review the unit tests before creating a new PR.

@DevFromDownUnder
Copy link
Contributor Author

Have this ready to go, will wait for the other PR to be accepted to complete to avoid conflicts.

@enisn enisn added control-textfield enhancement New feature or request labels Mar 22, 2024
@enisn enisn added this to the v2.9 milestone Mar 22, 2024
DevFromDownUnder added a commit to DevFromDownUnder/UraniumUI that referenced this issue Mar 25, 2024
enisn added a commit to DevFromDownUnder/UraniumUI that referenced this issue Mar 27, 2024
enisn added a commit that referenced this issue Apr 1, 2024
#635 Update properties for two way binding to EntryView
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
control-textfield enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants