public VplControl()
{
if (!DesignerProperties.GetIsInDesignMode(this))
{
try
{
DefaultStyleKeyProperty.OverrideMetadata(typeof (VplControl),
new FrameworkPropertyMetadata(typeof (VplControl)));
}
catch (Exception ex)
{
Console.WriteLine(ex);
}
Style = FindResource("VplControlStyle") as Style;
GraphFlowDirection = GraphFlowDirections.Vertical;
KeyDown += VplControl_KeyDown;
KeyUp += VplControl_KeyDown;
ScaleTransform.Changed += ScaleTransformOnChanged;
NodeCollection = new TrulyObservableCollection<Node>();
NodeGroupCollection = new List<NodeGroup>();
ConnectorCollection = new List<Connector>();
SelectedNodes = new TrulyObservableCollection<Node>();
SelectedConnectors = new TrulyObservableCollection<Connector>();
ExternalNodeTypes = new List<Type>();
TypeSensitive = true;
InitializeGridBackground();
InitializeTheme();
}
}