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

SearchTextBox centered #2071

Closed
wants to merge 13 commits into from

Conversation

aosyatnik
Copy link

@Benglin, this pull request is result of #1954 . Before creating pull request we've merged with DynamoDS:Sitrus. In this commit all changes of task Centering SearchTextBox.

Please, review.

Anna Osyatnik and others added 13 commits July 15, 2014 14:18
…SearchTextBoxGrid_MouseEnter" and "SearchTextBoxGrid_MouseLeave" was changed due to needs of moving icon and text block. Now when mouse moves on SearchTextBoxGrid StackPanel moves at the left side.
…so alignment now depends on Converters class. There is c# code only in Conventers class and there is only one method in SearchView - SearchTextBox_MouseDown.
…, I have tried to use Focus of TextBox as Binding element, but there is one problem: if we have some text in textbox and than lose focus, our icon appears at the center. That's why using focus for binding is wrong solution.

What I propose is to create new property in ViewModel. I called it CanAlingmentToLeft, that would depend not only on Focus, but also on value of textbox. Hope that you will accept this solution.
… white-space was deleted. It's ready for merge.
@Benglin
Copy link
Contributor

Benglin commented Aug 1, 2014

Closing this with Vladimir's request.

@Benglin Benglin closed this Aug 1, 2014
@vmoyseenko vmoyseenko deleted the SearchTextBoxCentering branch October 16, 2014 08:00
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