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 1 commit
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,26 @@ 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);

UIElement child = nodeView.grid.FindName("zoomGlyphsGrid") as UIElement;
nodeView.grid.Children.Remove(child);

child = nodeView.grid.FindName("nodeColorOverlayZoomIn") as UIElement;
nodeView.grid.Children.Remove(child);

child = nodeView.grid.FindName("nodeBorder") as UIElement;
nodeView.grid.Children.Remove(child);

child = nodeView.grid.FindName("GlyphStackPanel") as UIElement;
nodeView.grid.Children.Remove(child);
sm6srw marked this conversation as resolved.
Show resolved Hide resolved
}

public void Dispose()
Expand Down