Skip to content

Instantly share code, notes, and snippets.

@dfinke dfinke/PSSummit.ps1
Last active Aug 29, 2015

What would you like to do?
PowerShell GUI for viewing YouTube Videos of the PowerShell NA Summit 2015
Add-Type -AssemblyName PresentationFrameWork
<Window xmlns=""
Title="PowerSHell Summit Videos" Height="850" Width="1200">
<RowDefinition Height="200"/>
<ListBox x:Name="lstTitles" Grid.Row="0" Margin="3"/>
<WebBrowser x:Name="Viewer" Grid.Row="1" Margin="3"/>
$Window = [Windows.Markup.XamlReader]::Load((New-Object System.Xml.XmlNodeReader ([xml]$MainWindow)))
$lstTitles.ItemsSource = Invoke-RestMethod |
ForEach {
if($date.year -eq 2015 -and $date.Month -eq 4) {$_}
} |
ForEach {

This comment has been minimized.

Copy link

wizardmundo commented Apr 21, 2015

Great script, however I got an exception error when trying load XAML on line 21;
I believe I corrected this by turning STA mode on powershell
Powershell.exe -STA


This comment has been minimized.

Copy link
Owner Author

dfinke commented Apr 21, 2015

Yes you are right. What version of PowerShell are you running?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.