Search TextBlock horizontal alignment centered
StackPanel for SearchIcon and TextBlock "Search" was added. Methods "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.
Search Panel was fixed: on mouse click it aligns to the left edge, also alignment now depends on Converters class. There is c# code only in Conventers class and there is only one method in SearchView - SearchTextBox_MouseDown.
Ben, as you wrote "to use IsKeyboardFocusWithin or something similar", 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.
Functions which don't have grouping information is grouped as Actions
Merge branch 'Sitrus' of https://github.com/vmoyseenko/Dynamo into Sitrus
Added forgotten changes for SearchViewModel.cs
SearchText stackPanel now uses property SearchIconAlignment for HorizontalAlignment.
Updates: statements after if or else, removed Grid.Column attributes, white-space was deleted. It's ready for merge.
@Benglin please merge it with Sitrus.
Revert fork "Sitrus" to initial state
Merge remote-tracking branch 'remotes/upstream/Sitrus' into Sitrus
Merge remote-tracking branch 'remotes/origin/Sitrus' into TooltipRedesign