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.
Initial commit for tooltip
Copy Icon
Temporally commit. Image(only one) from library could be load.
Creation of image in Dynamo Engine was removed. Now only one Popup element is used for all buttons.
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.
Mutation tests have been added
Renamed from Tooltip in ToolTip, Input/Output are now only in NodeSearchElement. DynamoPopup now includes TooltipWindow, so it's 1 class. DependencyProperty objects removed, now tooltip uses Datacontext.
Add builtin method TryGetValue
Add ArrayUtils.TryGetValueFromDictionary()
Remove validity check
Updating mutation tests according to the Sharad's recommendations