logicalerror / graph Goto Github PK
View Code? Open in Web Editor NEWSimple winforms control to create and edit directional graphs
License: MIT License
Simple winforms control to create and edit directional graphs
License: MIT License
// in ExampleForm()
graphControl.Click+=new EventHandler(graphControl_Click);
// elsewhere
void graphControl_Click(object sender, EventArgs e)
{
SystemSounds.Beep.Play();
if (graphControl.FocusElement != null)
lblFocus.Text = graphControl.FocusElement.ToString();
else
lblFocus.Text = string.Empty;
}
You will see that the value of FocusElement will not be correct. NodeSelection when nothing is active or selected. Node after clicking away from a node to deselect it.
This should be two events:
Hello, Nice work but i have one problem.
Cannot serialize graph nodes to the file.
i saw this error:
"GraphNode" is not marked serializable.
But when i marked serializable class and removed read only item,
I have serialized the node but if node have a connection i got a crash whit same problem
Have a idea how to fix this bug?
Hello,
I am attempting to use the Graph library for an event editor for a video game. However, I am unable to make connections between nodes via the viewport. I can still create connections programmatically.
This is the case even when the compatibility strategy is set to AlwaysCompatible. I have tried to use TagTypeCompatibility and I fumbled around with my own TagValueCompatibility, but to no avail.
I was unable to find a solution to the issue by looking at the example project given with the library.
This is how I initialize the graph context.
I have custom Nodes, which you can see here and here.
I might also add that I am using this within a WPF project via a WindowsFormHost; that may be a crucial detail.
Any ideas about how to solve this issue would be appreciated.
Doesnt look like you were giving much gratitude for the project files, I just wanted to say thank you an have a great day.
Added this to test how focusing works:
'''
//in ExampleForm()
graphControl.MouseUp += new MouseEventHandler(graphControl_MouseUp);
//elsewhere
void graphControl_MouseUp(object sender, MouseEventArgs e)
{
SystemSounds.Beep.Play();
if (graphControl.FocusElement != null)
lblFocus.Text = graphControl.FocusElement.ToString();
else
lblFocus.Text = string.Empty;
}
'''
When you click and hold, you will hear a beep, and another when you let go.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.