Difficulty Running Unreal 4 inside a wpf application ?

Currently I am trying to run unreal inside of another application with a set resolution. However when someone clicks the window the window expands to a different sizes. What I’m tiring to figure out is there a way to stop unreal from auto sizing from a click or potential disable this this feature from unreal or have it be a view only style window with fixed window size. Any help would be greatly appreciated. Thank you.

Best solution so far is to run another transparent window application after unreal loads.

I have no idea how to embed the Unreal engine in another application. I have been working on this for days. It seems you succeeded in this. Could you give me some idea?

For starters this is a great source
http://www.codeproject.com/Tips/673701/Hosting-EXE-Applications-in-a-WPF-Window-Applicati
If you follow the instructions and download the code this author provides it there you will have an application that will run any exe application in its window. From here you will want to make a few additional changes. In the app control class were unreal will be ran as a child class to your window the line after _childp.WaitForInputIdle(); you will want to add something like

System.Threading.Thread.Sleep(10); or

while (_childp.MainWindowHandle == IntPtr.Zero)
{
System.Threading.Thread.Sleep(10);

               }

Because Unreal takes time to load up and the waitForInputIdle will likely skip past waiting for unreal. From there you will probably want to look into the windows Styles for any changes you want to mke to unreals window when applied to your application here Window Styles (Winuser.h) - Win32 apps | Microsoft Docs
For addinal reasources pinvoke.net is great as well.
If you have any other question feel free to to contact me here hope this helps.

We’re using Awesomium on our project which creates an HTML5 browser in a C# (WPF) app…from there you have access to the Unreal Engine, it’s performance isn’t the greatest but we just use it for 3D UI elements and for that it works great!

Now Awesomium is a project in a great deal of hurt as it seems the developers have bailed it on it but the browser core it’s built on is current enough (maybe not for long) to support Unreal.

Good Luck!

Update: Sorry! Our developer just chimed in to say we’re abandoning Awesomium entirely for Coherent Labs .Net Browser Controls.

@Josh314
I am trying to integrate unreal engine 5 into wpf c# application, can you please guide me steps for the same as you have already implemented?