blockly

Use Blockly inside a WPF WebBrowser

可紊 提交于 2019-12-21 08:48:31
问题 Is it possible to use the Blockly google javascript libraries inside a WPF WebBrowser? In particular, Blockly needs several js scripts. How can we reference the js libraries? 回答1: Short Answer You can use all blocky features including UI tools and API functions from WPF WebBrowser control. To do so you should: Create an HTML content which contains script tags referencing Blocky js , or methods which you want to call from C#, and required HTML and XML contents based on your requirement (for

Use Blockly inside a WPF WebBrowser

夙愿已清 提交于 2019-12-21 08:48:09
问题 Is it possible to use the Blockly google javascript libraries inside a WPF WebBrowser? In particular, Blockly needs several js scripts. How can we reference the js libraries? 回答1: Short Answer You can use all blocky features including UI tools and API functions from WPF WebBrowser control. To do so you should: Create an HTML content which contains script tags referencing Blocky js , or methods which you want to call from C#, and required HTML and XML contents based on your requirement (for

Use Blockly inside a WPF WebBrowser

不问归期 提交于 2019-12-21 08:48:07
问题 Is it possible to use the Blockly google javascript libraries inside a WPF WebBrowser? In particular, Blockly needs several js scripts. How can we reference the js libraries? 回答1: Short Answer You can use all blocky features including UI tools and API functions from WPF WebBrowser control. To do so you should: Create an HTML content which contains script tags referencing Blocky js , or methods which you want to call from C#, and required HTML and XML contents based on your requirement (for

Is there another way to resize Blockly workspace?

本小妞迷上赌 提交于 2019-12-12 16:56:36
问题 I am trying to adapt my Blockly workspace inside a div. I want that if the page makes smaller, the div and the Blockly workspace inside of it would be smaller also. I know that there is a way that Google provides in its documentation but I think it is a bit "dirty" and you have to use a lot of code to resize it. Looking at the debugger of Google Chrome I saw that I can set a max-height to the svg object but I do not know how to change that height when you inject the workspace: var workspace =