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

Dummy Node Remove Color Overlays #12743

Merged
merged 2 commits into from
Mar 30, 2022
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using System.Windows.Media.Imaging;
Expand All @@ -24,12 +25,19 @@ public void CustomizeView(DummyNode model, Dynamo.Controls.NodeView nodeView)
Width = 66.0,
Height = 66.0,
Stretch = Stretch.UniformToFill,
HorizontalAlignment = HorizontalAlignment.Center,
VerticalAlignment = VerticalAlignment.Center,
Source = new BitmapImage(new Uri(src, UriKind.Relative))
};
RenderOptions.SetBitmapScalingMode(dummyNodeImage, BitmapScalingMode.HighQuality);

nodeView.inputGrid.Children.Add(dummyNodeImage);
model.Warning(model.GetDescription(), true);

// Grid containing the State overlay Glyphs in Zoomed Out state
// Remove so only the 'paperclip' icon appears
UIElement child = nodeView.grid.FindName("zoomGlyphsGrid") as UIElement;
if (child != null) nodeView.grid.Children.Remove(child);
}

public void Dispose()
Expand Down