Can I use WPF/UWP in script instead of WinForm?

william-j wrote on 10/29/2021, 8:59 AM

I want to use WPF UI in a script because I feel that the UI of WinForm is a bit ugly. Is it possible?

I tried it once before and it said "System.Windows.Controls" could not be found.

Comments

william-j wrote on 10/31/2021, 6:21 AM

Does anyone here?

jetdv wrote on 10/31/2021, 3:42 PM

It would have to be supported by .NET 4. I just use the controls available in .NET 4.

RedRob-CandlelightProdctns wrote on 11/4/2021, 4:42 PM

Related --- I'm getting my feet wet with Visual Studio development for scripting.. love it so far.

What's the best way to design a UI using Visual Studio to use with the C# script for Vegas?

Vegas 21.300

My PC (for finishing):

Cyperpower PC Intel Core i7-7700K CPU @ 4.2GHz, 64GB mem @ 2133MHz RAM, AMD Radeon RX470 (4GB dedicated) with driver recommended by Vegas Updater (reports as 30.0.15021.11005 dated 4/28/22), and Intel HD Graphics 630 driver version 31.0.101.2112 dated 7/21/22 w/16GB shared memory. Windows 10 Pro 64bit version 10.0.19045 Build 19045.

My main editing laptop:

Dell G15 Special Edition 5521, Bios 1.12 9/13/22, Windows 11 22H2 (10.0.22621)

12th Gen Intel Core i7-12700H (14 cores, 20 logical processors), 32 GB DDR5 4800MHz RAM, Intel Iris Xe Graphics, NVIDIA GeForce RTX 3070 Ti Laptop GPU w/8GB GDDR6 RAM, Realtek Audio

 

 

jetdv wrote on 11/5/2021, 8:15 AM

@RedRob-CandlelightProdctns, I just add a new User Control (Custom Command) or Form (Script) in Visual Studio and then just add the controls onto the form that I need.

See the Custom Command series starting here:

http://www.jetdv.com/2021/09/27/vegas-extensions-custom-commands-vs-standard-scripts/

And how to create a script with a form:

http://www.jetdv.com/2021/02/22/how-do-i-create-a-script-with-a-form-in-vegas/

http://www.jetdv.com/2021/02/04/how-can-i-find-and-correct-errors-debug-in-a-script-running-in-vegas/

 

RedyM wrote on 3/26/2022, 1:12 PM

I want to use WPF UI in a script because I feel that the UI of WinForm is a bit ugly. Is it possible?

I tried it once before and it said "System.Windows.Controls" could not be found.

Hey, did you manage to make it work?