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.
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.
Revert fork "Sitrus" to initial state
Merge remote-tracking branch 'remotes/upstream/Sitrus' into Sitrus
InputParametrs are split into List of Tuples. When there is no input/output "none" appears. Alignment was added, when tooltip can not align with the top of hover item it adjusts to the best position possible. Towards the bottom of the canvas. When description is too long the text is wrapped.
Added forgotten changes.
Merge remote-tracking branch 'remotes/upstream/Sitrus' into TooltipRedesign