Embedding a flowchart design surface in a .net application [closed] - c#

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I need to incorporate a flowchart design surface into an app we're developing to allow users to create what are essentially workflows/schedules. I need to be able to create my own 'shapes', set custom properties on them and possibly have a bit of logic in there too (if, while etc).
I know I need to take a look at hosting WF in the app, it looks like a good fit, but does anyone know of other designer compoments out there I could use.

Have a look at these resources, both are free solutions, but compared to the commercial ones (Mindfusion, GoDiagram) they require some more development work on your side:
WPF Diagram Designer # CodeProject (requires WPF)
Netron library (without WPF)

You should try Visual Studio Extension. You are able to use the VS.NET IDE for free, create diagrams, export into xml/webservice/custom format etc.
For example, you can create a tool to describe concepts that are specific to how your organization models business processes. If you are building a state chart tool, you can describe what a state is, what properties a state has, what kinds of states exist, how transitions between states are defined, and so on. A state chart that describes the status of contracts in an insurance company is superficially similar to a state chart that describes user interaction among pages on a Web site. However, the underlying concepts between the two state charts will differ significantly. By creating your own domain-specific language and custom-generated designer, you can specify exactly what state chart concepts you need in your tool.
Start here. Examples here:
Storyboard designer sample
DSL Tools Lab
(source: microsoft.com)

Related

Prism WPF MVVM Hello World [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I'm trying to find a Windows friendly UI development environment that I can translate what experience I do have into something usable, maintainable, and current. I like the idea of a web based UI, but that introduces another problem since a local Windows platform is required to perform various computations (because that's where the binaries and licenses are available).
I've decided on WPF + a well supported MVVM framework like Prism as a starting point. I have looked at the WPF samples they provide here:
https://github.com/PrismLibrary/Prism-Samples-Wpf
For the Prism supplied "examples", there isn't much of a description for what is going on in each step. There is mention of a Hello World example being added 3 years ago, but that doesn't seem to exist anymore.
Does anyone know of a good, simple example, based on the current Prism WPF Template, showing how to implement a "Hello World" type application? In my mind, something where you click a button that fires off an activity that when complete, will update a text box, or any other text/numeric control on the UI?
Based on further explanation in the comments.
PRISM has a huge amount of cruft rather than least and I suggest you instead look at mvvmlight. The way I would usually work is to create a new wpf app then add mvvmlightibs as a package using nuget.
I put together two samples you might find relevant:
https://social.technet.microsoft.com/wiki/contents/articles/31915.wpf-mvvm-step-by-step-1.aspx
https://social.technet.microsoft.com/wiki/contents/articles/32164.wpf-mvvm-step-by-step-2.aspx
The second uses mvvmlight.
I'm not suggesting you read just my articles but I have a bunch of them on wpf and a lot are aimed at newbies.
https://social.technet.microsoft.com/wiki/contents/articles/30959.user-page-andy-oneill.aspx

