Unity3d application as user control - c#

Is it possible use Unity3d app written on C# as part of another WPF or winforms application?
Can i use it as user control?

Yes, it is possible to embed unity exe (PC build) into WPF using WindowsFormsHost.
I'm not sure if it can be used as user control because the unity exe is completely separated from WPF application.

Few time ago, when I had to work with Unity 3d, there was a way to embed it into WebBrowser control.
See this forum for more details.
Hope it can help you.

Related

Babylon 3d app is not working in WPF web browser control

For last 2 weeks we were developing a 3d application using Babylon js. When we tried to embed this app inside a WPF application using the WebBrowser control, we were not able to move the 3d object. We tried Chromium browser as well and there it was working fine but it was slow. Can anyone help me to get the solution?
This is because WPF uses a IE based WebView which does not support WebGL

WPF - *.exe embed in Canvas

I'm learning WPF/C# by developing a litte application.
Actually, i'm trying to embed an exe, in my case a cmd, inside a specific canvas in my main windows.
I've found a lot of examples for WinForm but nothing for WPF.
I've search inside this forum, and others, but the only thing i find is for embed an application inside the main windows without control of position and style (using FindWindow and SetParent).
Is this even possible ?
If this is possible could you explain me how it works ? Code is good but comprehension is better ;)

Using Windows Media Player with Windows Store App C++

I know it is somehow possible to implement a windows media player in a form with Visual C#.
The info for that is here: How to add the libraries and here How to code it.
But my project is in Visual C++ and I'm having a hard time finding how to do the same. It is a windows store application based on an example from a Hearth Rate Bluetooth monitor.
My goal is to play a video while the data acquisition occurs.
The answer is Windows Store App can't handle ActiveX controls. At least in a straightforward way.
The solution was to implement a MediaElement from the Toolbox into the XAML page. That element is easy to use with mediaElement.Play() and mediaElement.SetSource()

how to create a Metro ui toggle switch control in winforms c#?

im trying to implement a toggle switch control in winforms c# i want to recreate the windows 8 pc setting toggle switch control as a metro ui (microsoft design style...whatever!)
http://cloud.addictivetips.com/wp-content/uploads/2012/03/Windows-8-PC-Settings-Sync.png
i need help or direction how to start to create the control?
you can look at my project at github:
https://github.com/viperneo/winforms-modernui
i have implemented an toggle switch control there
The best way to use these type of components, is using component dlls that have the feature already worked and developed with optimal performance, check these:
http://www.devcomponents.com/
http://www.devexpress.com/Subscriptions/DXperience/WhatsNew2012v1/winforms.xml
However, you can find open source projects, or examples of how to develop this in source code repositories like codeplex and codeproject, see this:
http://www.codeplex.com/site/search?query=metro%20components&ac=3
there is only one detail ... as seen in the link above, you will find more resources for these type of development in WPF.

Adding resources to forms in XNA

I'm new to XNA, however I managed to develop a pac man game. Now I'm trying to add some forms to the game to be used as a log in screen,but due to being an XNA project I can't add pictures to the form, any help pls?
Thx for your time
XNA doesn't work like WinForms, it isn't a GUI editor. Like you said, you can't add windows controls to a XNA application (unless you use a workaround, but that's not necessary for a login screen)
You'll need to use Game States to determine what to draw/update based on which menu you're currently in. The APP Hub has an example for that.

Categories