How to use Blockly locally in WPF?

221 views
Skip to first unread message

Aram

unread,
Feb 16, 2021, 7:13:58 AM2/16/21
to Blockly
Hello,

I want to use Blockly locally (offline) and call its libraries from my WPF application. I used BlockyExample which works very well as long as the libraries are called online. When I downloaded Blockly and tried to reach the required files locally, the libraries are not loaded.

I cloned the BlocklyDuino-v2, where one can call Blockly libraries locally, to figure out where the problem is. The app works perfectly on the PC's browser (Chrome and Explorer) when I open the index.html locally; however, when I call it from WPF, using the default WPF WebBrowser or CefSharp, Blockly libraries are not loaded. 

Any recommendations about where the problem might be? Thanks in advance!

Sincerely
Aram

Maribeth Bottorff

unread,
Feb 17, 2021, 1:28:17 PM2/17/21
to Blockly
Hi,

This doesn't sound like a problem with Blockly itself. Are you able to load any local js file? I'd recommend trying to reproduce the error with a small test file, and ask for help in a WPF support forum instead, as the team isn't familiar with WPF. Good luck!

MB

Aram

unread,
Feb 17, 2021, 5:46:40 PM2/17/21
to Blockly
Okay, I will,
Thank you very much for your time and effort.

Sincerely
Aram
Reply all
Reply to author
Forward
0 new messages