<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>WPF &amp; PowerShell - Part 7 (Sharing Hosts)</title><link>http://blogs.msdn.com/b/powershell/archive/2008/05/28/wpf-powershell-part-7-sharing-hosts.aspx</link><description>Well here we are at the end of a week of WPF.&amp;#160; We've learned how to create basic, simple user interactive interfaces.&amp;#160; We've seen a brief glimmer of the golden UI layer that is WPF, and have seen how we can use PowerShell to add easy interactivity</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: WPF &amp; PowerShell - Part 7 (Sharing Hosts)</title><link>http://blogs.msdn.com/b/powershell/archive/2008/05/28/wpf-powershell-part-7-sharing-hosts.aspx#10284402</link><pubDate>Fri, 16 Mar 2012 20:28:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10284402</guid><dc:creator>Jerry Woodstock</dc:creator><description>&lt;p&gt;Is there a new tutorial that would show us how to do this with today&amp;#39;s version of powershell2 . I get to the day 5 and things start to fall apart the show-control command provided no longer works.&lt;/p&gt;
&lt;p&gt;ie.&lt;/p&gt;
&lt;p&gt;no &amp;nbsp; cmdlet New-Event&lt;/p&gt;
&lt;p&gt;getting a powershell object is now differnt.&lt;/p&gt;
&lt;p&gt;$psCmd = [Management.Automation.Runspaces.Powershell]::Create($selfDefinition,$true)&lt;/p&gt;
&lt;p&gt;etc..&lt;/p&gt;
&lt;p&gt;please let me know if there is anything&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10284402" width="1" height="1"&gt;</description></item><item><title>re: WPF &amp; PowerShell - Part 7 (Sharing Hosts)</title><link>http://blogs.msdn.com/b/powershell/archive/2008/05/28/wpf-powershell-part-7-sharing-hosts.aspx#9930302</link><pubDate>Mon, 30 Nov 2009 18:32:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9930302</guid><dc:creator>Ben Langton</dc:creator><description>&lt;p&gt;(from the blog post)&lt;/p&gt;
&lt;p&gt;&amp;quot;Having the host runspace also lets you run code in that runspace&amp;quot;&lt;/p&gt;
&lt;p&gt;Can you please provide an example of how to do that?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Ben Langton&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9930302" width="1" height="1"&gt;</description></item><item><title>re: WPF &amp; PowerShell - Part 7 (Sharing Hosts)</title><link>http://blogs.msdn.com/b/powershell/archive/2008/05/28/wpf-powershell-part-7-sharing-hosts.aspx#8836945</link><pubDate>Wed, 06 Aug 2008 13:44:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8836945</guid><dc:creator>Rob Lancaster</dc:creator><description>&lt;p&gt;I looked at the start of this series and wondered - why? oh why? I'd want to code GUI by using dotNet function calls to build up a layout button by button....&lt;/p&gt;
&lt;p&gt;Then some weeks later, I re-read the last four articles and went.. &amp;quot;Ohh&amp;quot;... and went on to find out more about XAML... basically with more &amp;quot;Ohhs...&amp;quot; followed by some &amp;quot;Ahhs...&amp;quot; &lt;/p&gt;
&lt;p&gt;However, After more reading on the MSDN site.. I really would like to know how to bind a XAML UI to a Object that is inside the Powershell environment.&lt;/p&gt;
&lt;p&gt;As, I'm now wanting to move beyond:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; $panel &amp;nbsp;= new-object Windows.Controls.StackPanel &lt;/p&gt;
&lt;p&gt;	ls | $panel.Children.Add( $_ )&lt;/p&gt;
&lt;p&gt;To something like&lt;/p&gt;
&lt;p&gt; &amp;lt;ResourceDictionary&lt;/p&gt;
&lt;p&gt; &amp;nbsp;xmlns=&amp;quot;&lt;a rel="nofollow" target="_new" href="http://schemas.microsoft.com/winfx/2006/xaml/presentation&amp;quot;"&gt;http://schemas.microsoft.com/winfx/2006/xaml/presentation&amp;quot;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp;xmlns:x=&amp;quot;&lt;a rel="nofollow" target="_new" href="http://schemas.microsoft.com/winfx/2006/xaml&amp;quot;"&gt;http://schemas.microsoft.com/winfx/2006/xaml&amp;quot;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp;xmlns:local=&amp;quot;clr-namespace:SmurfRacing&amp;quot; &lt;/p&gt;
&lt;p&gt; &amp;nbsp;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp;&amp;lt;DataTemplate DataType=&amp;quot;{x:Type local:SmurfRacing}&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;DataTemplate.Resources&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;LinearGradientBrush x:Key=&amp;quot;SmurfHeight&amp;quot; StartPoint=&amp;quot;0,0.5&amp;quot; EndPoint=&amp;quot;1,0.5&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;...&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;...&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;...&lt;/p&gt;
&lt;p&gt;But need a few examples of the whole sheebang to get me going.... and also to find out if it is possibe to actually bind a XAML gui to a PSObject...&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; Rob Lancaster.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8836945" width="1" height="1"&gt;</description></item><item><title>Visual Studio Links #33</title><link>http://blogs.msdn.com/b/powershell/archive/2008/05/28/wpf-powershell-part-7-sharing-hosts.aspx#8556679</link><pubDate>Wed, 28 May 2008 18:47:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8556679</guid><dc:creator>Visual Studio Hacks</dc:creator><description>&lt;p&gt;My latest in a series of the weekly, or more often, summary of interesting links I come across related to Visual Studio. Scott Guthrie announced the availability of ASP.NET MVC Preview 3 . The release was also mentioned by Phil Haack and Scott Hanselman&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8556679" width="1" height="1"&gt;</description></item><item><title>re: WPF &amp; PowerShell - Part 7 (Sharing Hosts)</title><link>http://blogs.msdn.com/b/powershell/archive/2008/05/28/wpf-powershell-part-7-sharing-hosts.aspx#8556575</link><pubDate>Wed, 28 May 2008 17:10:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8556575</guid><dc:creator>Jon</dc:creator><description>&lt;p&gt;Very nice and an excellent series. Thanks.&lt;/p&gt;
&lt;p&gt;I'm gonna have some fun with this!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8556575" width="1" height="1"&gt;</description></item></channel></rss>