What I am using:
Visual Studio 2010
Windows Media Center
Language C#
The Program
A part of my program needs to display movies by their covers and be able to scroll through them, much like netflix. I was told that directx would be good to accomplish this. Basically I just want it to be easy to view, use, and flow nicely.
Help?
Any Ideas as to what to use. (I was also looking into writing it as a pluggin for windows media player, but i read somewhere you can only have html based menus?)
Any suggestions would be appreciated.
Thanks
-Scott
Have a look at the following.
http://channel9.msdn.com/Blogs/scobleizer/Charlie-Owen-Your-first-Media-CenterVista-application-and-a-look-at-their-secret-room
The problem with using Direct3D for an application like this is that you have to start creating your own window manager.
You don't have the default events available to you and you will have to basically create your own GUI which is easier in WPF as those events and helpers exist.
Related
I am just a hobby programmer.. and even tough I know how, I don't want to mix windows forms and XNA for my level editor.
Has anyone done this before? Are there any examples around how to create "Windows like" controls for XNA, including events like mouse over, click and double-click and even accept keyboard input(if possible using language specific keyboard input)?
Below you find the basic layout of my editor but it needs so much more.
Yeah.
I'm now creating something like that.
See my project on Bitbucket.
I'm making own lib and voxel engine for Minecraft-like game. Just for fun.
So, in GameHelper lib you can fing folders Input (keyboard and mouse input) and GUI (forms and controls with events). I will be happy if it helps you, but there is almost no comment :P
Examples of use you can find in the Player class in main project (see ProcessInput method).
If you need I can give you better examples :)
I've made an app for the Windows desktop and also created it for the modern (metro) interface in Windows 8.1. I wanted to group them under the same start tile and have a setting that allowed the user to open the app in the chosen mode by clicking the start tile. I got this idea from Chrome, which has both modes referenced by the same tile in the start menu or the link on the taskbar. I thought that maybe when the setting was changed I would delete the current one and replace it with one that referenced the other mode, but positioning is a problem, as a new tile always appears at the far right of the start screen. How would I resize the tile correctly and how would I delete and replace a link on the taskbar? I am using VB right now, but I can write C# and C++ so feel free to post code or links to code that are written in these languages.
If you have any suggestions, please post a reply or a ask a question in the comments.
I also should note that I prefer to use native libraries only and do not like using third-party dlls.
Thanks in advance for the help.
P.S. I've already tried Google.
I've figured it out!
The best way to do this is to create two registry keys referencing the two interfaces but make both the desktop and modern version not have a start tile! Then create a third app that has a tile and make it open the files, check for the active interface, and send the data to that interface with the file as a param.
Thanks for everyone's help, though :)
I was wondering if there is a possibility to combine an AIR application with a WinForms Application?
Example
I've made some nice animated loading screens / splash screens with Adobe AIR and i want to use them with an .NET program, is that possible?
I don't want to simply call the program executable file (program.exe) within Adobe AIR (Air.exe). I want to use the textfields inside air, and as I click on Submit, I want AIR to pass the information to the .NET C# form and do stuff with that.
What is the proper way to do so, or what are alternative ways? (using WPF to embed a flash (SWF) inside .NET)
Based on the content posted in this tutorial, I think that it's possible to use .NET with Adobe AIR yet I'm not really sure.
You might also like to take a look at this which shows how to use CommandProxy to integrate AIR and .NET
Thanks,
I hope you find this helpful :)
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.
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.