T
T
TechNOIR2017-10-10 15:41:50
PowerShell
TechNOIR, 2017-10-10 15:41:50

Powershell. How to connect a GUI form?

Good afternoon.
Please tell me,
1. Is it possible to build a form in Visual Studio and connect it to a Powershell script?
2. Powershell script used standard System.Windows.Forms
Now I want to try using MetroUi Framework , is it possible to hook the framework to script forms? (Represents 3 dll files)
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Gennady, 2017-10-19
@genana40

Hey!
I am using xaml forms for scripting. Those. I draw in Visual Studio (well, or edit the xaml code with my hands), after that I throw it into the folder with my script and a separate script that parses the xaml file and creates objects. Then everything is simple, all your buttons, text fields, etc. these are objects with their own properties and methods, you work as usual.
Here is a link on how to do it all: https://blog.it-kb.ru/2014/10/10/wpf-forms-for-pow...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question