<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Portal of Knowledge &#187; Coding</title>
	<atom:link href="http://portalofknowledge.com/category/coding/feed/" rel="self" type="application/rss+xml" />
	<link>http://portalofknowledge.com</link>
	<description>The blog of Sam Leach. Years late.</description>
	<lastBuildDate>Thu, 21 Jul 2011 16:17:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Convert C# to VB.NET Online</title>
		<link>http://portalofknowledge.com/2010/03/15/convert-c-to-vb-net-online/</link>
		<comments>http://portalofknowledge.com/2010/03/15/convert-c-to-vb-net-online/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 14:43:26 +0000</pubDate>
		<dc:creator>Sam Leach</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[University]]></category>

		<guid isPermaLink="false">http://portalofknowledge.com/2010/03/15/convert-c-to-vb-net-online/</guid>
		<description><![CDATA[ tweetmeme_url='http://portalofknowledge.com/2010/03/15/convert-c-to-vb-net-online/'; tweetmeme_style = 'normal';tweetmeme_source = 'sammleach';  Need to convert C# to VB.NET or vice versa?
http://www.developerfusion.com/tools/convert/csharp-to-vb/
seems to work well and works right from your browser of choice!
]]></description>
			<content:encoded><![CDATA[<!-- This is a HTML comment, it will not display in any page. Feel free to remove this comment if it cause any inconvenient to you.
	Thanks for using digg digg, please visit http://www.mkyong.com/blog/digg-digg-wordpress-plugin for any comments and ideas, 
	
    Author : Yong Mook Kim
    Website : http://www.mkyong.com
	--><div style='float:right'><table> <td><script type="text/javascript">tweetmeme_url='http://portalofknowledge.com/2010/03/15/convert-c-to-vb-net-online/'; tweetmeme_style = 'normal';tweetmeme_source = 'sammleach'; </script><script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js" ></script></td></table></div><!-- This is a HTML comment, it will not display in any page. Feel free to remove this comment if it cause any inconvenient to you.
	Thanks for using digg digg, please visit http://www.mkyong.com/blog/digg-digg-wordpress-plugin for any comments and ideas, 
	
    Author : Yong Mook Kim
    Website : http://www.mkyong.com
	--><div style='float:left'><table> <td><iframe src='http://digg.com/api/diggthis.php?w=new&amp;u=http://portalofknowledge.com/2010/03/15/convert-c-to-vb-net-online/&amp;t=Convert+C%23+to+VB.NET+Online&amp;s=normal' height='80' width='52' frameborder='0' scrolling='no'></iframe></td></table></div><p>Need to convert C# to VB.NET or vice versa?</p>
<p>http://www.developerfusion.com/tools/convert/csharp-to-vb/</p>
<p>seems to work well and works right from your browser of choice!</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fportalofknowledge.com%2F2010%2F03%2F15%2Fconvert-c-to-vb-net-online%2F&amp;linkname=Convert%20C%23%20to%20VB.NET%20Online"><img src="http://portalofknowledge.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://portalofknowledge.com/2010/03/15/convert-c-to-vb-net-online/feed/</wfw:commentRss>
		<slash:comments>761</slash:comments>
		</item>
		<item>
		<title>Accelerated C# 2010</title>
		<link>http://portalofknowledge.com/2010/02/15/accelerated-c-2010/</link>
		<comments>http://portalofknowledge.com/2010/02/15/accelerated-c-2010/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 16:50:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[University]]></category>
		<category><![CDATA[ipod touch]]></category>

		<guid isPermaLink="false">http://portalofknowledge.com/2010/02/15/accelerated-c-2010/</guid>
		<description><![CDATA[ tweetmeme_url='http://portalofknowledge.com/2010/02/15/accelerated-c-2010/'; tweetmeme_style = 'normal';tweetmeme_source = 'sammleach';  I've started reading through Accelerated C# 2010. Brushing up on CLR and IL code theory which will hopefully help me become a better OO programmer. 
Posted from iPod Touch
]]></description>
			<content:encoded><![CDATA[<!-- This is a HTML comment, it will not display in any page. Feel free to remove this comment if it cause any inconvenient to you.
	Thanks for using digg digg, please visit http://www.mkyong.com/blog/digg-digg-wordpress-plugin for any comments and ideas, 
	
    Author : Yong Mook Kim
    Website : http://www.mkyong.com
	--><div style='float:right'><table> <td><script type="text/javascript">tweetmeme_url='http://portalofknowledge.com/2010/02/15/accelerated-c-2010/'; tweetmeme_style = 'normal';tweetmeme_source = 'sammleach'; </script><script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js" ></script></td></table></div><!-- This is a HTML comment, it will not display in any page. Feel free to remove this comment if it cause any inconvenient to you.
	Thanks for using digg digg, please visit http://www.mkyong.com/blog/digg-digg-wordpress-plugin for any comments and ideas, 
	
    Author : Yong Mook Kim
    Website : http://www.mkyong.com
	--><div style='float:left'><table> <td><iframe src='http://digg.com/api/diggthis.php?w=new&amp;u=http://portalofknowledge.com/2010/02/15/accelerated-c-2010/&amp;t=Accelerated+C%23+2010&amp;s=normal' height='80' width='52' frameborder='0' scrolling='no'></iframe></td></table></div><p>I've started reading through Accelerated C# 2010. Brushing up on CLR and IL code theory which will hopefully help me become a better OO programmer. </p>
<p>Posted from iPod Touch</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fportalofknowledge.com%2F2010%2F02%2F15%2Faccelerated-c-2010%2F&amp;linkname=Accelerated%20C%23%202010"><img src="http://portalofknowledge.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://portalofknowledge.com/2010/02/15/accelerated-c-2010/feed/</wfw:commentRss>
		<slash:comments>794</slash:comments>
		</item>
		<item>
		<title>Writing tags in wordpress posts is a hassle</title>
		<link>http://portalofknowledge.com/2009/10/04/writing-tags-in-wordpress-posts-is-a-hassle/</link>
		<comments>http://portalofknowledge.com/2009/10/04/writing-tags-in-wordpress-posts-is-a-hassle/#comments</comments>
		<pubDate>Sun, 04 Oct 2009 14:54:06 +0000</pubDate>
		<dc:creator>Sam Leach</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://portalofknowledge.com/2009/10/04/writing-tags-in-wordpress-posts-is-a-hassle/</guid>
		<description><![CDATA[ tweetmeme_url='http://portalofknowledge.com/2009/10/04/writing-tags-in-wordpress-posts-is-a-hassle/'; tweetmeme_style = 'normal';tweetmeme_source = 'sammleach';  In order do display code in wordpress posts you not only have to "code" them but also replace any  SmallerThan, GreaterThan or / with these character entities or extended characters. Otherwise wordpress takes it as html, which makes sence really.

SmallerThan = &#38; l t ;
GreaterThan = [...]]]></description>
			<content:encoded><![CDATA[<!-- This is a HTML comment, it will not display in any page. Feel free to remove this comment if it cause any inconvenient to you.
	Thanks for using digg digg, please visit http://www.mkyong.com/blog/digg-digg-wordpress-plugin for any comments and ideas, 
	
    Author : Yong Mook Kim
    Website : http://www.mkyong.com
	--><div style='float:right'><table> <td><script type="text/javascript">tweetmeme_url='http://portalofknowledge.com/2009/10/04/writing-tags-in-wordpress-posts-is-a-hassle/'; tweetmeme_style = 'normal';tweetmeme_source = 'sammleach'; </script><script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js" ></script></td></table></div><!-- This is a HTML comment, it will not display in any page. Feel free to remove this comment if it cause any inconvenient to you.
	Thanks for using digg digg, please visit http://www.mkyong.com/blog/digg-digg-wordpress-plugin for any comments and ideas, 
	
    Author : Yong Mook Kim
    Website : http://www.mkyong.com
	--><div style='float:left'><table> <td><iframe src='http://digg.com/api/diggthis.php?w=new&amp;u=http://portalofknowledge.com/2009/10/04/writing-tags-in-wordpress-posts-is-a-hassle/&amp;t=Writing+tags+in+wordpress+posts+is+a+hassle&amp;s=normal' height='80' width='52' frameborder='0' scrolling='no'></iframe></td></table></div><p>In order do display code in wordpress posts you not only have to "code" them but also replace any  SmallerThan, GreaterThan or / with these character entities or extended characters. Otherwise wordpress takes it as html, which makes sence really.</p>
<p><code><br />
SmallerThan = &amp; l t ;<br />
GreaterThan = &amp; g t ;<br />
/ = &amp; # 4 7 ;<br />
] = &amp; # 9 3 ;<br />
[ = &amp; # 9 1 ;<br />
" = &amp; # 3 4 ;<br />
' = &amp; # 3 9 ;<br />
</code></p>
<p>I found the info <a href="http://codex.wordpress.org/Writing_Code_in_Your_Posts">here at Wordpress Codex</a></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fportalofknowledge.com%2F2009%2F10%2F04%2Fwriting-tags-in-wordpress-posts-is-a-hassle%2F&amp;linkname=Writing%20tags%20in%20wordpress%20posts%20is%20a%20hassle"><img src="http://portalofknowledge.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://portalofknowledge.com/2009/10/04/writing-tags-in-wordpress-posts-is-a-hassle/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Silverlight 3 Introduction</title>
		<link>http://portalofknowledge.com/2009/10/02/silverlight-3-introduction/</link>
		<comments>http://portalofknowledge.com/2009/10/02/silverlight-3-introduction/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 17:54:06 +0000</pubDate>
		<dc:creator>Sam Leach</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">http://portalofknowledge.com/?p=38</guid>
		<description><![CDATA[ tweetmeme_url='http://portalofknowledge.com/2009/10/02/silverlight-3-introduction/'; tweetmeme_style = 'normal';tweetmeme_source = 'sammleach';  Let’s get Silverlight 3.0 installed and setup. Download the Silverlight 3 Toolkit. If you are using Visual Studio 2008 you will have to update to the latest version for Silverlight toolkit to install. This is done through windows update.
In Visual Studio Start a new project and select [...]]]></description>
			<content:encoded><![CDATA[<!-- This is a HTML comment, it will not display in any page. Feel free to remove this comment if it cause any inconvenient to you.
	Thanks for using digg digg, please visit http://www.mkyong.com/blog/digg-digg-wordpress-plugin for any comments and ideas, 
	
    Author : Yong Mook Kim
    Website : http://www.mkyong.com
	--><div style='float:right'><table> <td><script type="text/javascript">tweetmeme_url='http://portalofknowledge.com/2009/10/02/silverlight-3-introduction/'; tweetmeme_style = 'normal';tweetmeme_source = 'sammleach'; </script><script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js" ></script></td></table></div><!-- This is a HTML comment, it will not display in any page. Feel free to remove this comment if it cause any inconvenient to you.
	Thanks for using digg digg, please visit http://www.mkyong.com/blog/digg-digg-wordpress-plugin for any comments and ideas, 
	
    Author : Yong Mook Kim
    Website : http://www.mkyong.com
	--><div style='float:left'><table> <td><iframe src='http://digg.com/api/diggthis.php?w=new&amp;u=http://portalofknowledge.com/2009/10/02/silverlight-3-introduction/&amp;t=Silverlight+3+Introduction&amp;s=normal' height='80' width='52' frameborder='0' scrolling='no'></iframe></td></table></div><p>Let’s get Silverlight 3.0 installed and setup. Download the <a href="http://silverlight.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=24246">Silverlight 3 Toolkit</a>. If you are using Visual Studio 2008 you will have to update to the latest version for Silverlight toolkit to install. This is done through windows update.</p>
<p>In Visual Studio Start a new project and select  ”Silverlight” which will be under “Other Languages”.  You will be presented with a dialog asking you to “Host the Silverlight application in a new Web site”.  </p>
<p><a target='_blank' title='ImageShack - Image And Video Hosting' href='http://img59.imageshack.us/i/newsilverlightapplicati.jpg/'><img src='http://img59.imageshack.us/img59/2149/newsilverlightapplicati.jpg'></a></p>
<p>Checking this will create an ASP.NET Web project to hold our new Silverlight project. I’ve had problems with applications not loading so I usualy keep this unchecked. If you don’t encounter any problems leave it checked as you will then have a web server for your Silverlight application.</p>
<p>In Visual Studio you will be presented with 4 files. App.xaml, App.xaml.cs and MainPage.xaml, MainPage.xaml.cs</p>
<p>Xaml, as you may have guest stands for Extensible Application Markup Language. It looks like xml so for now that’s all I care about. It works using tags just like any markup language.  It is how we are going to create our Silverlight UI.  Any functionality is written in C#. We are only going to look at MainPage.xaml for the time being.</p>
<p>Let’s create a Hello World button! </p>
<p>First thing we may want to do is change the name of the default Grid which was automatically created for us by Visual Studio. “x:Name” gives a name to our grid so we can use it or reference it from our C# code. Pretty self explanitory.  Call it MyGrid, or MyFirstGrid or leave it as LayoutRoot!. Now let us change the background colour from white to comething else.  After you named your grid and still inside the Grid tags type “Background” and Visual Studio should auto complete and display a drop down with many colours. So you should have something like:</p>
<p><code>&lt;Grid x:Name="MyGrid" Background="Tan"&gt;</p>
<p>  &lt;&#47;Grid&gt;<br />
</code></p>
<p>Press F5 to start debugging, Visual Studio will launch your default web browser and you will be presented with a blank page with the background you chose. It’s a start but still not very exiting, let us add some text and a button.<br />
Inside our grid open a Button tag like so and give it a name just like we did for the Grid.</p>
<p><code>&lt;Button x:Name=&quot;EvilButton&quot;</code></p>
<p>Followed by what we want the button to say</p>
<p><code>Content="I am a nice Button, Press Me!"</code></p>
<p>Next we set the size of the button in the form of Width and Height</p>
<p><code>Width="200" Height="50"</code></p>
<p>And for now we’re done so we close the button tag with a </p>
<p><code>&gt;</code></p>
<p>Visual Studio will automatically create the ending tag</p>
<p><code></Button></code></p>
<p>You will end up with a button in the center of your browser.</p>
<p><code>&lt;Button x:Name="EvilButton" Content="I am a nice Button, Press Me!" Width="200" Height="50"&gt;<br />
            &lt;&#47;Button&gt;</p>
<p></code></p>
<p><a target='_blank' title='ImageShack - Image And Video Hosting' href='http://img225.imageshack.us/i/silverlightbutton.jpg/'><img src='http://img225.imageshack.us/img225/6320/silverlightbutton.jpg'></a></p>
<p>Next let’s add some text to the left of this new button. We have limited layout formating options at this point. Canvases,  StackPanels and more on Grids will be explained in the next tutorial.<br />
A TextBlock tag is used to display text in Silverlight. I won’t walk you through it this time. Here is the code.</p>
<p><code><br />
            &lt;TextBlock x:Name="WarningMsg" Foreground="Coral" FontSize="20" HorizontalAlignment="Left" VerticalAlignment="Center"&gt;<br />
            What evar u do, do NOT press dat button -------&gt;<br />
        &lt;&#47;TextBlock&gt;</p>
<p></code></p>
<p>Now finally let’s make our button do something or add behavior. This is acomplished by adding an event handler. We want something to happen when the button is clicked so let’s add a “Click” event handler.</p>
<p>After setting the button’s Height,  type Click = “”. Click  from the drop down. Visual Studio will create an event handler name for you. In my case EvilButton_Click. Also in our C# or VB source file VS implemented the event handler. Now we want to go and find that stub and add our behaviour. Add </p>
<p><code>EvilButton.Content = "Pushed, releasing evil..."</code></p>
<p>To end up with (VB)</p>
<p><code>Private Sub EvilButton_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs)<br />
        EvilButton.Content = "Pushed, releasing evil..."<br />
    End Sub<br />
</code></p>
<p>or (C#)</p>
<p><code>Void EvilButton_Click(object sender, RoutedEventArgs e){<br />
EvilButton.Content = "Pushed, releasing evil...";<br />
}</code></p>
<p><a target='_blank' title='ImageShack - Image And Video Hosting' href='http://img59.imageshack.us/i/silverlightbuttonwithte.jpg/'><img src='http://img59.imageshack.us/img59/8994/silverlightbuttonwithte.jpg'></a></p>
<p>Now run and push the button...or don’t.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fportalofknowledge.com%2F2009%2F10%2F02%2Fsilverlight-3-introduction%2F&amp;linkname=Silverlight%203%20Introduction"><img src="http://portalofknowledge.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://portalofknowledge.com/2009/10/02/silverlight-3-introduction/feed/</wfw:commentRss>
		<slash:comments>703</slash:comments>
		</item>
	</channel>
</rss>

