Windows PowerShell is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and associated scripting language built on the .NET Framework.
There are some tasks that you do on a computer that are repetitive and boring. Best solution is to automate those common tasks.
Tuesday, 2 August 2016
Saturday, 11 June 2016
Friday, 3 June 2016
“A splash screen is a graphical control element consisting of window containing an image, a logo and the current version of the software. A splash screen usually appears while a game or program is launching.” According to Wikipedia J
You can download all files here.
Monday, 30 May 2016
- First is based on the use of XAML resources
- Second is based on dll resources assembly
StackPanelis a simple and useful layout panel. As its name imply, It stacks its child elements below or beside each other, depending on the orientation. That coupled with HorizontalAlignement and VertcalAlignment properties; it becomes easy to handle elements.
Part 1: XAML resource
For now, we are on the right track. Now, Browse to your project’s files location and copy the "Themes" folder that has just been created to the location of the xaml and ps1 you want to apply the theme. At this point, you should have something like these in your project folder:
Part 2: Dll resourcesNow let’s move on, here we are going to use dll resource for our theme. This is the theme I like the most: Mahapps.
Copy MahApps.Metro.dll and System.Windows.Interactivity.dll. Create a new folder in where your ps1 file and xaml is and rename it to “Assembly”. Paste all the *.dll in this new folder.
Don't forget to do as well with the "window" closing tag.
To solve the issue: For both files, you need to open the file properties > go to general Tab > Security > check unblock and apply.
If you launch it again you should have something like this:
It's beautiful don't you think? I suggest you to go take look at their website, to see what you can do with other controls.
You can download all files used in this post here.
That ends this little topic. If you have any question, you can leave a reply or send me an e-mail, I'll answer as soon as I can. Thanks for reading and see you in the next part. J
- First is using the System.Windows.Forms
- And second is System.Windows.Controls
- Powershell ISE: if you begin in powershell. It’s installed by default in your computer. Just type Powershell ISE from the Start Menu and launch it.
- Visual studio: I used visual studio Community 2015 for this article. You can download it on Microsoft website.
- Notepad++ or a simple text editor with syntax highlighting features.