Create Window #186

Closed
opened 2026-01-29 16:33:09 +00:00 by claunia · 3 comments
Owner

Originally created by @kwakuduahc1 on GitHub (Jun 10, 2018).

Originally assigned to: @GregorBiswanger on GitHub.

Hi guys, whenever i do a

string path= "path to a controller action that renders a view";
await Electron.WindowManager.CreateWindowAsync(path)
, it creates the window alright but it is always empty.

  1. Secondly, could it be possible to give an html to the create window to render?

Thanks

Originally created by @kwakuduahc1 on GitHub (Jun 10, 2018). Originally assigned to: @GregorBiswanger on GitHub. Hi guys, whenever i do a <code> string path= "path to a controller action that renders a view"; await Electron.WindowManager.CreateWindowAsync(path)</code>, it creates the window alright but it is always empty. 2. Secondly, could it be possible to give an html to the create window to render? Thanks
claunia added the question label 2026-01-29 16:33:09 +00:00
Author
Owner

@GregorBiswanger commented on GitHub (Jul 22, 2018):

@kwakuduahc1 you need the complete URL to your action.

As example to HomeController and FooBar action:
string path = $"http://localhost:{BridgeSettings.WebPort}/Home/FooBar"

@GregorBiswanger commented on GitHub (Jul 22, 2018): @kwakuduahc1 you need the complete URL to your action. As example to HomeController and FooBar action: `string path = $"http://localhost:{BridgeSettings.WebPort}/Home/FooBar"`
Author
Owner

@kwakuduahc1 commented on GitHub (Jul 22, 2018):

Thanks

@kwakuduahc1 commented on GitHub (Jul 22, 2018): Thanks
Author
Owner

@KIheme commented on GitHub (Sep 22, 2020):

@kwakuduahc1 you need the complete URL to your action.

As example to HomeController and FooBar action:
string path = $"http://localhost:{BridgeSettings.WebPort}/Home/FooBar"

Thanks for this reply, but what if i want to create a new window without localhost running? How can i achieve this

@KIheme commented on GitHub (Sep 22, 2020): > @kwakuduahc1 you need the complete URL to your action. > > As example to HomeController and FooBar action: > `string path = $"http://localhost:{BridgeSettings.WebPort}/Home/FooBar"` Thanks for this reply, but what if i want to create a new window without localhost running? How can i achieve this
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#186