WPF C# runtime graphical editor on form. Easiest solution - c#

I am trying to find a solution to creating a graphical designer that will allow users to modify objects using a graphical editor in runtime.
The idea is to create a type of network diagram that displays how network devices are connected. I would like a user to connect objects together on here and allow the diagram to display connection arrows that are automatically drawn based on the number of connections etc.
I would like configuation in my editor to be saved in my database and I am using Entity Framework. So I will probably add rows for each object and reference a child object's ID to show that it has something connected to it.
This is what I was thinking:
What would be the least time consuming (easiest) way to achieve this? Is there a framework or API available that someone could suggest?

There's a series of codeproject articles could be interesting to get you started:
https://www.codeproject.com/Articles/22952/WPF-Diagram-Designer-Part
https://www.codeproject.com/Articles/24681/WPF-Diagram-Designer-Part-4
( I've not tried the code or looked at it in depth. )

Related

Surface offline maps

I'm developing Surface application, but I came across a problem. I need to develop a control with next abilities:
World map on background (should display only continents).
I need a way to find out on which continent user touched(interactive background map).
Any controls can be added on the top of the map control (for an example video-player control for different regions of the map).
Map control should works in offline mode only (without any
connection to internet).
I can't find any frameworks that would meet my goals.
So, anyone know something projects/code samples that can help me to achieve my goals
Offline mapping could be done in many ways, one of them would be download / get shapefile for continents. (You can search for that). Later you can use SharpMap to display that shapefile in WPF application. SharpMap is a .Net framework based open source application which enables reading multiple geospatial formats.
Another option to read geo-spatial data is DotSpatial.

Best C# UI component for displaying entities and its relationships

I am creating a UI rich application in C# forms (.net 4.5) for managing/displaying family tree. I tried using many already available products. But none of the free products available have the feature to display and print the complete family tree in a screen. So I have decided to write one myself.
Now I have decided to use graph for the UI and a node will be created depicting each person in the database. I am planning to parse through the complete database in the step 1 and create a logical graph. Step 2 is to display the logical graph with a rich UI. I am planning to have simple features like, when we right click on the appropriate node, we must get the option to update their information.
So my question now is, to cater the above requirement; what is the best component could be used.
Thanks in advance,
S.Sudharsan
Graph# is an open-source C# component for displaying graphs. It requires a little bit of work because it hasn't been maintained in a long time but still very useful.
I had the same problem some time ago.
The final solution was to design each graph node as a user control (so you can customize all the visual properties) and use GraphViz (in my case DOT algorithm) to calculate node positioning.
If you don't want to use any third party framework, you should do some research about graph layout (especially the Sugiyama algorithm).

ASP.NET Visual diagram\ flowchart control

I am looking for a diagram\ graph\ flowchart user control for web application preferably ASP.NET.
My wish would be to pass a Graph object that contains a collection of nodes and edges and the capabilities that i would look for are:
Add a new node.
Connect two nodes together with an edge.
Delete nodes and edges
Automatic layout algorithm to minimize crossing of layers and edges
I found parts of the solution that will help me to create such a component such as:
JSPlumb or Raphael to draw the graph on the clients.
GLEE\ MSAGL to automatically order the graph in visual terms.
All of these will allow me to construct a component but i was wondering if anyone have already seen something that is web based and could do the task?
hopefully its open source :)
Have you considered Dracula Graph Library? It looks like it would handle part 4 very well. You would only have to wire up some edit controls for the user.
From this SO question apart from Raphael there is jointjs.com worth checking out

A route from vector drawing -> c# windows application

I have a requirement to present in my c# windows application a "map" of a building, with different rooms coloured in various ways to indicate various things. This needs to be renderable at different sizes and from different perspectives, and needs not to be a one off exercise, but a repeatable process for different establishments.
I am thinking of it in terms of an old school level editor (think old ID stuff), the product of which can be rendered top down; it sounds like an awful lot of work to get into designing my own editing tool, so am looking for a way to hook an existing tool into c#.
I have got the .NET drawing code down (if need be), and I have got the Adobe Illustrator design down (again, if need be) - what I am looking for is a way to link the two, or (if appropriate) a suggestion to use something different in those two roles entirely. Any and all suggestions very gratefully received, thank you!
I'd look at Microsoft Visio - it seems more appropriate for architectural/schematic diagrams than Illustrator and there should be already .NET libraries to use Visio-generated drawings.

Card Print in C#

I'm going to develop a small windows application using C# .NET in VS 2010. The app should read the personnel's data and fill a card layout's fields and then user can click the print button in order to print the card. What is the best solution for printing the card and displaying it to the user?
Like all thing in programming it depends on how much work you want to do. In our app (not sure if I am allowed to post a link, so better not) we take the data from user in a fairly standard form and then use standard graphical style calls to draw the card. This same code can then either draw into an image control for showing to the user OR to a printer device to produce the final output. We have (several) abstraction layers so that the calls for drawing into either type of output are the same.
In general we have found it much more productive to develop our own custom solutions rather than rely on a reporting component. The custom solution is easier to change and in most cases the functionality actually required takes only a day or so of work.
ReportViewerControl http://msdn.microsoft.com/en-us/library/ms251671.aspx is a possible candidate. it is free of charge if you have Visual Studio and it can export the report in PDF too. You can bind to a custom DataSource ( it does not need a Database behind ) and when it's done customizing takes minutes.

Categories