<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://code.msdn.microsoft.com/rss.xsl"?><rss version="2.0"><channel><title>Applications = Code + Markup (Charles Petzold) Visual Basic Code Sample</title><link>http://code.msdn.microsoft.com/petzoldsamplevb/Project/ProjectRss.aspx</link><description>Charles Petzold&amp;#39;s latest book, Applications &amp;#61; Code &amp;#43; Markup&amp;#58; A Guide to the Microsoft Windows Presentation Foundation, is the best WPF book available right now.  Unfortuantely, all code samples in ...</description><item><title>NEW POST: I just started</title><link>http://code.msdn.microsoft.com/petzoldsamplevb/Thread/View.aspx?ThreadId=914</link><description>&lt;div class="wikidoc"&gt;
I am probably just talking to myself, but I found that while Session ending does not work. The following work around does:&lt;br /&gt;'-----------------&lt;br /&gt;   Public Sub WindowsClosing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs)&lt;br /&gt;        Dim x = CType(sender, Window)&lt;br /&gt;        If Me.Windows.Count = 1 Then&lt;br /&gt;            e.Cancel = MsgBox(&amp;quot;Do you wish to close the last window and exit the program?&amp;quot;, MsgBoxStyle.YesNo) = MsgBoxResult.No&lt;br /&gt;        End If&lt;br /&gt;    End Sub&lt;br /&gt;'---------------&lt;br /&gt;It checks if this is the last window for the application. Since the application has Shutdownmode=OnLastWindowClose{0} this works by allowing the user to cancel the las windows closing.&lt;br /&gt;
&lt;/div&gt;</description><author>rogsonl</author><pubDate>Wed, 12 Nov 2008 20:48:51 GMT</pubDate><guid isPermaLink="false">NEW POST: I just started 20081112P</guid></item><item><title>NEW POST: I just started</title><link>http://code.msdn.microsoft.com/petzoldsamplevb/Thread/View.aspx?ThreadId=914</link><description>&lt;div class="wikidoc"&gt;
I am a little surprised that there is no one in this discussion. Hopefully my question will be answered.&lt;br /&gt; &lt;br /&gt;I just bought the book, and started on chapter 1.  I also downloaded the Zip files with the vb equivalents of Petzold's book, thank you for the help.&lt;br /&gt; &lt;br /&gt;1. Protected Overrides Sub OnSessionEnding(ByVal e As System.Windows.SessionEndingCancelEventArgs) never stops in the vb version of InheritTheApp.cs&lt;br /&gt; &lt;br /&gt;   I added a close windows intercept &amp;quot;Sub CloseWindow(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles win.Closing&amp;quot; which does intercept. Unfortunately the session ends anyway closing the window even though I canceled.&lt;br /&gt;  Any ideas?&lt;br /&gt; &lt;br /&gt;2. If you use the normal Create WPF project, you must delete Application.xaml and Windows1.xaml or the code in Petzold will not work as provided.  Furthermore, if you are using &amp;quot;STRICT&amp;quot; you need to fix the lack of a cast in MyWPFExtension from  cType(Global.System.Windows.Application.Current,Application)&lt;br /&gt;    What is happening here?&lt;br /&gt;Puzzled,&lt;br /&gt;Leon&lt;br /&gt;
&lt;/div&gt;</description><author>rogsonl</author><pubDate>Mon, 10 Nov 2008 21:03:59 GMT</pubDate><guid isPermaLink="false">NEW POST: I just started 20081110P</guid></item><item><title>UPDATED RELEASE: Applications = Code + Markup VB Code Sample (Jan 29, 2008)</title><link>http://code.msdn.microsoft.com/petzoldsamplevb/Release/ProjectReleases.aspx?ReleaseId=88</link><description>Charles Petzold&amp;#39;s latest book, Applications &amp;#61; Code &amp;#43; Markup&amp;#58; A Guide to the Microsoft Windows Presentation Foundation, is the best WPF book available right now.  Unfortuantely, all code samples in the book are written in C&amp;#35;.  In order to help VB developers trying to learn about WPF, we are working with a couple of VB experts to convert all samples appearing in the book to VB.  As we finish converting each chapter, this page will be updated with a link to sample code package.</description><author></author><pubDate>Wed, 30 Jan 2008 01:45:22 GMT</pubDate><guid isPermaLink="false">UPDATED RELEASE: Applications = Code + Markup VB Code Sample (Jan 29, 2008) 20080130A</guid></item><item><title>UPDATED RELEASE: Applications = Code + Markup VB Code Sample (Jan 29, 2008)</title><link>http://code.msdn.microsoft.com/petzoldsamplevb/Release/ProjectReleases.aspx?ReleaseId=88</link><description>Charles Petzold&amp;#39;s latest book, Applications &amp;#61; Code &amp;#43; Markup&amp;#58; A Guide to the Microsoft Windows Presentation Foundation, is the best WPF book available right now.  Unfortuantely, all code samples in the book are written in C&amp;#35;.  In order to help VB developers trying to learn about WPF, we are working with a couple of VB experts to convert all samples appearing in the book to VB.  As we finish converting each chapter, this page will be updated with a link to sample code package.</description><author></author><pubDate>Wed, 30 Jan 2008 01:43:30 GMT</pubDate><guid isPermaLink="false">UPDATED RELEASE: Applications = Code + Markup VB Code Sample (Jan 29, 2008) 20080130A</guid></item><item><title>UPDATED WIKI: Home</title><link>http://code.msdn.microsoft.com/petzoldsamplevb/Wiki/View.aspx?title=Home&amp;version=2</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;Resource Page Description&lt;/b&gt;&lt;br /&gt;Charles Petzold&amp;#39;s latest book, Applications &amp;#61; Code &amp;#43; Markup&amp;#58; A Guide to the Microsoft Windows Presentation Foundation, is the best WPF book available right now.  Unfortuantely, all code samples in the book are written in C&amp;#35;.  In order to help VB developers trying to learn about WPF, we are working with a couple of VB experts to convert all samples appearing in the book to VB.  As we finish converting each chapter, this page will be updated with a link to sample code package.&lt;br /&gt;&lt;br /&gt;Quick info about two experts helping us with this.&lt;br /&gt;&lt;br /&gt;- Evan Lim is currently teaching WPF &amp;#38; Blend courses at Foothill Community College in Los Altos, CA.&lt;br /&gt;&lt;br /&gt;- Ged Mead, VB MVP, is currently based in an idyllic lochside location in the West of Scotland and is currently involved in an ever-widening range of VB.NET development projects, which include research for a proposed .NET book as well as writing articles, organising and creating online courses in .NET technologies.
&lt;br /&gt; &lt;br /&gt;
&lt;/div&gt;</description><author>YoungJooMSFT</author><pubDate>Wed, 30 Jan 2008 00:38:43 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080130A</guid></item><item><title>UPDATED RELEASE: Applications = Code + Markup VB Code Sample (Jan 29, 2008)</title><link>http://code.msdn.microsoft.com/petzoldsamplevb/Release/ProjectReleases.aspx?ReleaseId=88</link><description>Charles Petzold&amp;#39;s latest book, Applications &amp;#61; Code &amp;#43; Markup&amp;#58; A Guide to the Microsoft Windows Presentation Foundation, is the best WPF book available right now.  Unfortuantely, all code samples in the book are written in C&amp;#35;.  In order to help VB developers trying to learn about WPF, we are working with a couple of VB experts to convert all samples appearing in the book to VB.  As we finish converting each chapter, this page will be updated with a link to sample code package.</description><author></author><pubDate>Wed, 30 Jan 2008 00:31:36 GMT</pubDate><guid isPermaLink="false">UPDATED RELEASE: Applications = Code + Markup VB Code Sample (Jan 29, 2008) 20080130A</guid></item><item><title>CREATED RELEASE: Applications = Code + Markup VB Code Sample (Jan 29, 2008)</title><link>http://code.msdn.microsoft.com/petzoldsamplevb/Release/ProjectReleases.aspx?ReleaseId=88</link><description>Charles Petzold&amp;#39;s latest book, Applications &amp;#61; Code &amp;#43; Markup&amp;#58; A Guide to the Microsoft Windows Presentation Foundation, is the best WPF book available right now.  Unfortuantely, all code samples in the book are written in C&amp;#35;.  In order to help VB developers trying to learn about WPF, we are working with a couple of VB experts to convert all samples appearing in the book to VB.  As we finish converting each chapter, this page will be updated with a link to sample code package.</description><author></author><pubDate>Wed, 30 Jan 2008 00:29:37 GMT</pubDate><guid isPermaLink="false">CREATED RELEASE: Applications = Code + Markup VB Code Sample (Jan 29, 2008) 20080130A</guid></item></channel></rss>