In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
There are three ways to make PowerShell GUI tools that I have come across.
I. Web-B/S architecture
II. WPF-C/S architecture
III. WinForm-C/S architecture
I. Web
See my other https://blog.51cto.com/640006/2059918 article for details.
II. WPF
Introduction to WPF, you can refer to http://liutiemeng.blog.51cto.com/120361/91631/
To put it simply, it is used to do GUI, with XAML, supporting data binding. And XAML is essentially XML.
PowerShell can easily manipulate XML objects, so that PowerShell and WPF can be combined. There are many posts in this area abroad, but many of them are relatively old and are no longer updated.
There is a very detailed description and introduction to PowerShell+WPF on https://foxdeploy.com/series/learning-gui-toolmaking-series/. The most recent update also includes multithreading. There are also tutorials for WinForm.
The simple summary is as follows:
1. Do a good GUI interface with XAML under vs studio.
two。 Paste the XAML code directly into the @ "@" @ of the following PowerShell code, or save XAML as a file and load it with Get-Content in the PowerShell code.
3. The following is the code to operate XAML with PowerShell. The template that foxdeploy has written can be used directly. There is no event control in it, just look at the foxdeploy blog, which is the same as WinForm's.
# ERASE ALL THIS AND PUT XAML BELOW between the @ "" @ $inputXML = @ "@ $inputXML = $inputXML-replace 'mc:Ignorable=" d ",''- replace" XRV N ",'N'-replace'^
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.