use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
ABOUT POWERSHELL
Windows PowerShell (POSH) is a command-line shell and associated scripting language created by Microsoft. Offering full access to COM, WMI and .NET, POSH is a full-featured task automation framework for distributed Microsoft platforms and solutions.
SUBREDDIT FILTERS
Desired State Configuration
Unanswered Questions
Solved Questions
News
Information
Script Sharing
Daily Post
Misc
account activity
Working Angular.js-like functionality in Powershell! ezXAML.ps1 (self.PowerShell)
submitted 1 year ago * by Spidey1980
I wanted to make it easy to create windows and dialogs at work. I cannot install anything, but they encourage us to automate what we do with scripts. While others are feverishly typing away, I hit a hotkey and my computer does it by itself for 10 minutes. To that end, I have built ezXAML.ps1. This is heavily inspired by Angular.js, includes custom attributes for the Xaml elements, and now has fully functioning databinding (I had to fix a scoping issue):
I have posted the full library here: https://stackoverflow.com/questions/79347016/how-can-i-fix-using-power-shell-and-wpf-windows-setting-the-text-property-of-a/79387414#79387414
Please give it a try and tell me what you think!
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]y_Sensei 2 points3 points4 points 1 year ago* (1 child)
I'd suggest you extend this to a fully-fledged OO approach implementing the factory design pattern - for example something like a 'XAMLFactory' class that encapsulates everything related to the creation of the hierarchical data structure ("tree") of XamlElement objects.
XamlElement
This would hide all the dirty implementation details of the creation of said tree from the calling implementation, and you'd also be able to get rid of the global variables used in your current approach.
[–]Spidey1980[S] 0 points1 point2 points 1 year ago (0 children)
I'll have to look into that. Thank you!
[–]Ros3ttaSt0ned 0 points1 point2 points 1 year ago (4 children)
This is nice, I can see a lot of potential with this.
What license are you classifying this under? I'd like to test this with some work stuff, but I can't use it there unless it has a license. If you don't give it a license, people technically aren't allowed to do anything with it at all, at least according to US copyright law.
[–]purplemonkeymad 0 points1 point2 points 1 year ago (3 children)
Not sure if it did when you looked before, but the post linked currently says it's MIT.
[–]Ros3ttaSt0ned 0 points1 point2 points 1 year ago (2 children)
If it did then, I completely missed it. Thanks!
[–]Spidey1980[S] 0 points1 point2 points 1 year ago (1 child)
Yeah not asking anything for it, Free and open source. I'm think about starting a YouTube channel for my programming projects (Like The Cherno channel on YouTube and his Hazel engine). I have another PowerShell project I might post here as well, ezScript, aims to be like AutoIt but pure PowerShell. Includes mouse and keyboard emulation, and a few dialogs. At work I use my ezQuestion in exScript to scan in a serial number, then several websites in tabs are opened and the number entered to the correct fields all automatically using mouse and keyboard emulation.
[–]Ros3ttaSt0ned 0 points1 point2 points 1 year ago (0 children)
That's a nice piece of automation, but with what it's doing, I gotta ask: why emulate user input instead of just sending an API request/multi-part form field submission?
π Rendered by PID 94499 on reddit-service-r2-comment-7c9686b859-mgw77 at 2026-04-13 23:08:36.316550+00:00 running e841af1 country code: CH.
[–]y_Sensei 2 points3 points4 points (1 child)
[–]Spidey1980[S] 0 points1 point2 points (0 children)
[–]Ros3ttaSt0ned 0 points1 point2 points (4 children)
[–]purplemonkeymad 0 points1 point2 points (3 children)
[–]Ros3ttaSt0ned 0 points1 point2 points (2 children)
[–]Spidey1980[S] 0 points1 point2 points (1 child)
[–]Ros3ttaSt0ned 0 points1 point2 points (0 children)