Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tooltip to preview disabled nodes #11048

Merged
merged 1 commit into from
Aug 24, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions src/DynamoCoreWpf/Views/Core/NodeView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@
Background="#99B8CA"
Opacity=".4"
Style="{StaticResource SZoomFadePreview}"
ToolTipService.ShowDuration="60000"
MouseDown="NameBlock_OnMouseDown">
<Border.Visibility>
<Binding Path="IsVisible"
Expand All @@ -291,6 +292,38 @@
Converter="{StaticResource InverseBoolToVisibilityConverter}">
</Binding>
</Border.Visibility>
<Border.ToolTip>
<dynui:DynamoToolTip AttachmentSide="Top"
Style="{DynamicResource ResourceKey=SLightToolTip}">
<Grid>
<StackPanel Orientation="Vertical"
MaxWidth="320">
<StackPanel>
<TextBlock TextWrapping="Wrap"
Text="{x:Static p:Resources.NodeTooltipOriginalName}">
</TextBlock>
<TextBlock TextWrapping="Wrap"
Text="{Binding Path=OriginalName}"
FontWeight="SemiBold">
</TextBlock>
</StackPanel>
<!--Space for splitting the original name and description-->
<StackPanel>
<TextBlock Text="&#xD;" />
</StackPanel>
<StackPanel>
<TextBlock TextWrapping="Wrap"
Text="{x:Static p:Resources.NodeTooltipDescription}">
</TextBlock>
<TextBlock TextWrapping="Wrap"
Text="{Binding Path=Description}"
FontWeight="Normal">
</TextBlock>
</StackPanel>
</StackPanel>
</Grid>
</dynui:DynamoToolTip>
</Border.ToolTip>
</Border>
<Border Name="previewState"
Grid.Row="2"
Expand Down