Skip to content

Commit

Permalink
DYN-5322 Update ML NodeAutocomplete Documentation (#13602)
Browse files Browse the repository at this point in the history
* DYN-5322-Doc-MLNodeAutocomplete

I updated the NodeAutocompleteDcoumentation.html to match the docx document attached to the Jira task.
For the GIFs/PNG updated I did the next actions:
- Modified the original images resolution to 450 x XXX (according to the aspect ratio).
- Compressed the modified image/GIF so it will use the minimum size in the html file when converted to Base 64 (otherwise the WebView2 component was crashing).
- Convert the Image/GIF to Base64 content and put it in the HTML file.

* DYN-5322-Doc-MLNodeAutocomplete CodeReview1

I've added the MouseDown event and the handler so every time the question mark symbol is clicked in the preferences panel the DocumentationBrowser ML NodeAutocomplete documentation will be opened.
  • Loading branch information
RobertGlobant20 authored and QilongTang committed Dec 7, 2022
1 parent b73c21e commit 6f990e2
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 24 deletions.
88 changes: 71 additions & 17 deletions src/DynamoCoreWpf/Controls/Docs/NodeAutocompleteDocumentation.html

Large diffs are not rendered by default.

15 changes: 8 additions & 7 deletions src/DynamoCoreWpf/Views/Menu/PreferencesView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -728,13 +728,14 @@
VerticalAlignment="Center"
Foreground="{StaticResource PreferencesWindowFontColor}"/>
<Image Name="MLNodeAutocompleteToolTip"
Margin="5,3,0,0"
Width="14"
Height="14"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Style="{StaticResource QuestionIcon}"
ToolTipService.ShowDuration="30000">
Margin="5,3,0,0"
Width="14"
Height="14"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Style="{StaticResource QuestionIcon}"
MouseDown="OnMoreInfoClicked"
ToolTipService.ShowDuration="30000">
<Image.ToolTip>
<ToolTip Content="{x:Static p:Resources.PreferencesViewEnableNodeAutoCompleteTooltipText}" Style="{StaticResource GenericToolTipLight}"/>
</Image.ToolTip>
Expand Down
5 changes: 5 additions & 0 deletions src/DynamoCoreWpf/Views/Menu/PreferencesView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,11 @@ private void importTextBlock_MouseLeftButtonDown(object sender, MouseButtonEvent
}
}

private void OnMoreInfoClicked(object sender, MouseButtonEventArgs e)
{
dynViewModel.OpenDocumentationLinkCommand.Execute(new OpenDocumentationLinkEventArgs(new Uri(Dynamo.Wpf.Properties.Resources.NodeAutocompleteDocumentationUriString, UriKind.Relative)));
}

private void exportTextBlock_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
var dialog = new DynamoFolderBrowserDialog
Expand Down

0 comments on commit 6f990e2

Please sign in to comment.