开发者

Executing custom code on click on DGML node

开发者 https://www.devze.com 2023-02-11 16:15 出处:网络
Is it possible to execute a piece of C# code when the node of a DGML diagram is double clicked? It is possibl开发者_JS百科e to navigate to an url, I could create a local web site (on127.0.0.1) where y

Is it possible to execute a piece of C# code when the node of a DGML diagram is double clicked? It is possibl开发者_JS百科e to navigate to an url, I could create a local web site (on127.0.0.1) where you request an URL which executes a command. Problem is that I would like to execute a PowerShell function in the NuGet console...

Any ideas?


You cannot execute custom code, since that would make DGML a security threat when you send it in email, but you can put a “Reference” attribute containing a URL value on a node and when the user double clicks that node the URL is opened. For more information, see How to: Edit and Customize Graph Documents.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号