Rich native client for MSDN library documentation [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
The MSDN Library provides great documentation for .NET/C#. However, the primary delivery medium, HTML via a web browser is suboptimal. A rich native Windows client for browsing this documentation seems like a perfect opportunity to showcase WPF. Is there such a client available? Are there any alternative interfaces to the MSDN Library?
Visual Studio 2010 can download the help to your local hard drive and load it from local server (it actually does use a local server, so search etc. works). Everything is seamless - you browse the documentation directly in VS itself. Hitting F1 with caret on a symbol will direct the searches into this local browser.
The help is to some extent integrated into the VS editor itself (for example as parameter info). ReSharper goes slightly further and displays even more info:
You can also browse the .Net code with some documentation bits in Object Browser.
Other than these, I don't know about anything - but I also don't know what features you would like. I personally think the old documentation browser present in VS <=2008 was horrible.
There are some features I would like to see which are currently not available anywhere as far as I know (for example list of implementors of an interface), but the solutions I listed are mostly all I personally need.

ListView with Windows 7 column header style [duplicate]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Using Spy++ tool, it seems that some Microsoft apps use NetUIHWND and DirectUIHWND window classes; e.g.: Word 2010's ribbon seems to be a NetUIHWND, instead Windows Live Messenger window seems to be a DirectUIHWND.
These window classes seem to host kind of cool graphics (with shadows, gradients, etc.); is it possible to use these window classes in our own Win32 C++ apps? Is there any documentation about them?
Yes, it has been around for a while already. But it gets especially a lots of usage in Windows7. Unfortunately, they keep this one to themselves, it is undocumented. You can try to reverse-engineer it, use a ListView as a guide to what it might do. But your code will almost certainly break in the next version of Windows. Which I think was the point of not documenting it, they need something they don't have to keep backwards compatible to be able to improve the look-and-feel of the operating system.
NetUIHWND and DirectUIHWND are the Win32 class types for different GUI toolsets.
From Win32 perspective they are a self drawn panel.
So you wouldn't use these classes directly, you would use the other GUI toolsets to build the UI.
Not sure about the Messenger UI, but you can use the ribbon control in your own apps.
On WTL: https://www.codeproject.com/Articles/54116/Relook-your-Old-and-New-Native-Applications-with-a
On MFC: https://learn.microsoft.com/en-us/cpp/mfc/reference/cmfcribbonbar-class
Use the Microsoft Active Accessibility API:
There is no need to reverse engineer this thing, you can enumerate this class structure using the Microsoft Active Accessibility API.

Free or Open Source Diagramming Component for WinForms [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
I need to be able to generate dependency diagrams programmatically. I'd like it to be able to generate a bunch of boxes with labels and connectors linking them, and ideally the component would position them automatically onto a design surface which could then be manually rearranged.
I'm using WinForms and C# 2.0 (VS2005).
EDIT: However, since it'll be an internal tool, I can probably use 3.5 SP1 and WPF if there any suggestions in that arena.
Must be free or open source.
Any recommendations?
Too late for the questioner but perhaps interesting for researchers:
NShape
NShape is an Open Source diagram designing framework for .NET
WinForms. Software developers use NShape to integrate diagramming
capabilities into their applications. Using NShape, applications let
users view, annotate, modify and create diagrams like flow charts,
wiring schemes or project charts. NShape is open source and has a dual
license which allows it to be employed for free in open source
projects and for a license fee in commercial projects.
Did you try the CodeProject article series by Sukram:
WPF Diagram Designer
Here is some references which might be interesting for you:
Diagram.NET
Diagram.NET is a free open-source
diagramming tools written entirely in
C#.
Put Diagram.NET WinForm Control into your form and, like Microsoft Visio®, the user can draw shapes and links. With some code you can control, change, add and delete these elements.
Microsoft Chart Controls
The samples environment for Microsoft
Chart Controls for .NET Framework
contains over 200 samples for both
ASP.NET and Windows Forms. The
samples cover every major feature in
Chart Controls for .NET Framework.
They enable you to see the Chart
controls in action as well as use the
code as templates for your own web and
windows applications.
You might want to take a look at GraphViz which is being distributed under CPL (i.e. free of charge). It is not exactly for .NET/WinForms but can be useful anyway. The library's main purpose is to visualize graphs (and dependency diagram is effectively a [directional] graph). You can use it to either get an image (graph layout) or an array of points (coordinates for you items).
OpenDiagram
Open Diagram is the definitive open source .net diagramming
component library for the .Net framework winforms environment.
Use Open Diagram to add interactive data visualizations to your .net
applications.
I have tried it with WinForms, works very well.
I have similar request as yours. Here's one open source solution for drawing diagrams. It's from Microsoft and samples written in C#.
https://github.com/Microsoft/automatic-graph-layout
Here's one that renders to HTML5 (You can easily extend to Visio) from GridWizard/Github
Source code: https://github.com/gridwizard/SimpleFlowDiagram
Wordpress doc: https://gridwizard.wordpress.com/2015/03/25/simple-c-library-to-render-graph-to-flowchart/
Downside is, you need a viewer to display HTML5. Alternatively, SimpleFlowDiagramLib already calculate Node.x and Node.y - you can render it to Winform/WPF yourself (but then you need to code rendering yourself)
Vote for NShape. More or less it's fine.

Good GIS Software or Components for Windows PC in .NET? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
Last week i searched for good free or opensource solutions and component for GIS (Geographical Information Systems) I founded some system but no one fill my requirements
SharpMap is very buggy software
Gmap.net is very slow
MapWindow have a very complex structure and is very buggy.
I founded uDIG but is in java, i need a solution in vb.net or c#.
Anyone know a good solution that fill my requirements or have alternatives, i accept solutions?
You are limiting yourself a lot by insisting on .NET. I don't know of anything other than SharpMap or MapWinGIS ActiveX (MapWindow). Here are some free, but not .NET, options for Windows desktop applications.
If you'd consider writing your standalone application in Python or C++:
Mapnik
QGIS
Or if you'd consider writing a plug-in or a customisation for an existing GIS:
GRASS can be customised in Python, Perl, Ruby...
QGIS can be customised in Python
I think that you've covered it already. There really aren't any production quality open source GIS project out there using C#. Most of the good work is being done in Java, C/C++ or Python these days. If you must use the .NET Framework then I think the best of the bunch is indeed SharpMap.
Failing that you need to look at commercial products from companies like http://www.esri.com. Of course, it also depends on what you need: web services, Windows Forms control, WPF, etc. In the past I've managed to whip up some C# that constructed the right XML to send to a Java server-based mapping engine, so you could look at something like GeoServer and build your own client. Obviously not what you want to get in to but I don't see that you have many options beyond the ones you've listed.
I would recommend to look in to MapAround
Have you checked out SharpMap? It's available on codeplex.
MapSurfer.NET framework might be a good option.
MapSurfer.NET is free, modern cartographic framework which is able to provide maps of superior cartographic quality. This framework supports a bunch spatial data formats (e.g., Shape files, PostgreSQL, OSM, etc.) and web services (e.g., CartoDB, Mapzen, etc.). Furthermore, its setup includes MapSurfer.NET Studio application which allows creating and editing map styles (analogue of TileMill). Its symbology is inspired by both OGC specifications and other similar toolkits such as MapServer, GeoServer or Mapnik.
We use Mapzania (http://www.mapzania.com).
The best thing about it is that you load it into existing web-applications via a NuGet package and then you get a bunch of GIS functionality.
It uses Leaflet as its front-end and it has JS library that makes it easy to do stuff to Leaflet.
It also has a nice MapStyler for creating and editing maps.

Categories