I am building a GUI for some of the tasks we need to do (mostly for the people with no powershell knowledge, so they don't have to run commands etc).
Basically I have a couple of windows where they can enter input or hit some buttons. Now I have to open them up in a new window every time they hit next or continue.
Is there a way to clear my current window and load in the elements needed for the next step?
Using tabs is not an option as the options/textboxes/buttons etc. are dependent on which button they hit in their previous screen.
I tried stuff like $window.clear()
but that doesn't work.
What ideally would happen is that I can generate the window and then use functions to dynamically change the layout of the windows and add/remove the necessary components.
Anyone has any ideas on how to handle this?
One option is hiding/unhiding elements?
update-window -Control (element) -Property Visibility -Value Hidden
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.