Icons on Titlebar - c#

I just found something really cool and i'm surprised i didn't really notice it sooner. Have you ever seen WordPad running on Windows 7? If you have, you'll notice that on the top-left of the window's titlebar are a few icons (save, undo/redo). On the actual titlebar itself! How cool is that? I was wondering how i would implement that feature into my own programs but don't know where to start. I went to MSDN and then got lost because i wasn't sure of what to actually look for... Can somebody please help me?
If you would like a piccture of what i'm talking about i can try and upload a pic somewhere like maybe photobucket or similar?
Thank you
Jase

It is part of the Ribbon ui. Here is some code from the code project.
http://www.codeproject.com/KB/toolbars/WinFormsRibbon.aspx

You can use a stack of commands to create a system that supports multiple level undo.

Related

How do I create a user-customizable DockPanels in WPF C#

so I'm trying to create a Panel-System, where the user can "Design" his own layout. The user should be able to grab the Panel and dock it wherever he likes, or even leave it floating as a separate window.
I really love how Adobe solved this in Photoshop, InDesign, or Illustrator.
But I also can accept similar solutions.
I made some Screenshots to show you what I mean.
I can't even figure out how to start. And I couldn't find some instructions or tutorials online because I have no Idea how this system is called. Therefore, I have no code to demonstrate.
I honestly would be already happy, if someone just leaves the name of such system. Or a link to a tutorial.
Thank you :)
Screenshots:
Google Drive

Invoking the hover preview from code

Is there anyway to invoke the windows preview effect (the one you get when you hover over the icon screenshot in the taskbar)? Notice how the other windows are made transparent? Is there an API to invoke that?
This sounds like precisely your problem. The answer seems to be "It's purposely impossible and you should feel bad for wanting to do that."
This was a question from a while ago. I found a snippet that works. You can find it in use at InteropAndHelpers file in the windowwalker project over at Github.

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