ASP.NET MVC drag and drop designer example? - c#

I'm looking for an example implementation of a ASP.NET MVC-based, drag&drop designer surface. My googling skills are failing me, so I thought maybe someone has knowledge on an example implementation.
I'm not looking for a paint on canvas functionality - I'd rather have dragable and dropable shapes/images.
Ideas anyone?

William Malone has a awesome tutorial about that, int tutorial he developed many functionalities and all very much explained.
Check it out:
Create a Drawing App with HTML5 Canvas and JavaScript

Related

Drawing canvas in ASP.Net

I am trying to create a simple field on my .aspx form where one can draw, this could include a signature or a name. After which i should be saved as an image (.jpg). I don't know how I am going to program this, any suggestions on how i should take this problem.
I have not done a lot of programming on this subject. I am simply looking for ways on doing this and haven't found a lot of useful information after a quick search.
(P.S. I don't have any experience with using canvasses and such)
Thnx for the suggestions!
Check this page,
you will find tutorial with some jquery plugins to draw canvas in HTML page.

How to make page flip effect in WPF?

All the info i found about page fliping is just source code that i'm having trouble implementing to my code.
this tutorial
kinda explains the logic behind page fliping but the code is for windows form and not WPF.
i dunno how to approach it because as i understood bitmaps are not used the same in WPF.
anyone has a good tutorial or could give me some pointers?
What im trying to do is i have an image that fills entire screen and i want to flip it to to next image ( like a book) that will also take the entire screen.
(Not 2 images on a screen)
Help?
To anybody that suggests using C++ or DirectX, I'm not interesting in learning those skills. Only C# code please.
The WPF bag o'tricks has a page flip sample with code.
The github source
https://github.com/thinkpixellab/bot
Specifically, look at the TransitionPresenter sample in the demo project where there are multiple transitions defined, one being page flipping.

an XNA way to make a menustrip

I will preface this by I am new to XNA and I realize what I am asking for doesn't exist.
However I am curious if I wanted to create something similar to a menustrip from winforms in XNA, how would I do that? Is there a best way? Or even a way?
I appreciate it, thanks!
Well, if you're only targeting windows, you can always render XNA in a winforms project or wpf app. Once you do that, you can use the built-in controls to render the menu.
If however you're looking for something that will work on xbox or windows phone, you will have to do the work of rendering and positioning the menu yourself using whatever rendering techniques you are familiar with (ie. SpriteBatch, etc.)
I found a possible solution, that will need further investigation:
http://neoforce.codeplex.com/
This should give me UI control w/o having to recode everything, unless I can just add an XNA pane to my winforms app
Edit:
neoforce appears to not work well with c# 2010. I did however find this: http://create.msdn.com/en-US/education/catalog/sample/winforms_series_1 which does work, to do as Joel Martinez mentioned of drawing an XNA form inside of a winform. It is not trivial but this example code should be enough for a jump start.

c# Tree/MindMap GUI

i am trying to research some gui technology for c# where i can display a tree view (opposed to the standard one provided.)
Essentially i want to have the gui draw a tree of data (as if you were going to draw a binary tree on a piece of paper or something) Then making each of the nodes clickable.
If this isnt available does anyone know of something where i could have a mindmap type GUI which shows links between elements and those are clickable?
I can guess people will say make one yourself, in which case i give up already ;) thats too advanced for me and as i am on a work placement i dont think i would be granted the time to make it as there are more pressing issues to get working first, like actually making the programme work!
Thank you
You can take a look at the controls in Kevin's WPF Bag-o-Tricks which has a WPF mind map style layout. Here is a nice example. If you want to use more professional components take a look at the product from Nevron Software, they have some great controls. There is also an opensource WPF graphing library - graphsharp (which I have no experience with, but I found a nice article by Sacha Barber). Since it's used in nDepend it must be pretty mature.
I hope you get some inspiration from those links :)
I also found XMind API for C#
https://xmindapi.codeplex.com/
It's free and looks easy to use.

Non-standard UI in C#

I'm still learning C#, and I know don't know about WinForms yet but I will very soon. However I want to know how I would create an application which shows a customized notifier, like Growl on a Mac. Here's a mock up:
http://img25.imageshack.us/img25/3793/41151387.jpg http://img25.imageshack.us/img25/3793/41151387.jpg
Could anyone point me in the right direction? And I know I should learn more about C# before trying this, but I've always liked to peek on complicated stuff.
Take a look at this third-party WPF NotifyIcon control, I think it does what you want out of the box, hopefully something like this will be part of WPF in the future. I have used this one before for the exact same reason, and it is really good: you can use standard tooltips or "toast" popups, or create your own which could be just like the one in the example you posted if you wanted.
WPF would be a great place to start. you can make UIs in pure XAML without even touching C#
Here is an example of an "notification" implementation using WPF
Here are some reference links:
http://en.wikipedia.org/wiki/Windows_Presentation_Foundation
http://windowsclient.net/wpf/
You should probably look into WPF (Windows Presentation Foundation) to design some of the nonstandard UI stuff.
However, I would recommend becoming familiar with UI design in general before diving into nonstandard stuff.
Since you are starting from scratch, I would consider learning WPF rather than Winforms.
Here are two examples are a pop-up notifier in WPF:
WPF Taskbar Notifier - A WPF Taskbar Notification Window
PopUp window on a specific time in WPF?
WPF is Definitely what you are looking for if you want something like the image you provided. My project uses notification popups similar to that in the screenshot. Its really simple to get the wanted results after looking at a few samples of others who have done it. If you would like some help, you can send a message my way.

Categories