Skip to content

Commit 483d9ee

Browse files
DYN-5322 Update ML NodeAutocomplete Documentation (#13602)
* 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.
1 parent 25518cd commit 483d9ee

File tree

3 files changed

+84
-24
lines changed

3 files changed

+84
-24
lines changed

src/DynamoCoreWpf/Controls/Docs/NodeAutocompleteDocumentation.html

Lines changed: 71 additions & 17 deletions
Large diffs are not rendered by default.

src/DynamoCoreWpf/Views/Menu/PreferencesView.xaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -728,13 +728,14 @@
728728
VerticalAlignment="Center"
729729
Foreground="{StaticResource PreferencesWindowFontColor}"/>
730730
<Image Name="MLNodeAutocompleteToolTip"
731-
Margin="5,3,0,0"
732-
Width="14"
733-
Height="14"
734-
HorizontalAlignment="Center"
735-
VerticalAlignment="Center"
736-
Style="{StaticResource QuestionIcon}"
737-
ToolTipService.ShowDuration="30000">
731+
Margin="5,3,0,0"
732+
Width="14"
733+
Height="14"
734+
HorizontalAlignment="Center"
735+
VerticalAlignment="Center"
736+
Style="{StaticResource QuestionIcon}"
737+
MouseDown="OnMoreInfoClicked"
738+
ToolTipService.ShowDuration="30000">
738739
<Image.ToolTip>
739740
<ToolTip Content="{x:Static p:Resources.PreferencesViewEnableNodeAutoCompleteTooltipText}" Style="{StaticResource GenericToolTipLight}"/>
740741
</Image.ToolTip>

src/DynamoCoreWpf/Views/Menu/PreferencesView.xaml.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,11 @@ private void importTextBlock_MouseLeftButtonDown(object sender, MouseButtonEvent
477477
}
478478
}
479479

480+
private void OnMoreInfoClicked(object sender, MouseButtonEventArgs e)
481+
{
482+
dynViewModel.OpenDocumentationLinkCommand.Execute(new OpenDocumentationLinkEventArgs(new Uri(Dynamo.Wpf.Properties.Resources.NodeAutocompleteDocumentationUriString, UriKind.Relative)));
483+
}
484+
480485
private void exportTextBlock_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
481486
{
482487
var dialog = new DynamoFolderBrowserDialog

0 commit comments

Comments
 (0)