<?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>Palewar Techno Solutions</title>
	<atom:link href="http://palewar.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://palewar.com</link>
	<description>Mobile App Development</description>
	<lastBuildDate>Wed, 07 Mar 2012 13:56:32 +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>Simple Animation using MS Expression Blend</title>
		<link>http://palewar.com/2011/09/simple-animation-using-ms-expression-blend/</link>
		<comments>http://palewar.com/2011/09/simple-animation-using-ms-expression-blend/#comments</comments>
		<pubDate>Wed, 14 Sep 2011 11:06:05 +0000</pubDate>
		<dc:creator>Aditi Paliwal</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[Blend]]></category>
		<category><![CDATA[wpf]]></category>
		<category><![CDATA[xaml]]></category>

		<guid isPermaLink="false">http://palewar.com/?p=615</guid>
		<description><![CDATA[In this blog we will we learn &#8220;How to Rotate an Ellipse&#8221;. To create this project please open a New project in Microsoft Expression Blend. Choose a WPF project with Framework 3.5. You will get a New Window. Add an Ellipse from the Assets tab on the right &#62;&#62; Shapes to the New Window. After [...]]]></description>
			<content:encoded><![CDATA[<p>In this blog we will we learn &#8220;How to Rotate an Ellipse&#8221;. To create this project please open a New project in Microsoft Expression Blend. Choose a WPF project with Framework 3.5.</p>
<p>You will get a New Window. Add an Ellipse from the Assets tab on the right &gt;&gt; Shapes to the New Window. After you add ellipse on the form, color the Ellipse with the color you want by selecting the ellipse control first and color from the properties windows. Your ellipse will look like Ellipse below on the Window (Refer the Steps from image to get a clear view).</p>
<p style="text-align: center;"><a href="http://palewar.com/2011/09/simple-animation-using-ms-expression-blend/ellipse-with-color/" rel="attachment wp-att-655"><img class="aligncenter size-full wp-image-655" src="http://palewar.com/wp-content/uploads/2011/09/Ellipse-With-Color.png" alt="Ellipse With Color" width="590" height="246" /></a></p>
<p>&nbsp;</p>
<p>Add a new StoryBoard. A StoryBoard is like a timeline to create animation. To add a StoryBoard click on the Add button which is shown in the image below. After you click on the Add button a dialog appears, asking you the name of the StoryBoard write down name as &#8216;RotateEllipse&#8217;, press OK button.</p>
<p style="text-align: center;"><a href="http://palewar.com/2011/09/simple-animation-using-ms-expression-blend/add-storyboard-3/" rel="attachment wp-att-661"><img class="aligncenter size-full wp-image-661" src="http://palewar.com/wp-content/uploads/2011/09/Add-StoryBoard2.png" alt="Add StoryBoard" width="576" height="240" /></a></p>
<p>Now to animate the Ellipse, we will add keyframes. Keyframes are added on a particular time. Select the ellipse from the window and press the button &#8216;Keyframe&#8217; as labelled in the image below. This keyframe is added to record how ellipse will look at 0 second.</p>
<p>As shown in the image below, click on the &#8216;Render Transform&#8217; Tab in the transform b0x and set X and Y value to 1.</p>
<p style="text-align: center;"><a href="http://palewar.com/2011/09/simple-animation-using-ms-expression-blend/keyframe1/" rel="attachment wp-att-663"><img class="aligncenter size-full wp-image-663" src="http://palewar.com/wp-content/uploads/2011/09/Keyframe1.png" alt="Keyframe" width="774" height="323" /></a></p>
<p>Now click on 2 sec from timeline (Refer the arrow below).</p>
<p><a href="http://palewar.com/2011/09/simple-animation-using-ms-expression-blend/timeline2-sec/" rel="attachment wp-att-664"><img class="aligncenter size-full wp-image-664" src="http://palewar.com/wp-content/uploads/2011/09/Timeline2-Sec.png" alt="Timeline 2 Sec" width="295" height="291" /></a></p>
<p>After clicking on 2 from above click on &#8216;Keyframe&#8217; again, a new keyframe should be added for 2 second. Again change &#8216;RenderTransform&#8217; properties change X value to -1. As in the image below.</p>
<p><a href="http://palewar.com/2011/09/simple-animation-using-ms-expression-blend/render2sec-2/" rel="attachment wp-att-681"><img class="aligncenter size-full wp-image-681" src="http://palewar.com/wp-content/uploads/2011/09/Render2Sec1.png" alt="RenderTransform 2 interval" width="536" height="171" /></a></p>
<p>Now you should have two &#8216;keyframes&#8217; as in the image below. Click on &#8216;RotateEllipse&#8217; and from the properties of the Story board, select RepeatBehaviour to &#8216;Forever&#8217; (refer image below for steps). Now &#8216;Stop Recording&#8217; the Story board and build the project and run it.</p>
<p style="text-align: center;"><a href="http://palewar.com/2011/09/simple-animation-using-ms-expression-blend/final-step-2/" rel="attachment wp-att-669"><img class="aligncenter size-full wp-image-669" src="http://palewar.com/wp-content/uploads/2011/09/Final-Step1.png" alt="Final Step" width="758" height="349" /></a></p>
<p>You will get a Rotating Ellipse. I will get back to you soon with more simple animations. Till then Happy Coding <img src='http://palewar.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://palewar.com/2011/09/simple-animation-using-ms-expression-blend/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Subversion to Mercurial</title>
		<link>http://palewar.com/2011/08/subversion-to-mercurial/</link>
		<comments>http://palewar.com/2011/08/subversion-to-mercurial/#comments</comments>
		<pubDate>Wed, 17 Aug 2011 10:15:17 +0000</pubDate>
		<dc:creator>Anagha Deshpande</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Mercurial]]></category>
		<category><![CDATA[SCM]]></category>
		<category><![CDATA[SVN]]></category>

		<guid isPermaLink="false">http://palewar.com/?p=628</guid>
		<description><![CDATA[Source control is an important tool of the modern software development process. Developers use it to manage source code. When two or more developers are working on same project then these tools help in identifying the modifications made by team members and merge them properly. It keeps track of all prior versions of project files, [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><a href="http://palewar.com/2011/08/subversion-to-mercurial/hg/" rel="attachment wp-att-633" target="_blank"><img class="size-full wp-image-633 alignright" title="Hg Mercurial" src="http://palewar.com/wp-content/uploads/2011/09/hg.jpg" alt="" width="160" height="192" /></a><a href="http://en.wikipedia.org/wiki/Revision_control" target="_blank">Source control</a> is an important tool of the modern software development process. Developers use it to manage source code. When two or more developers are working on same project then these tools help in identifying the modifications made by team members and merge them properly. It keeps track of all prior versions of project files, allowing developers to move backward or forward in their code to determine when and where bugs were introduced.</p>
<p style="text-align: justify;">Initially, we were using Subversion with Tortoise SVN client for source control. Subversion works by maintaining a central repository, hosted on a server, which contains project files. The team members make local copies of that repository on their personal computers in a process called Checkout. Each person has full control over their local copy and makes changes and copy back to repository in a process called Commit. Other people can then see these changes when they update their local copy. But there were some complications while using Subversion. The merging and branching of code is painful. Sometime back we came to know about a source control tool called <a href="http://mercurial.selenic.com/" target="_blank">Mercurial</a> and we decided to give it a try. And mercurial proved to be much better than our earlier source control.</p>
<p style="text-align: justify;">In Mercurial, every developer has his own repository on his own computer. Thus, he can commit code on his private repository whenever he wants. When the developer feels the code is ready, he can push (save) it to the central repository (server). The other project team members can then pull (retrieve) the code from the repository.</p>
<p style="text-align: justify;">Subversion and Mercurial work differently. Mercurial is distributed whereas Subversion is centralized source control. Distributed source control helps to make branching easy. Thus, in Mercurial merging and branching the code is comparatively efficient. In terms of speed and repository size Mercurial is considered to be the best. It is fast with both additions and modifications, and keeps repository growth under control at the same time.</p>
<p style="text-align: justify;">We came across a great and very interesting tutorial of Mercurial at &#8211; <a href="http://hginit.com/" target="_blank">hginit.com</a>, its first chapter is targeted for existing Subversion users. There are many great hosting options available for Mercurial. <a href="http://www.fogcreek.com/kiln/" target="_blank">Kiln</a> is one such great service, <a href="https://bitbucket.org/" target="_blank">Bitbucket</a> is another great service, specially helpful if you have a small team or working on an open-source project as you can use their services for free in both the cases.</p>
<p style="text-align: justify;">Looking at the advantages we opted for Mercurial. Thus switching from our Subversion to Mercurial was tedious job. But when we realized the importance of Mercurial, we read the tutorial of it and made ourselves familiar with it. Our difficulties were resolved and we are now satisfied with our new source control Mercurial.</p>
<p style="text-align: justify;">I would like to know which Source-Control tool you use and why? Please leave your answers in comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://palewar.com/2011/08/subversion-to-mercurial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding a Title bar &amp; Close button (WPF Series Final)</title>
		<link>http://palewar.com/2011/06/adding-a-title-bar-close-button-wpf-series-final/</link>
		<comments>http://palewar.com/2011/06/adding-a-title-bar-close-button-wpf-series-final/#comments</comments>
		<pubDate>Wed, 29 Jun 2011 12:40:01 +0000</pubDate>
		<dc:creator>Aditi Paliwal</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[Blend]]></category>
		<category><![CDATA[UI]]></category>
		<category><![CDATA[wpf]]></category>
		<category><![CDATA[xaml]]></category>

		<guid isPermaLink="false">http://palewar.com/?p=505</guid>
		<description><![CDATA[In my previous blog we have learned &#8211; Creating a window and adding a gradient effect, But from the previous blog we don&#8217;t get a fully functional window. To make a functional window we need to add many features like: A Title Bar. A Close Button. Title Bar Dragging Enabled. We will proceed further with our first feature. [...]]]></description>
			<content:encoded><![CDATA[<p>In my previous blog we have learned &#8211; <a href="http://palewar.com/?p=105">Creating a window and adding a gradient effect</a>, But from the previous blog we don&#8217;t get a fully functional window.</p>
<p>To make a functional window we need to add many features like:</p>
<ol>
<li>A Title Bar.</li>
<li>A Close Button.</li>
<li>Title Bar Dragging Enabled.</li>
</ol>
<p>We will proceed further with our first feature.</p>
<ol>
<li>Adding a title bar.</li>
</ol>
<p>To add a title bar open the project that we have created from the <a href="http://palewar.com/?p=105">Creating a window and adding a gradient effect</a> blog. Add a rectangle from the tool box. Change the following properties <strong>Name</strong>=&#8221;RctTitle&#8221;,<strong> Fill</strong>=&#8221;White&#8221;, <strong>StrokeThickness</strong>=&#8221;2&#8243;, <strong>RadiusX</strong>=&#8221;20&#8243;, <strong>RadiusY</strong>=&#8221;20&#8243;,<strong> Stroke</strong>=&#8221;Black&#8221;, <strong>StrokeThickness</strong>=&#8221;2&#8243; and  <strong>VerticalAlignment</strong>=&#8221;Top&#8221;of the rectangle.</p>
<p>Code will be as below:</p>
<pre>&lt;Rectangle Height="42" Name="RctTitle" Stroke="Black" VerticalAlignment="Top" Fill="White" StrokeThickness="2" RadiusX="20" RadiusY="20" /&gt;</pre>
<p style="text-align: center"><a href="http://palewar.com/2011/06/adding-a-title-bar-close-button-wpf-series-final/withtitlebar/" rel="attachment wp-att-622"><img class="aligncenter size-full wp-image-622" src="http://palewar.com/wp-content/uploads/2011/06/withtitlebar.png" alt="Window With TitleBar" width="395" height="293" /></a></p>
<p>2. Adding the Close button.</p>
<p>It can be done in many ways but for a rounded close button we will follow three simple steps:</p>
<ol>
<li>Select a Border and a Label control from the toolbox.</li>
<li>Place the Label control inside the Border control. To do this just drag the label onto the border control.</li>
<li>Now change the properties of the both controls.</li>
</ol>
<p>Border Properties:</p>
<p><strong>Height</strong>=&#8221;49&#8243;,<strong>Width</strong>=&#8221;49&#8243;,<strong> Name</strong>=&#8221;BrdCloseButton&#8221;,<strong> VerticalAlignment</strong>=&#8221;Top&#8221;,<strong> CornerRadius</strong>=&#8221;20,20,20,20&#8243;, <strong>HorizontalAlignment</strong>=&#8221;Right&#8221;,  <strong>BorderThickness</strong>=&#8221;2&#8243; and <strong>BorderBrush</strong>=&#8221;Black&#8221;.</p>
<p>And also add the gradient effect to the border.</p>
<p>Label Properties:</p>
<p><strong>Name</strong>=&#8221;LblClosebutton&#8221;,  <strong>HorizontalAlignment</strong>=&#8221;Stretch&#8221;, <strong>VerticalAlignment</strong>=&#8221;Stretch&#8221;, <strong>HorizontalContentAlignment</strong>=&#8221;Center&#8221;, <strong>VerticalContentAlignment</strong>=&#8221;Center&#8221;, <strong>FontSize</strong>=&#8221;20&#8243;, <strong>Foreground</strong>=&#8221;White&#8221;, <strong>Height</strong>=&#8221;34&#8243; and <strong>Content</strong>=&#8221;X&#8221;</p>
<p>The code will be:</p>
<pre>&lt;Border Height="43" Name="BrdCloseButton" VerticalAlignment="Top" CornerRadius="20,20,20,20" HorizontalAlignment="Right" Width="49" BorderThickness="2" BorderBrush="Black" Margin="0,-1,0,0"&gt;
&lt;Border.Background&gt;
&lt;LinearGradientBrush EndPoint="0.982,0.978" MappingMode="RelativeToBoundingBox" StartPoint="0.003,0.015"&gt;
&lt;GradientStop Color="#FFB69383" Offset="0.112"/&gt;
&lt;GradientStop Color="#FFBA9087" Offset="0.378"/&gt;
&lt;GradientStop Color="#FFB69383" Offset="0.89"/&gt;
&lt;GradientStop Color="#FFF5F2EB" Offset="0.754"/&gt;
&lt;GradientStop Color="#FFBA9087" Offset="0.647"/&gt;
&lt;GradientStop Color="#FFF5F2EB" Offset="0.258"/&gt;
&lt;/LinearGradientBrush&gt;
&lt;/Border.Background&gt;
&lt;Label  Name="LblClosebutton"  HorizontalAlignment="Stretch" VerticalAlignment="Stretch" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="24" Foreground="White" Margin="0" Height="39"&gt;X&lt;/Label&gt;
&lt;/Border&gt;</pre>
<p>&nbsp;</p>
<p>Similarly to follow the third step to create a  draggable window of the RctTitle. Code on the Left mouse button down event of the RctTitle :</p>
<pre>private void RctTitle_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
this.DragMove();
}</pre>
<p>Add the following code on the event Left mousebutton down of the BrdCloseButton:</p>
<pre>private void LblClosebutton_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
this.Close();
}</pre>
<p>Adjust the Rectangle(the titlebar) on the top of the window and the close button on it, so that both matches the image below.</p>
<p style="text-align: center"><img class="aligncenter" src="/wp-content/uploads/2011/07/completewindow.png" alt="Complete Window" width="403" height="286" /></p>
<p>Happy Coding. <img src='http://palewar.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://palewar.com/2011/06/adding-a-title-bar-close-button-wpf-series-final/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gradient Background (WPF Series Part 2)</title>
		<link>http://palewar.com/2011/04/gradient-background-wpf-series-part-2/</link>
		<comments>http://palewar.com/2011/04/gradient-background-wpf-series-part-2/#comments</comments>
		<pubDate>Wed, 20 Apr 2011 07:59:13 +0000</pubDate>
		<dc:creator>Aditi Paliwal</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[Blend]]></category>
		<category><![CDATA[UI]]></category>
		<category><![CDATA[wpf]]></category>
		<category><![CDATA[xaml]]></category>

		<guid isPermaLink="false">http://palewar.com/?p=105</guid>
		<description><![CDATA[In this blog I will let you know how to add gradient background to the window that we have created in my pervious blog named Rounded Corner window. I normally use Microsoft Expression Blend to design user interfaces rather than VS itself as  Blend has widened  WPF functionality with a lot of innovations in the [...]]]></description>
			<content:encoded><![CDATA[<p>In this blog I will let you know how to add gradient background to the window that we have created in my pervious blog named <a title="Rounded Corner Window" href="../?p=73" target="_blank">Rounded Corner window</a>.</p>
<p>I normally use <a title="MS Expression Blend" href="http://www.microsoft.com/expression/products/blend_overview.aspx" target="_blank">Microsoft Expression Blend</a> to design user interfaces rather than VS itself as  Blend has widened  WPF functionality with a lot of innovations in the form design, 3-D animations( only with .Net Framework 4 ) and replaced many hard to code lines with only few clicks such as creating  a storyboard, adding a trigger, giving style to a listbox etc.</p>
<p>After I finish designing I use the XAML generated by Blend in VS for my further coding.</p>
<p>To add a gradient background follow these steps:</p>
<ol>
<li>Create a new WPF Application in Microsft Expression Blend.</li>
<li> Add a rectangle control in the window.</li>
<li>In Properties window of a rectangle select <strong>Fill</strong> and set its<strong> Brush</strong> to <strong>Gradient Brush (</strong>refer to the image below):<br />
<img class="aligncenter size-large wp-image-138" src="http://palewar.com/wp-content/uploads/2011/04/Blend1-300x217.png" alt="Expression Blend" width="300" height="217" /></li>
<li>Now ,we click on the gradient stop that appears on the left and change its <strong>color code</strong> to <strong>#FFB69383</strong>. To add a next gradient stop click on bar shown in the image as &#8220;<strong>Click on this to add gradient stops</strong>&#8220;. After that set its <strong>color code</strong> to<strong> #FFBA9087 </strong>and so on (add as many stops as you want).  I added 6 gradient stops. After adding stops we see a gradient effect in the rectangle but it appears horizontally.</li>
<li>To make the gradient diagonal select the Gradient tool from tools and rotate it as you want.</li>
</ol>
<p>The XAML in the Blend will look like below:</p>
<pre lang="C#">&lt;Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="WpfApplication1.MainWindow" x:Name="Window" Title="MainWindow" Width="640" Height="480"&gt;
&lt;Grid x:Name="LayoutRoot"&gt;
&lt;Rectangle HorizontalAlignment="Left" Margin="136,126,0,216" Stroke="Black" Width="100"&gt;
&lt;Rectangle.Fill&gt;
&lt;LinearGradientBrush EndPoint="0.982,0.978" MappingMode="RelativeToBoundingBox" StartPoint="0.003,0.015"&gt;
&lt;GradientStop Color="#FFB69383" Offset="0.112"/&gt;
&lt;GradientStop Color="#FFBA9087" Offset="0.378"/&gt;
&lt;GradientStop Color="#FFB69383" Offset="0.89"/&gt;
&lt;GradientStop Color="#FFF5F2EB" Offset="0.754"/&gt;
&lt;GradientStop Color="#FFBA9087" Offset="0.647"/&gt;
&lt;GradientStop Color="#FFF5F2EB" Offset="0.258"/&gt;
&lt;/LinearGradientBrush&gt;
&lt;/Rectangle.Fill&gt;
&lt;/Rectangle&gt;
&lt;/Grid&gt;
&lt;/Window&gt;</pre>
<p>Now open the project that was made in the previous blog. Remove Fill=&#8221;Blury Wood&#8221;, remove the closing tag of the rectangle, copy the code for Rectangle.Fill from code generated from Expression Blend and also close the Rectangle tag so that your final XAML looks like this:</p>
<pre lang="C#">&lt;Window x:Class="WpfWindowSidesCurved.Window1"   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="WindowCircular" Height="468" Width="650" WindowStartupLocation="CenterScreen" WindowStyle="None" AllowsTransparency="True" Background="Transparent"&gt;
&lt;Grid&gt;
&lt;Rectangle Stroke="Black" RadiusX="30" RadiusY ="30" Name="RectangleSidesCurved" &gt;
&lt;Rectangle.Fill&gt;
&lt;LinearGradientBrush EndPoint="0.982,0.978" MappingMode="RelativeToBoundingBox" StartPoint="0.003,0.015"&gt;
&lt;GradientStop Color="#FFB69383" Offset="0.112"/&gt;
&lt;GradientStop Color="#FFBA9087" Offset="0.378"/&gt;
&lt;GradientStop Color="#FFB69383" Offset="0.89"/&gt;
&lt;GradientStop Color="#FFF5F2EB" Offset="0.754"/&gt;
&lt;GradientStop Color="#FFBA9087" Offset="0.647"/&gt;
&lt;GradientStop Color="#FFF5F2EB" Offset="0.258"/&gt;
&lt;/LinearGradientBrush&gt;
&lt;/Rectangle.Fill&gt;
&lt;/Rectangle&gt;
&lt;/Grid&gt;
&lt;/Window&gt;</pre>
<p>The window should look like the image below:</p>
<p><a rel="attachment wp-att-134" href="http://palewar.com/?attachment_id=134"><img class="aligncenter size-medium wp-image-134" src="http://palewar.com/wp-content/uploads/2011/04/SidesCurved-300x215.png" alt="Gradient Background" width="300" height="215" /></a></p>
<p>In my next blog we will learn how to add Title Bar, Close Button and Drag Drop to this window.</p>
<p>Happy Coding. <img src='http://palewar.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://palewar.com/2011/04/gradient-background-wpf-series-part-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Rounded Corner Window (WPF Series Part 1)</title>
		<link>http://palewar.com/2011/04/rounded-corner-window-wpf-series-part-1/</link>
		<comments>http://palewar.com/2011/04/rounded-corner-window-wpf-series-part-1/#comments</comments>
		<pubDate>Sat, 16 Apr 2011 14:12:45 +0000</pubDate>
		<dc:creator>Aditi Paliwal</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[UI]]></category>
		<category><![CDATA[wpf]]></category>
		<category><![CDATA[xaml]]></category>

		<guid isPermaLink="false">http://palewar.com/?p=73</guid>
		<description><![CDATA[I hope all of you .net coders out there are using WPF (Windows Presentation Foundation) for your desktop development and not the good old windows form. WPF makes it really easy to come up with great looking user interfaces. We believe Microsoft may eventually phase out windows forms in future releases of VS.NET. We have [...]]]></description>
			<content:encoded><![CDATA[<p>I hope all of you .net coders out there are using <a title="Windows Presentation Foundation" href="http://windowsclient.net/wpf/default.aspx" target="_blank">WPF (Windows Presentation Foundation) </a>for your desktop development and not the good old windows form. WPF makes it really easy to come up with great looking user interfaces. We believe Microsoft may eventually phase out windows forms in future releases of VS.NET. We have completely switched to WPF for desktop development in our company.</p>
<p>My journey with WPF started when I joined &#8216;PALEWAR TECHNO SOLUTIONS&#8217;.  The first task that I got was rounding the corners of  the window. Exploring how to make a curved window was very interesting and its just few lines of <a title="XAML" href="http://en.wikipedia.org/wiki/Extensible_Application_Markup_Language" target="_blank">XAML</a>(Extensible Application Markup Language). A Window can be shaped in any way you can imagine using WPF.</p>
<p>In this post lets see how we can create a window with rounded corners.</p>
<p>We start a WPF Application project in Visual Studio (I am using VS 2008). We get a window and a grid control already setup for us and our XAML will look something like this:</p>
<pre lang="C#">&lt;Window x:Class="WpfWindowSidesCurved.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="300" Width="300"&gt;
&lt;Grid&gt;
&lt;/Grid&gt;
&lt;/Window&gt;</pre>
<p>Grid is our container for all the controls but since we can not make its corners rounded we add a Rectangle control and place all the controls on top of it. Now we just go to Properties window for the Rectangle and change 2 properties.  We set <strong>RadiusX = 30</strong> and <strong>RadiousY=30 </strong>to get rounded corners for our rectangle. We also need to give a color to our Rectangle, so we also set<strong> Fill=BurlyWood</strong>. You can select any color your like for your rectangle.</p>
<p>Now we have our Rectangle with rounded corners but our window is visible behind it so it does not look like we want. So we just need to make our window transparent and our rectangle will start looking like a window to the user. To achieve this we change a few properties for our window control.  We set <strong>WindowStyle=None</strong>, <strong>AllowsTransparency=True</strong> and <strong>Background=Transparent</strong> and we are done. Whatever we do in design gets reflected in our XAML, we can directly change XAML as well to change our design.</p>
<p>Our final XAML for our window will look like this:</p>
<pre lang="C#">&lt;Window x:Class="WpfWindowSidesCurved.Window1"   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="468" Width="650" WindowStartupLocation="CenterScreen" WindowStyle="None" AllowsTransparency="True" Background="Transparent"&gt;
&lt;Grid&gt;
&lt;Rectangle Stroke="Black" RadiusX="30" RadiusY ="30" Name="RectangleSidesCurved" Fill="BurlyWood"/&gt;
&lt;/Grid&gt;
&lt;/Window&gt;</pre>
<p>And the output window will look like this image below:</p>
<p><a rel="attachment wp-att-125" href="http://palewar.com/?attachment_id=125"><img class="aligncenter size-medium wp-image-125" src="http://palewar.com/wp-content/uploads/2011/04/RoundedCorner-300x215.png" alt="Rounded Corner Window" width="300" height="215" /></a></p>
<p>Watch out for my next post where we will talk about using a gradient background instead of a plain color like above.</p>
<p>Happy Coding.</p>
]]></content:encoded>
			<wfw:commentRss>http://palewar.com/2011/04/rounded-corner-window-wpf-series-part-1/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Developing for MeeGo on MeeGo</title>
		<link>http://palewar.com/2011/04/developing-for-meego-on-meego/</link>
		<comments>http://palewar.com/2011/04/developing-for-meego-on-meego/#comments</comments>
		<pubDate>Sun, 10 Apr 2011 12:53:04 +0000</pubDate>
		<dc:creator>Neha Purohit</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[appup]]></category>
		<category><![CDATA[intel]]></category>
		<category><![CDATA[meego]]></category>
		<category><![CDATA[Qt]]></category>

		<guid isPermaLink="false">http://palewar.com/?p=137</guid>
		<description><![CDATA[When we got to know about the Intel AppUp contest to develop apps for MeeGo OS, we were keen to participate. I first downloaded and installed Meego SDK for Windows on my laptop. QT Creator is the IDE to code for Meego.We have 2 options to run Meego Code: Emulator (QEMU) Run on a connected [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://palewar.com/wp-content/uploads/2011/04/meego-netbook-myzone-oob.png"><img class="alignleft size-medium wp-image-142" src="http://palewar.com/wp-content/uploads/2011/04/meego-netbook-myzone-oob-300x225.png" alt="" width="300" height="225" /></a>When we got to know about the <a href="http://appdeveloper.intel.com/en-us/contest/developerchallenge" target="_blank">Intel AppUp contest</a> to develop apps for MeeGo OS, we were keen to participate. I first downloaded and installed <a href="http://appdeveloper.intel.com/en-us/article/building-meego-application-appup-using-windows-development-environment" target="_blank">Meego SDK for Windows</a> on my laptop.</p>
<p>QT Creator is the IDE to code for Meego.We have 2 options to run Meego Code:</p>
<ol>
<li>Emulator (QEMU)</li>
<li>Run on a connected Meego Device</li>
</ol>
<p>Unfortunately, the Emulator ‘Qemu’ was very very slow on my machine, so I shifted to second approach and started executing on Meego device. We have a netbook with Meego OS and we could run code on it via LAN.We found this approach to work better for us.</p>
<p>But soon we faced another problem as more developers were assigned to Meego development. Multiple developers trying to run code on same Meego netbook was not practical. We decided to dual-boot our machines with Meego beside existing Windows OS. <a href="http://appdeveloper.intel.com/en-us/blog/2010/11/02/setting-dual-boot-netbook-win-7-meego" target="_blank">Bob Duffy&#8217;s blog post</a> helped us in installing Meego on our machines. Meego installation was easy and quick and I was able to boot into Meego in under 20 mins. I really like Meego on my laptop, it boots and shuts down very fast and performs very well when compared to Windows.</p>
<p>Its always a good idea to use and get familiar with a platform before developing for it so using Meego as my primary OS was really helpful. I got a real feel for the OS and its various features.</p>
<p>Now we wanted to install Meego SDK on Meego and we followed instructions from <a href="http://wiki.meego.com/SDK/Docs/1.1/Getting_started_with_the_MeeGo_SDK_for_Linux#On_MeeGo" target="_blank">Meego&#8217;s official website</a>. We managed to install but somehow QT won&#8217;t compile our code. We struggled for days then found this <a href="http://appdeveloper.intel.com/en-us/node/2493" target="_blank">Intel forum discussion</a> which mentioned a few alternate approaches. However those didn&#8217;t work for us either. Looks like Meego toolchain keeps changing as its still under development and sometime it breaks a few things.</p>
<p>After trying for a few more days we finally managed to compile on Meego. This approach has a major advantage that <strong>you don&#8217;t need to use any emulator or a separate Meego device</strong> as you can compile and run on the same machine. Here I am including steps to install Meego SDK with QT Creator on Meego Netbook OS incase somebody else is looking to develop for Meego using Meego itself.</p>
<p>You need to first open Terminal application and then run following commands in given sequence. These commands will be downloading and installing various files and tools on your machine so be patient as some commands will take a while to finish.</p>
<ol>
<li>sudo zypper refresh</li>
<li>sudo zypper install yum</li>
<li>sudo zypper install pattern:development-tools</li>
<li>sudo zypper install pattern:x-software-development</li>
<li>sudo zypper install qt-creator</li>
<li>sudo zypper install qt-devel</li>
</ol>
<p>After this you should be able to code meego apps in QT creator. As of now AppUp SDk is only available for windows so once we finish coding our Meego Apps we open our same code in Windows QT creator to integrate with AppUp SDK, which is necessary if you want to make your apps available on soon to be launched AppUp for Meego.</p>
<p>We have developed 11 apps for Meego so far. As a trainee, I got an opportunity to develop for Meego. I am really thankful to <a href="http://palewar.com/blog/sachin/posts/blog/" target="_blank">Sachin Sir</a> for having complete faith in me and for giving me this opportunity.</p>
]]></content:encoded>
			<wfw:commentRss>http://palewar.com/2011/04/developing-for-meego-on-meego/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Exciting journey with MeeGo</title>
		<link>http://palewar.com/2011/04/exciting-journey-with-meego/</link>
		<comments>http://palewar.com/2011/04/exciting-journey-with-meego/#comments</comments>
		<pubDate>Mon, 04 Apr 2011 13:00:06 +0000</pubDate>
		<dc:creator>Anagha Deshpande</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[appup]]></category>
		<category><![CDATA[intel]]></category>
		<category><![CDATA[meego]]></category>
		<category><![CDATA[Qt]]></category>

		<guid isPermaLink="false">http://palewar.com/?p=21</guid>
		<description><![CDATA[I was very excited when I first heard about MeeGo. There are MeeGo devices being commercially distributed and we undertook the development of some really interesting apps. Also, Intel organized contest for rewarding first hundred MeeGo apps and thus came the deadline 1 month 10 apps. Quickly, we took job of installing Qt Creator on [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">I w<img class="size-full wp-image-27 alignright" style="border: 1px solid black;" src="http://palewar.com/wp-content/uploads/2011/04/meego.jpg" alt="" width="183" height="183" />as very excited when I first heard about <a href="http://meego.com/">MeeGo</a>. There are MeeGo devices being commercially distributed and we undertook the development of some really interesting apps. Also, Intel organized contest for rewarding first hundred MeeGo apps and thus came the deadline 1 month 10 apps. Quickly, we took job of installing<a href="http://qt.nokia.com/"> Qt </a>Creator on our machines. We also dual booted our machines with MeeGo as our default OS and other as Windows.</p>
<p style="text-align: justify;">Installing Qt was comparatively tedious job (may be we were new to this platform). We tried several ways but no luck. Even we called Intel person and asked him for help. After slogging on it, we found solution. We spend couple of days knowing the syntax and UI of Qt. As a team we distributed the work and started working on code.</p>
<p style="text-align: justify;">As the work was progressing, we were enjoying working on MeeGo. We got to know many new concepts. All efforts helped in understanding different aspects of this platform and lot of new ideas came and we implemented. When the apps were near to completion, we used to test it on our new Netbook gifted to our company by Intel.</p>
<p style="text-align: justify;">We worked hard to make sure the apps run best and are liked by the people. <a href="http://palewar.com/?author=3">Kavita</a>, <a href="http://palewar.com/?author=6">Aditi</a> and <a href="http://palewar.com/?author=4">Neha</a> were great help to me. As a trainee, I got an opportunity to know about new technology, MeeGo. Till date, we have developed 9 apps and are planning for more.</p>
<p style="text-align: justify;">PS: Meego is an OS by Intel and our apps will be available for Meego Netbooks via <a title="AppUp" href="http://www.appup.com" target="_blank">AppUp</a> &#8211; the app-store for netbooks and desktops.</p>
]]></content:encoded>
			<wfw:commentRss>http://palewar.com/2011/04/exciting-journey-with-meego/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

