<?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>MyOnline-Site.com</title>
	<atom:link href="http://www.myonline-site.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.myonline-site.com</link>
	<description>developing Singapore based mobile apps</description>
	<lastBuildDate>Sun, 22 Apr 2012 04:07:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>BusGuide WP7 errors fixed, ver 1.6 now available</title>
		<link>http://www.myonline-site.com/?p=923</link>
		<comments>http://www.myonline-site.com/?p=923#comments</comments>
		<pubDate>Thu, 05 Apr 2012 04:03:41 +0000</pubDate>
		<dc:creator>Adi</dc:creator>
				<category><![CDATA[Updates]]></category>
		<category><![CDATA[BusGuide]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[WP7]]></category>

		<guid isPermaLink="false">http://www.myonline-site.com/?p=923</guid>
		<description><![CDATA[Version 1.6 of BusGuide WP7 is now available on marketplace. This version fixes the errors when retrieving bus arrival timing, which occured due to the transitlink website changes. This version also includes minor UI changes, which I hope makes the app more user friendly. Do let me know what you think of it. Leave a [...]]]></description>
			<content:encoded><![CDATA[<p>Version 1.6 of <a href="http://www.myonline-site.com/?p=167">BusGuide WP7</a> is now available on marketplace.  This version fixes the errors when retrieving bus arrival timing, which occured due to the transitlink website changes.  </p>
<p>This version also includes minor UI changes, which I hope makes the app more user friendly.  Do let me know what you think of it.  Leave a rating if you enjoy using the app.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.myonline-site.com/?feed=rss2&#038;p=923</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SG Movies 1.1 now on marketplace</title>
		<link>http://www.myonline-site.com/?p=918</link>
		<comments>http://www.myonline-site.com/?p=918#comments</comments>
		<pubDate>Wed, 07 Mar 2012 10:15:19 +0000</pubDate>
		<dc:creator>Adi</dc:creator>
				<category><![CDATA[Updates]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[SG Movies]]></category>
		<category><![CDATA[WP7]]></category>

		<guid isPermaLink="false">http://www.myonline-site.com/?p=918</guid>
		<description><![CDATA[SG Movies version 1.1 can now be downloaded from the marketplace. This version brings 2 very useful features, the checking of seat availability from the app, by linking directly to the cinema&#8217;s booking system, and viewing of trailers for each show. Do give it a go and provide a positive rating if you like the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.myonline-site.com/?p=901">SG Movies</a> version 1.1 can now be downloaded from the marketplace.  This version brings 2 very useful features, the checking of seat availability from the app, by linking directly to the cinema&#8217;s booking system, and viewing of trailers for each show.</p>
<p>Do give it a go and provide a positive rating if you like the app <img src='http://www.myonline-site.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.myonline-site.com/?feed=rss2&#038;p=918</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SG Movies</title>
		<link>http://www.myonline-site.com/?p=901</link>
		<comments>http://www.myonline-site.com/?p=901#comments</comments>
		<pubDate>Sat, 11 Feb 2012 15:26:32 +0000</pubDate>
		<dc:creator>Adi</dc:creator>
				<category><![CDATA[Apps]]></category>
		<category><![CDATA[SG Movies]]></category>
		<category><![CDATA[WP7]]></category>

		<guid isPermaLink="false">http://www.myonline-site.com/?p=901</guid>
		<description><![CDATA[SG Movies is the one stop app for all your movie needs. Get upcoming movie details, read the plot, or view the trailers. Easily check for the showtime of current movies. Once you decided which movie to watch, you can even check the movie seating availability, and access the cinema booking system directly. Add shortcuts [...]]]></description>
			<content:encoded><![CDATA[<p>SG Movies is the one stop app for all your movie needs.  Get upcoming movie details, read the plot, or view the trailers.  Easily check for the showtime of current movies.  Once you decided which movie to watch, you can even check the movie seating availability, and access the cinema booking system directly.  </p>
<p>Add shortcuts of different cinemas or movies so that you can access those information quickly.  Listing of all cinemas makes it easy for you to find the address and phone number of any cinemas.</p>
<p><span id="more-901"></span></p>
<p>&nbsp;</p>
<p><img class="size-full wp-image-220 alignnone" title="screenshots-ruler" src="http://www.myonline-site.com/wp-content/uploads/2011/06/screenshots-ruler.png" alt="" width="296" height="36" /></p>
<p><strong>Home</strong></p>
<p style="padding-left: 30px;"><img src="http://www.myonline-site.com/wp-content/uploads/2012/04/sgmovies-1.png" alt="" title="home" width="570" height="285" class="alignnone size-full wp-image-902" /></p>
<p>&nbsp;</p>
<p><strong>Movie List</strong></p>
<p style="padding-left: 30px;"><img src="http://www.myonline-site.com/wp-content/uploads/2012/04/sgmovies-2.png" alt="" title="movie listing" width="240" height="400" class="alignnone size-full wp-image-903" /> <img src="http://www.myonline-site.com/wp-content/uploads/2012/04/sgmovies-3.png" alt="" title="opening soon" width="240" height="400" class="alignnone size-full wp-image-904" /></p>
<p>&nbsp;</p>
<p><strong>Movie Details</strong></p>
<p style="padding-left: 30px;"><img src="http://www.myonline-site.com/wp-content/uploads/2012/04/sgmovies-4.png" alt="" title="movie details" width="240" height="400" class="alignnone size-full wp-image-905" /> <img src="http://www.myonline-site.com/wp-content/uploads/2012/04/sgmovies-5.png" alt="" title="showtime" width="240" height="400" class="alignnone size-full wp-image-906" /></p>
<p>&nbsp;</p>
<p><strong>Cinema Details</strong></p>
<p style="padding-left: 30px;"><img src="http://www.myonline-site.com/wp-content/uploads/2012/04/sgmovies-6.png" alt="" title="cinema listing" width="240" height="400" class="alignnone size-full wp-image-907" /> <img src="http://www.myonline-site.com/wp-content/uploads/2012/04/sgmovies-7.png" alt="" title="cinema details" width="240" height="400" class="alignnone size-full wp-image-911" /></p>
<p>&nbsp;</p>
<p><strong>Favourite</strong></p>
<p style="padding-left: 30px;"><img src="http://www.myonline-site.com/wp-content/uploads/2012/04/sgmovies-9.png" alt="" title="favourite" width="240" height="400" class="alignnone size-full wp-image-909" /></p>
<p>&nbsp;</p>
<p><strong>Seat booking</strong></p>
<p style="padding-left: 30px;"><img src="http://www.myonline-site.com/wp-content/uploads/2012/04/sgmovies-10.png" alt="" title="seat booking" width="240" height="400" class="alignnone size-full wp-image-910" /></p>
<p>&nbsp;</p>
<p><img class="alignnone size-full wp-image-219" title="changelogs-ruler" src="http://www.myonline-site.com/wp-content/uploads/2011/06/changelogs-ruler.png" alt="change logs" width="296" height="36" /></p>
<p>Version 1.1 (7th Mar 2012)</p>
<ul>
<li>view movie trailers</li>
<li>access seat booking directly</li>
</ul>
<p>Version 1.0 (11th Feb 2012)</p>
<ul>
<li>initial release</li>
</ul>
<p>&nbsp;</p>
<p><img class="alignnone size-full wp-image-279" title="download-ruler" src="http://www.myonline-site.com/wp-content/uploads/2011/06/download-ruler.png" alt="download" width="296" height="36" /></p>
<p><a href="http://windowsphone.com/s?appid=924cfd17-4276-4349-be73-0c615c780dd6"><img class="alignnone size-full wp-image-309" title="wp7download-icon" src="http://www.myonline-site.com/wp-content/uploads/2011/06/wp7download-icon.png" alt="download" width="152" height="50" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.myonline-site.com/?feed=rss2&#038;p=901</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Text Wrapping a WP7 HyperlinkButton</title>
		<link>http://www.myonline-site.com/?p=888</link>
		<comments>http://www.myonline-site.com/?p=888#comments</comments>
		<pubDate>Sat, 07 Jan 2012 08:10:21 +0000</pubDate>
		<dc:creator>Adi</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[WP7]]></category>

		<guid isPermaLink="false">http://www.myonline-site.com/?p=888</guid>
		<description><![CDATA[If you have ever used a HyperlinkButton in your WP7 app, you will notice that the &#8220;TextWrapping&#8221; property is not available to that control. What happens if you have a HyperlinkButton with a really long name is, it gets truncated as such. You can set the text to wrap though by generating your own custom [...]]]></description>
			<content:encoded><![CDATA[<p>If you have ever used a HyperlinkButton in your WP7 app, you will notice that the &#8220;TextWrapping&#8221; property is not available to that control.  What happens if you have a HyperlinkButton with a really long name is, it gets truncated as such.</p>
<p style="padding-left: 30px;"><img src="http://www.myonline-site.com/wp-content/uploads/2012/01/textwrapping-1.jpg" alt="truncated HyperlinkButton " title="textwrapping-1" width="570" height="253" class="alignnone size-full wp-image-889" /></p>
<p>You can set the text to wrap though by generating your own custom style, where you get to have more control of the text in the HyperlinkButton .</p>
<p><span id="more-888"></span></p>
<p>&nbsp;<br />
First open up your page in Expression Blend</p>
<p style="padding-left: 30px;"><img src="http://www.myonline-site.com/wp-content/uploads/2012/01/textwrapping-2.jpg" alt="open in blend" title="textwrapping-2" width="570" height="300" class="alignnone size-full wp-image-890" /></p>
<p>&nbsp;<br />
Once Expression Blend is opened, right click on the HyperlinkButton  and select &#8220;Edit Template &#8211; Edit a Copy&#8221;.</p>
<p style="padding-left: 30px;"><img src="http://www.myonline-site.com/wp-content/uploads/2012/01/textwrapping-3.jpg" alt="edit template" title="textwrapping-3" width="570" height="330" class="alignnone size-full wp-image-891" /></p>
<p>&nbsp;<br />
You will now notice that on the left hand corner, after expanding the tree, you get to a TextElement control.  Select that and then expand the &#8220;Text&#8221; option on the right.</p>
<p style="padding-left: 30px;"><img src="http://www.myonline-site.com/wp-content/uploads/2012/01/textwrapping-4.jpg" alt="text option" title="textwrapping-4" width="570" height="327" class="alignnone size-full wp-image-892" /></p>
<p>&nbsp;<br />
After expanding the &#8220;Text&#8221; option, you can now set the TextWrapping option.</p>
<p style="padding-left: 30px;"><img src="http://www.myonline-site.com/wp-content/uploads/2012/01/textwrapping-5.jpg" alt="textwrapping" title="textwrapping-5" width="261" height="196" class="alignnone size-full wp-image-893" /></p>
<p>&nbsp;<br />
Save the project and you&#8217;re done.  You can now close Expression Blend.  In Visual Studio, you will notice a new style has been added to your XAML at the top.</p>
<p style="padding-left: 30px;"><img src="http://www.myonline-site.com/wp-content/uploads/2012/01/textwrapping-6.jpg" alt="style" title="textwrapping-6" width="570" height="277" class="alignnone size-full wp-image-894" /></p>
<p>&nbsp;<br />
And there you have it, your HyperlinkButton is now text wrapped.</p>
<p style="padding-left: 30px;"><img src="http://www.myonline-site.com/wp-content/uploads/2012/01/textwrapping-7.jpg" alt="text wrap" title="textwrapping-7" width="570" height="271" class="alignnone size-full wp-image-895" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.myonline-site.com/?feed=rss2&#038;p=888</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Data Binding IsEnabled values to the WP7 appbar button</title>
		<link>http://www.myonline-site.com/?p=883</link>
		<comments>http://www.myonline-site.com/?p=883#comments</comments>
		<pubDate>Sat, 17 Dec 2011 15:46:00 +0000</pubDate>
		<dc:creator>Adi</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[WP7]]></category>

		<guid isPermaLink="false">http://www.myonline-site.com/?p=883</guid>
		<description><![CDATA[If you&#8217;ve ever tried to databind values to a WP7 application appbar, you will realize that its not possible to do so. This will mean, for example, that you will not be able to enable/disable an appbar button by setting the value in your View Model. You will instead, need to do this from the [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve ever tried to databind values to a WP7 application appbar, you will realize that its not possible to do so.  This will mean, for example, that you will not be able to enable/disable an appbar button by setting the value in your View Model.  You will instead, need to do this from the code behind, but this adds some complexity, when the value is actually determined and set in the View Model itself.</p>
<p>There is a workaround for this though, which should allow you to databind the IsEnabled value of the appbar button.</p>
<p><span id="more-883"></span></p>
<p>&nbsp;<br />
In this example, I have an appbar in my app, consisting of only 1 button.  I also have a bool property &#8220;enableButton&#8221; in my ViewModel, which will either set the appbar button to enabled or disabled.</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #008000;">&lt;</span>phone<span style="color: #008000;">:</span>PhoneApplicationPage<span style="color: #008000;">.</span><span style="color: #0000FF;">ApplicationBar</span><span style="color: #008000;">&gt;</span>
   <span style="color: #008000;">&lt;</span>shell<span style="color: #008000;">:</span>ApplicationBar IsVisible<span style="color: #008000;">=</span><span style="color: #666666;">&quot;True&quot;</span> IsMenuEnabled<span style="color: #008000;">=</span><span style="color: #666666;">&quot;False&quot;</span> Mode<span style="color: #008000;">=</span><span style="color: #666666;">&quot;Default&quot;</span> ForegroundColor<span style="color: #008000;">=</span><span style="color: #666666;">&quot;White&quot;</span> BackgroundColor<span style="color: #008000;">=</span><span style="color: #666666;">&quot;#fc0000&quot;</span><span style="color: #008000;">&gt;</span>
      <span style="color: #008000;">&lt;</span>shell<span style="color: #008000;">:</span>ApplicationBarIconButton IconUri<span style="color: #008000;">=</span><span style="color: #666666;">&quot;/Images/appbar_refresh.png&quot;</span> Text<span style="color: #008000;">=</span><span style="color: #666666;">&quot;refresh&quot;</span> Click<span style="color: #008000;">=</span><span style="color: #666666;">&quot;refreshButton_Click&quot;</span> <span style="color: #008000;">/&gt;</span>
   <span style="color: #008000;">&lt;/</span>shell<span style="color: #008000;">:</span>ApplicationBar<span style="color: #008000;">&gt;</span>
<span style="color: #008000;">&lt;/</span>phone<span style="color: #008000;">:</span>PhoneApplicationPage<span style="color: #008000;">.</span><span style="color: #0000FF;">ApplicationBar</span><span style="color: #008000;">&gt;</span></pre></div></div>

<p>&nbsp;</p>
<p>Since I cannot databind the &#8220;enableButton&#8221; property of my ViewModel directly to the appbar button, I will need to add this small piece of code first into my XAML.</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #008000;">&lt;!--</span>work around listener to enable<span style="color: #008000;">/</span>disable appbar icon<span style="color: #008000;">--&gt;</span>
<span style="color: #008000;">&lt;</span>CheckBox IsEnabled<span style="color: #008000;">=</span><span style="color: #666666;">&quot;{Binding enableButton}&quot;</span> IsEnabledChanged<span style="color: #008000;">=</span><span style="color: #666666;">&quot;toggle_Appbar&quot;</span> Visibility<span style="color: #008000;">=</span><span style="color: #666666;">&quot;Collapsed&quot;</span>  <span style="color: #008000;">/&gt;</span></pre></div></div>

<p>&nbsp;</p>
<p>In my code behind, I then add the below code.</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #6666cc; font-weight: bold;">void</span> toggle_Appbar<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">object</span> sender, DependencyPropertyChangedEventArgs e<span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
   <span style="color: #008000;">&#40;</span>ApplicationBar<span style="color: #008000;">.</span><span style="color: #0000FF;">Buttons</span><span style="color: #008000;">&#91;</span><span style="color: #FF0000;">0</span><span style="color: #008000;">&#93;</span> <span style="color: #0600FF; font-weight: bold;">as</span> ApplicationBarIconButton<span style="color: #008000;">&#41;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">IsEnabled</span> <span style="color: #008000;">=</span> <span style="color: #008000;">&#40;</span>sender <span style="color: #0600FF; font-weight: bold;">as</span> CheckBox<span style="color: #008000;">&#41;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">IsEnabled</span><span style="color: #008000;">;</span>
<span style="color: #008000;">&#125;</span></pre></div></div>

<p>What this 2 pieces of code do basically is, I first add a checkbox, to my page, and databind the IsEnabled property to my ViewModel.  Since I do not really need to see this checkbox, I made it invisible.  I added an event listener to this checkbox, which triggers everytime the IsEnabled property changes.  I then add the event in my code behind, which sets the IsEnabled property of my appbar button to the same value as the checkbox.  Now, every time the value in my ViewModel changes, the checkbox will reflect the same value, triggering the IsEnabledChanged event, which in turns set my appbar button to the correct state.  </p>
<p>With this method, your appbar button will now be automatically updated whenever the value of your ViewModel property changes.  Not exactly databinding but a clean workaround.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.myonline-site.com/?feed=rss2&#038;p=883</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Minimize data binding lag in WP7 by delaying the load data for the ViewModel Items</title>
		<link>http://www.myonline-site.com/?p=875</link>
		<comments>http://www.myonline-site.com/?p=875#comments</comments>
		<pubDate>Mon, 12 Dec 2011 15:05:42 +0000</pubDate>
		<dc:creator>Adi</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Mango]]></category>
		<category><![CDATA[WP7]]></category>

		<guid isPermaLink="false">http://www.myonline-site.com/?p=875</guid>
		<description><![CDATA[In a Model View ViewModel (MVVM) WP7 app, the loading of data for the ViewModel items usually gets executed in the page &#8220;Loaded&#8221; event. When the ViewModel Items is huge (list of many items), there is a noticeable lag though, when navigating to the page, and having the page opened. For example, click a link [...]]]></description>
			<content:encoded><![CDATA[<p>In a Model View ViewModel (MVVM) WP7 app, the loading of data for the ViewModel items usually gets executed in the page &#8220;Loaded&#8221; event.  When the ViewModel Items is huge (list of many items), there is a noticeable lag though, when navigating to the page, and having the page opened.  For example, click a link to open a page within your app, and there is about 1-2 seconds delay, before that page is finally opened.</p>
<p>This lag happens because the UI thread is busy trying to bind all that data.  The page will only get displayed once the data binding is done.  The larger your list, the more noticeable the lag.  In this scenario, you can minimize the lag, by delaying the load data for the ViewModel Items, until after the page gets displayed.  This way, it will make your app look more responsive, as the page is loaded fast after you navigate to it, even if the page that gets loaded does not show any data yet.<br />
&nbsp;</p>
<p><span id="more-875"></span></p>
<p>Lets look at the default DataBound Application when you start a new project.  You can see that the &#8220;LoadData&#8221; function is called in the &#8220;MainPage_Loaded&#8221; method.</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #008080; font-style: italic;">// Load data for the ViewModel Items</span>
<span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #6666cc; font-weight: bold;">void</span> MainPage_Loaded<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">object</span> sender, RoutedEventArgs e<span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
   <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span><span style="color: #008000;">!</span>App<span style="color: #008000;">.</span><span style="color: #0000FF;">ViewModel</span><span style="color: #008000;">.</span><span style="color: #0000FF;">IsDataLoaded</span><span style="color: #008000;">&#41;</span>
   <span style="color: #008000;">&#123;</span>
      App<span style="color: #008000;">.</span><span style="color: #0000FF;">ViewModel</span><span style="color: #008000;">.</span><span style="color: #0000FF;">LoadData</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
   <span style="color: #008000;">&#125;</span>
<span style="color: #008000;">&#125;</span></pre></div></div>

<p>&nbsp;</p>
<p>The idea here is to wait for a short period, to give the page time to display (without any data though), before we do the &#8220;LoadData&#8221; function.  You can do this by modifying the code, so that it looks like this.</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #008080; font-style: italic;">// Load data for the ViewModel Items</span>
<span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #6666cc; font-weight: bold;">void</span> MainPage_Loaded<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">object</span> sender, RoutedEventArgs e<span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
   <span style="color: #008080; font-style: italic;">// delay the load data so that page/animation can complete smoothly</span>
   Thread t <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Thread<span style="color: #008000;">&#40;</span>unused <span style="color: #008000;">=&gt;</span> delayedLoadData<span style="color: #008000;">&#40;</span><span style="color: #FF0000;">1000</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
   t<span style="color: #008000;">.</span><span style="color: #0000FF;">Start</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
<span style="color: #008000;">&#125;</span>
&nbsp;
<span style="color: #008080; font-style: italic;">// delay the load data by a few ms (background run))</span>
<span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #6666cc; font-weight: bold;">void</span> delayedLoadData<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">int</span> delay<span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
   <span style="color: #000000;">System.<span style="color: #0000FF;">Threading</span></span><span style="color: #008000;">.</span><span style="color: #0000FF;">Thread</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Sleep</span><span style="color: #008000;">&#40;</span>delay<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
   <span style="color: #008080; font-style: italic;">// marshal back background thread to UI thread</span>
   Deployment<span style="color: #008000;">.</span><span style="color: #0000FF;">Current</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Dispatcher</span><span style="color: #008000;">.</span><span style="color: #0000FF;">BeginInvoke</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">=&gt;</span>
   <span style="color: #008000;">&#123;</span>
      App<span style="color: #008000;">.</span><span style="color: #0000FF;">ViewModel</span><span style="color: #008000;">.</span><span style="color: #0000FF;">LoadData</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
   <span style="color: #008000;">&#125;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
<span style="color: #008000;">&#125;</span></pre></div></div>

<p>What this piece of code change does is, upon page load, it runs the &#8220;delayedLoadData&#8221; in the background, so that it will not hog the UI thread.  This &#8220;delayedLoadData&#8221; method, which is now running in the background, takes in a parameter 1000 (1 second), and waits for this 1 second to complete, before running the &#8220;LoadData&#8221; function back in the UI thread.  The 1 second delay, should give enough time for your page to get displayed without any data, or if you are using the silverlight toolkit animation, enough time for the animation to complete.  The &#8220;LoadData&#8221; function should then kick in after the short delay.  Even if there is now a 1-2 second lag before the data is eventually displayed, the user should not notice any lag, since your page is already displayed (with animations running smoothly even).  This indeed gives your app a more responsive feel to it.  Adjust the time to delay according to the complexity of your ViewModel items.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.myonline-site.com/?feed=rss2&#038;p=875</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SG Used Cars 1.3 for mango, now on marketplace</title>
		<link>http://www.myonline-site.com/?p=872</link>
		<comments>http://www.myonline-site.com/?p=872#comments</comments>
		<pubDate>Mon, 12 Dec 2011 13:48:19 +0000</pubDate>
		<dc:creator>Adi</dc:creator>
				<category><![CDATA[Updates]]></category>
		<category><![CDATA[Cars]]></category>
		<category><![CDATA[Mango]]></category>

		<guid isPermaLink="false">http://www.myonline-site.com/?p=872</guid>
		<description><![CDATA[The SG Used Cars app mango update is finally up on marketplace. Version 1.3 does not add new features but only improvements to the existing ones. One improvement is the fast app switching. You can now multi task and switch back to the app and it will open immediately. The other improvement is that when [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://www.myonline-site.com/?p=173">SG Used Cars</a> app mango update is finally up on marketplace.  Version 1.3 does not add new features but only improvements to the existing ones.  </p>
<p>One improvement is the fast app switching.  You can now multi task and switch back to the app and it will open immediately.  The other improvement is that when listing cars from your search results, the next set of results will automatically load when you scroll down to the list.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.myonline-site.com/?feed=rss2&#038;p=872</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing font size, color and style of WP7 Panorama/Pivot title</title>
		<link>http://www.myonline-site.com/?p=776</link>
		<comments>http://www.myonline-site.com/?p=776#comments</comments>
		<pubDate>Fri, 09 Dec 2011 01:37:13 +0000</pubDate>
		<dc:creator>Adi</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[WP7]]></category>

		<guid isPermaLink="false">http://www.myonline-site.com/?p=776</guid>
		<description><![CDATA[While helping out at the Nokia X-Calibre hackathon, one of the most commonly asked question I got was, The font size of the panaroma/pivot title is too big. How do I change the size, or even add an image to the title, while still maintaining the default margins&#8230; It really is simple to do this. [...]]]></description>
			<content:encoded><![CDATA[<p>While helping out at the Nokia X-Calibre hackathon, one of the most commonly asked question I got was,</p>
<blockquote><p>The font size of the panaroma/pivot title is too big.  How do I change the size, or even add an image to the title, while still maintaining the default margins&#8230;</p></blockquote>
<p>It really is simple to do this.  Lets look at the default panorama/pivot title.</p>
<p><span id="more-776"></span></p>
<p>&nbsp;<br />
&nbsp;</p>
<p>When you create a new Panorama project, the XAML for the title is as below.  As you can see the title of the page is set as &#8220;my application&#8221;</p>

<div class="wp_syntax"><div class="code"><pre class="cfm" style="font-family:monospace;"><span style="color: #333333;"><span style="color: #0000FF;">&lt;</span>controls:Panorama <span style="color: #0000FF;">Title</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;my application&quot;</span><span style="color: #0000FF;">&gt;</span></span>
   <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span>controls:Panorama.<span style="color: #0000FF;">Background</span><span style="color: #0000FF;">&gt;</span></span>
      <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span>ImageBrush ImageSource<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;PanoramaBackground.png&quot;</span><span style="color: #0000FF;">/&gt;</span></span>
   <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span>controls:Panorama.<span style="color: #0000FF;">Background</span><span style="color: #0000FF;">&gt;</span></span>
   ....
<span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span>controls:Panorama<span style="color: #0000FF;">&gt;</span></span></pre></div></div>

<p>To change the size and style of this title, add an extra piece of code such that it looks like this.</p>

<div class="wp_syntax"><div class="code"><pre class="cfm" style="font-family:monospace;"><span style="color: #333333;"><span style="color: #0000FF;">&lt;</span>controls:Panorama<span style="color: #0000FF;">&gt;</span></span>
   <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span>controls:Panorama.<span style="color: #0000FF;">Title</span><span style="color: #0000FF;">&gt;</span></span>
      <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span>Grid <span style="color: #0000FF;">Height</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;249&quot;</span><span style="color: #0000FF;">&gt;</span></span>
         <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span>TextBlock <span style="color: #0000FF;">Text</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;my application&quot;</span> Margin<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;0&quot;</span> FontSize<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;187&quot;</span> <span style="color: #0000FF;">/&gt;</span></span>
      <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span>Grid<span style="color: #0000FF;">&gt;</span></span>
   <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span>controls:Panorama.<span style="color: #0000FF;">Title</span><span style="color: #0000FF;">&gt;</span></span>
   <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span>controls:Panorama.<span style="color: #0000FF;">Background</span><span style="color: #0000FF;">&gt;</span></span>
      <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span>ImageBrush ImageSource<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;PanoramaBackground.png&quot;</span><span style="color: #0000FF;">/&gt;</span></span>
   <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span>controls:Panorama.<span style="color: #0000FF;">Background</span><span style="color: #0000FF;">&gt;</span></span>
   ....
<span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span>controls:Panorama<span style="color: #0000FF;">&gt;</span></span></pre></div></div>

<p>As you can see, I have created an extra XAML block entirely for the title.  The default font size of the title is 187 and you can now change it to whatever size, color or style.  The grid height of 249 is to ensure that the margins for the rest of the page remains the same even if you change the font size.  If you want to include an image in your title, you can just add it under the grid.</p>
<p>&nbsp;<br />
&nbsp;</p>
<p>For Pivot title, its similar too, but in the case for pivot, you add it under each pivot item as a header.</p>

<div class="wp_syntax"><div class="code"><pre class="cfm" style="font-family:monospace;"><span style="color: #333333;"><span style="color: #0000FF;">&lt;</span>controls:PivotItem <span style="color: #0000FF;">&gt;</span></span>
   <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span>controls:PivotItem.Header<span style="color: #0000FF;">&gt;</span></span>
      <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span>Grid <span style="color: #0000FF;">Height</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;95&quot;</span><span style="color: #0000FF;">&gt;</span></span>
         <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span>TextBlock <span style="color: #0000FF;">Text</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;first&quot;</span> FontSize<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;72&quot;</span> <span style="color: #0000FF;">/&gt;</span></span>
      <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span>Grid<span style="color: #0000FF;">&gt;</span></span>
   <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span>controls:PivotItem.Header<span style="color: #0000FF;">&gt;</span></span>
   ...
<span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span>controls:PivotItem<span style="color: #0000FF;">&gt;</span></span></pre></div></div>

<p>Here, the default font size is 72 and the grid size is 95 to maintain the default page margins.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.myonline-site.com/?feed=rss2&#038;p=776</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nokia Lumia 800.. a piece of art!</title>
		<link>http://www.myonline-site.com/?p=750</link>
		<comments>http://www.myonline-site.com/?p=750#comments</comments>
		<pubDate>Fri, 02 Dec 2011 00:51:52 +0000</pubDate>
		<dc:creator>Adi</dc:creator>
				<category><![CDATA[Gadgets]]></category>
		<category><![CDATA[Nokia]]></category>
		<category><![CDATA[WP7]]></category>

		<guid isPermaLink="false">http://www.myonline-site.com/?p=750</guid>
		<description><![CDATA[Been using the Lumia 800 for the last few days, and this has by far, been the best WP7 phone I have ever used! No doubts about it. Everything about this phone screams of quality. From the size of the phone, to the screen quality, the material of the phone body itself, and finally, the [...]]]></description>
			<content:encoded><![CDATA[<p>Been using the Lumia 800 for the last few days, and this has by far, been the best WP7 phone I have ever used!  No doubts about it.  Everything about this phone screams of quality.  From the size of the phone, to the screen quality, the material of the phone body itself, and finally, the fluidity of the WP7 OS.</p>
<p>In case anyone is wondering how I got this phone when its not even launched yet, this was given to me free, courtesy of Nokia Singapore <img src='http://www.myonline-site.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><span id="more-750"></span> </p>
<p>Look what just came in the morning.  A new update for my Lumia 800</p>
<p style="padding-left: 30px;"><img src="http://www.myonline-site.com/wp-content/uploads/2011/12/nokia-update.jpg" alt="7440 update" title="nokia update" width="450" height="436" class="alignnone size-full wp-image-751" /></p>
<p style="padding-left: 30px;"><img src="http://www.myonline-site.com/wp-content/uploads/2011/12/nokia-apps-6.jpg" alt="OS version" title="nokia-apps-6" width="240" height="400" class="alignnone size-full wp-image-757" /> <img src="http://www.myonline-site.com/wp-content/uploads/2011/12/battery-status.jpg" alt="" title="battery-status" width="240" height="400" class="alignnone size-full wp-image-853" /></p>
<p>&nbsp;</p>
<p>The Nokia App Highlights makes it easy for a first time WP7 user to find apps to download.  It shows the popular apps others are downloading, as well as local apps.  My BusGuide and XINMSN app have made it here <img src='http://www.myonline-site.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   Stomp mobile is somewhere below though.</p>
<p style="padding-left: 30px;"><img src="http://www.myonline-site.com/wp-content/uploads/2011/12/nokia-apps-2.jpg" alt="popular apps" title="nokia-apps-2" width="240" height="400" class="alignnone size-full wp-image-753" /> <img src="http://www.myonline-site.com/wp-content/uploads/2011/12/nokia-apps-1.jpg" alt="in singapore apps" title="nokia-apps-1" width="240" height="400" class="alignnone size-full wp-image-752" /></p>
<p>&nbsp;</p>
<p>The Nokia Drive which comes with the phone looks like a very useful app to have too.  Settings for 2D/3D view etc..</p>
<p style="padding-left: 30px;"><img src="http://www.myonline-site.com/wp-content/uploads/2011/12/nokia-apps-3.jpg" alt="settings" title="nokia-apps-3" width="400" height="240" class="alignnone size-full wp-image-754" /></p>
<p style="padding-left: 30px;"><img src="http://www.myonline-site.com/wp-content/uploads/2011/12/nokia-apps-4.jpg" alt="3d vivew" title="nokia-apps-4" width="400" height="240" class="alignnone size-full wp-image-755" /></p>
<p style="padding-left: 30px;"><img src="http://www.myonline-site.com/wp-content/uploads/2011/12/nokia-apps-5.jpg" alt="2d view" title="nokia-apps-5" width="400" height="240" class="alignnone size-full wp-image-756" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.myonline-site.com/?feed=rss2&#038;p=750</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Review of STOMP Mobile</title>
		<link>http://www.myonline-site.com/?p=746</link>
		<comments>http://www.myonline-site.com/?p=746#comments</comments>
		<pubDate>Thu, 01 Dec 2011 09:27:30 +0000</pubDate>
		<dc:creator>Adi</dc:creator>
				<category><![CDATA[Updates]]></category>
		<category><![CDATA[Stomp]]></category>
		<category><![CDATA[WP7]]></category>

		<guid isPermaLink="false">http://www.myonline-site.com/?p=746</guid>
		<description><![CDATA[Joyce Lim, who writes a weekly column in e27, a tech-blog, contacted me a few days back expressing interest in doing a review of one of my WP7 app, STOMP Mobile. I wrote back to her giving some insights on why I chose to develop this app. The review is now completed and I am [...]]]></description>
			<content:encoded><![CDATA[<p>Joyce Lim, who writes a weekly column in <a href="http://e27.sg">e27</a>, a tech-blog, contacted me a few days back expressing interest in doing a review of one of my WP7 app, <a href="http://www.myonline-site.com/?p=169">STOMP Mobile</a>.  I wrote back to her giving some insights on why I chose to develop this app.</p>
<p><span id="more-746"></span></p>
<p>The <a href="http://e27.sg/2011/12/01/stomp-news-now-on-the-mobile/">review</a> is now completed and I am quite flattered by her positive review of the app.  </p>
<blockquote><p>My first impression of the app is how slick it looks and how vastly different it is from the website. I am really impressed. I appreciate that the website to app adaptation is not a literal copy and paste- that would have been easy to do.</p></blockquote>
<blockquote><p>The app definitely streamlined the full functionalities of the website and notably all other content except the news stories have been waylaid.</p></blockquote>
<p>I also do appreciate her frank opinions on the shortcomings of the app.  There are some aspects I&#8217;m hoping to improve on and will work on that for the next release <img src='http://www.myonline-site.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<blockquote><p>News stories load quickly however the photos loaded really slowly making browsing through photos quite a frustrating affair. I noticed a lack of loading activity so it becomes a little disconcerting because there is no feedback as well. </p></blockquote>
<p>If you do use my STOMP app, do let me know how you find it and how I can improve it further.  Do leave a ratings on Marketplace too <img src='http://www.myonline-site.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.myonline-site.com/?feed=rss2&#038;p=746</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

