<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>itaysagui</title>
	
	<link>http://itaysagui.wordpress.com</link>
	<description />
	<lastBuildDate>Tue, 17 Jan 2012 13:35:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain="itaysagui.wordpress.com" port="80" path="/?rsscloud=notify" registerProcedure="" protocol="http-post" />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>itaysagui</title>
		<link>http://itaysagui.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://itaysagui.wordpress.com/osd.xml" title="itaysagui" />
	
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Saguiitay" /><feedburner:info uri="saguiitay" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://itaysagui.wordpress.com/?pushpress=hub" /><item>
		<title>WP7 simple ProgressBar – using an IValueConverter and a simple Grid</title>
		<link>http://feedproxy.google.com/~r/Saguiitay/~3/-0ffb44OLc4/</link>
		<comments>http://itaysagui.wordpress.com/2012/01/17/wp7-simple-progressbar-using-an-ivalueconverter-and-a-simple-grid/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 12:07:12 +0000</pubDate>
		<dc:creator>Sagui Itay</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Windows Phone 7]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[WP7]]></category>
		<category><![CDATA[XAML]]></category>

		<guid isPermaLink="false">http://itaysagui.wordpress.com/?p=288</guid>
		<description><![CDATA[Creating a custom ProgressBar, using a Grid and an IValueConverter, is extremely easy, and leaves you with a bit more control than the built-in ProgressBar. Let&#8217;s start by writing the grid&#8217;s XAML: The code above creates a Grid (with a border), and adds 2 columns to the grid. The colomns&#8217; width is bound to the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itaysagui.wordpress.com&amp;blog=30958414&amp;post=288&amp;subd=itaysagui&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Creating a custom ProgressBar, using a Grid and an IValueConverter, is extremely easy, and leaves you with a bit more control than the built-in ProgressBar.</p>
<p>Let&#8217;s start by writing the grid&#8217;s <a class="zem_slink" title="Extensible Application Markup Language" href="http://en.wikipedia.org/wiki/Extensible_Application_Markup_Language" rel="wikipedia">XAML</a>:</p>
<p><pre class="brush: xml;">

&lt;Border BorderBrush=&quot;Silver&quot;
        BorderThickness=&quot;1&quot;
        HorizontalAlignment=&quot;Stretch&quot;
        Margin=&quot;0&quot;
        Name=&quot;border1&quot;
        VerticalAlignment=&quot;Top&quot;
        Height=&quot;25&quot;&gt;
    &lt;Grid&gt;
        &lt;Grid.ColumnDefinitions&gt;
            &lt;ColumnDefinition Width=&quot;{Binding Percentage, Converter={StaticResource DoubleToGridLengthStarConverter}}&quot;/&gt;
            &lt;ColumnDefinition Width=&quot;{Binding Percentage, Converter={StaticResource DoubleToInvertedGridLengthStarConverter}}&quot;/&gt;
        &lt;/Grid.ColumnDefinitions&gt;

        &lt;Rectangle HorizontalAlignment=&quot;Stretch&quot;
                   Grid.Column=&quot;0&quot;
                   Margin=&quot;0&quot;
                   Fill=&quot;{StaticResource PhoneAccentBrush}&quot;
                   StrokeThickness=&quot;1&quot;
                   VerticalAlignment=&quot;Stretch&quot;/&gt;
    &lt;/Grid&gt;
&lt;/Border&gt;

</pre></p>
<p>The code above creates a Grid (with a border), and adds 2 columns to the grid. The colomns&#8217; width is bound to the DataContext&#8217;s Percentage property, and converted using the value-converters we&#8217;ll create shorty. We then add a rectangle shape (which will be placed in the first column)</p>
<p>Now, on to the value-converters. For simplicity, and since it might be useful later on, I&#8217;ve created 2 converters &#8211; the first will handle the widths of the &#8220;filled&#8221; part of the ProgressBar. The second is used for the remaining &#8220;empty&#8221; area. The converters are simple &#8211; they take a percentage value (in the 0.0 &#8211; 1.0 range), and convert them to a GridLength, which will control the width of our columns:</p>
<p><pre class="brush: csharp;">
public class DoubleToGridLengthStarConverter : IValueConverter
{
    public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
    {
        if (value == null)
            return null;
        var doubleValue = (double) value;
        return new GridLength(doubleValue, GridUnitType.Star);
    }

    public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
    {
        throw new NotImplementedException();
    }
}

public class DoubleToInvertedGridLengthStarConverter : IValueConverter
{
    public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
    {
        if (value == null)
            return null;
        var doubleValue = (double)value;
        return new GridLength(1 - doubleValue, GridUnitType.Star);
    }

    public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
    {
        throw new NotImplementedException();
    }
}
</pre></p>
<p>We can then add the 2 converters to our resources:</p>
<p><pre class="brush: xml;">
&lt;Converters:DoubleToGridLengthStarConverter x:Key=&quot;DoubleToGridLengthStarConverter&quot; /&gt;
&lt;Converters:DoubleToInvertedGridLengthStarConverter x:Key=&quot;DoubleToInvertedGridLengthStarConverter&quot; /&gt;
</pre></p>
<p>Here&#8217;s a sample usage, from my upcoming application:</p>
<p><a href="http://itaysagui.files.wordpress.com/2012/01/custom-progressbar.png"><img class="aligncenter size-full wp-image-289" title="Custom ProgressBar" src="http://itaysagui.files.wordpress.com/2012/01/custom-progressbar.png?w=630" alt="Custom ProgressBar"   /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/itaysagui.wordpress.com/288/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/itaysagui.wordpress.com/288/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/itaysagui.wordpress.com/288/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/itaysagui.wordpress.com/288/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/itaysagui.wordpress.com/288/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/itaysagui.wordpress.com/288/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/itaysagui.wordpress.com/288/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/itaysagui.wordpress.com/288/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/itaysagui.wordpress.com/288/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/itaysagui.wordpress.com/288/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/itaysagui.wordpress.com/288/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/itaysagui.wordpress.com/288/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/itaysagui.wordpress.com/288/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/itaysagui.wordpress.com/288/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itaysagui.wordpress.com&amp;blog=30958414&amp;post=288&amp;subd=itaysagui&amp;ref=&amp;feed=1" width="1" height="1" />
<p><a href="http://feedads.g.doubleclick.net/~a/iySQtI121EqyVp5Z2cc2UtEymGk/0/da"><img src="http://feedads.g.doubleclick.net/~a/iySQtI121EqyVp5Z2cc2UtEymGk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/iySQtI121EqyVp5Z2cc2UtEymGk/1/da"><img src="http://feedads.g.doubleclick.net/~a/iySQtI121EqyVp5Z2cc2UtEymGk/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Saguiitay/~4/-0ffb44OLc4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://itaysagui.wordpress.com/2012/01/17/wp7-simple-progressbar-using-an-ivalueconverter-and-a-simple-grid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b6e4d9eea69a9c88097f9f53cdc61568?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">saguiitay</media:title>
		</media:content>

		<media:content url="http://itaysagui.files.wordpress.com/2012/01/custom-progressbar.png" medium="image">
			<media:title type="html">Custom ProgressBar</media:title>
		</media:content>
	<feedburner:origLink>http://itaysagui.wordpress.com/2012/01/17/wp7-simple-progressbar-using-an-ivalueconverter-and-a-simple-grid/</feedburner:origLink></item>
		<item>
		<title>MVC DateTime editor</title>
		<link>http://feedproxy.google.com/~r/Saguiitay/~3/WSnnvkqLyWk/</link>
		<comments>http://itaysagui.wordpress.com/2012/01/16/mvc-datetime-editor/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 12:31:04 +0000</pubDate>
		<dc:creator>Sagui Itay</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[ASP.NET MVC Framework]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://itaysagui.wordpress.com/?p=285</guid>
		<description><![CDATA[Stuart Leek has an amazingly detailed post - ASP.NET MVC 3: Integrating with the jQuery UI date picker and adding a jQuery validate date range validator -  about how to add support for a DateTime editor in MVC, including server/client validation and range validation. This post is a great read, and I can easily see myself [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itaysagui.wordpress.com&amp;blog=30958414&amp;post=285&amp;subd=itaysagui&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Stuart Leek has an amazingly detailed post - <a href="http://blogs.msdn.com/b/stuartleeks/archive/2011/01/25/asp-net-mvc-3-integrating-with-the-jquery-ui-date-picker-and-adding-a-jquery-validate-date-range-validator.aspx" target="_blank">ASP.NET MVC 3: Integrating with the jQuery UI date picker and adding a jQuery validate date range validator</a> -  about how to add support for a DateTime editor in MVC, including server/client validation and range validation. This post is a great read, and I can easily see myself using his usage of IMetadataAware to implement many more functionalities, such as value format.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/itaysagui.wordpress.com/285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/itaysagui.wordpress.com/285/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/itaysagui.wordpress.com/285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/itaysagui.wordpress.com/285/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/itaysagui.wordpress.com/285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/itaysagui.wordpress.com/285/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/itaysagui.wordpress.com/285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/itaysagui.wordpress.com/285/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/itaysagui.wordpress.com/285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/itaysagui.wordpress.com/285/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/itaysagui.wordpress.com/285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/itaysagui.wordpress.com/285/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/itaysagui.wordpress.com/285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/itaysagui.wordpress.com/285/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itaysagui.wordpress.com&amp;blog=30958414&amp;post=285&amp;subd=itaysagui&amp;ref=&amp;feed=1" width="1" height="1" />
<p><a href="http://feedads.g.doubleclick.net/~a/zBe-q13SHPqHzdEIKxXevdYV9JM/0/da"><img src="http://feedads.g.doubleclick.net/~a/zBe-q13SHPqHzdEIKxXevdYV9JM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/zBe-q13SHPqHzdEIKxXevdYV9JM/1/da"><img src="http://feedads.g.doubleclick.net/~a/zBe-q13SHPqHzdEIKxXevdYV9JM/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Saguiitay/~4/WSnnvkqLyWk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://itaysagui.wordpress.com/2012/01/16/mvc-datetime-editor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b6e4d9eea69a9c88097f9f53cdc61568?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">saguiitay</media:title>
		</media:content>
	<feedburner:origLink>http://itaysagui.wordpress.com/2012/01/16/mvc-datetime-editor/</feedburner:origLink></item>
		<item>
		<title>INotifyPropertyChanged, the Anders Hejlsberg Way | Dan Rigby</title>
		<link>http://feedproxy.google.com/~r/Saguiitay/~3/-m58Ya4z2xc/</link>
		<comments>http://itaysagui.wordpress.com/2012/01/15/inotifypropertychanged-the-anders-hejlsberg-way-dan-rigby/#comments</comments>
		<pubDate>Sun, 15 Jan 2012 13:00:10 +0000</pubDate>
		<dc:creator>Sagui Itay</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[development]]></category>

		<guid isPermaLink="false">http://itaysagui.wordpress.com/?p=281</guid>
		<description><![CDATA[Dan Rigby brings in his blog a nice implementation of INotifyPropertyChanged - taken from Andres Hejlsberg: INotifyPropertyChanged, the Anders Hejlsberg Way Add this to Andreas Kahler&#8217;s solution of using an Expression&#60;Func&#60;T&#62;&#62; parameter to avoid &#8220;magic strings&#8221; that can be found here: Implementing INotifyPropertyChanged without hard-coded strings Together, these two solutions result in an easy to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itaysagui.wordpress.com&amp;blog=30958414&amp;post=281&amp;subd=itaysagui&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Dan Rigby brings in his blog a nice implementation of <a href="http://msdn.microsoft.com/en-us/library/system.componentmodel.inotifypropertychanged.aspx" target="_blank">INotifyPropertyChanged </a>- taken from Andres Hejlsberg: <a href="http://danrigby.com/2012/01/08/inotifypropertychanged-the-anders-hejlsberg-way/">INotifyPropertyChanged, the Anders Hejlsberg Way</a></p>
<p>Add this to Andreas Kahler&#8217;s solution of using an Expression&lt;Func&lt;T&gt;&gt; parameter to avoid &#8220;magic strings&#8221; that can be found here: <a title="Implementing INotifyPropertyChanged without hard-coded strings" href="http://blog.andreaskahler.com/2009/03/implementing-inotifypropertychanged.html" target="_blank">Implementing INotifyPropertyChanged without hard-coded strings</a></p>
<p>Together, these two solutions result in an easy to use, simple to understand, and change-safe implementation of INotifyPropertyChanged.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/itaysagui.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/itaysagui.wordpress.com/281/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/itaysagui.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/itaysagui.wordpress.com/281/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/itaysagui.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/itaysagui.wordpress.com/281/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/itaysagui.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/itaysagui.wordpress.com/281/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/itaysagui.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/itaysagui.wordpress.com/281/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/itaysagui.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/itaysagui.wordpress.com/281/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/itaysagui.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/itaysagui.wordpress.com/281/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itaysagui.wordpress.com&amp;blog=30958414&amp;post=281&amp;subd=itaysagui&amp;ref=&amp;feed=1" width="1" height="1" />
<p><a href="http://feedads.g.doubleclick.net/~a/zL9IlWulFzRpRc2acfr4Gg4Nm0o/0/da"><img src="http://feedads.g.doubleclick.net/~a/zL9IlWulFzRpRc2acfr4Gg4Nm0o/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/zL9IlWulFzRpRc2acfr4Gg4Nm0o/1/da"><img src="http://feedads.g.doubleclick.net/~a/zL9IlWulFzRpRc2acfr4Gg4Nm0o/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Saguiitay/~4/-m58Ya4z2xc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://itaysagui.wordpress.com/2012/01/15/inotifypropertychanged-the-anders-hejlsberg-way-dan-rigby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b6e4d9eea69a9c88097f9f53cdc61568?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">saguiitay</media:title>
		</media:content>
	<feedburner:origLink>http://itaysagui.wordpress.com/2012/01/15/inotifypropertychanged-the-anders-hejlsberg-way-dan-rigby/</feedburner:origLink></item>
		<item>
		<title>LongPath and UNC paths</title>
		<link>http://feedproxy.google.com/~r/Saguiitay/~3/e_dxVR-0c_I/</link>
		<comments>http://itaysagui.wordpress.com/2012/01/13/longpath-and-unc-paths/#comments</comments>
		<pubDate>Fri, 13 Jan 2012 18:00:40 +0000</pubDate>
		<dc:creator>Sagui Itay</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[path]]></category>
		<category><![CDATA[UNC]]></category>

		<guid isPermaLink="false">http://itaysagui.wordpress.com/?p=278</guid>
		<description><![CDATA[A colleague of mine started using the LongPath package provided as part of the Base Class Libraries project in CodePlex. This package seemed to be working just fine when trying to access local folders, both long and short. However, the provided code does not work with UNC paths &#8211; paths that are in the format [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itaysagui.wordpress.com&amp;blog=30958414&amp;post=278&amp;subd=itaysagui&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A colleague of mine started using the LongPath package provided as part of the <a href="http://bcl.codeplex.com/" target="_blank">Base Class Libraries project in CodePlex</a>. This package seemed to be working just fine when trying to access local folders, both long and short. However, the provided code does not work with UNC paths &#8211; paths that are in the format of \\server\share\</p>
<p>A quick bing search brought me to the MSDN page named <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx" target="_blank">Naming Files, Paths, and Namespaces</a> that gives a lot of background on filenames, paths, and limitations, which includes the following section:</p>
<blockquote><p>The &#8220;\\?\&#8221; prefix can also be used with paths constructed according to the <a class="zem_slink" title="Path (computing)" href="http://en.wikipedia.org/wiki/Path_%28computing%29" rel="wikipedia">universal naming convention</a> (UNC). To specify such a path using UNC, use the &#8220;\\?\UNC\&#8221; prefix. For example, &#8220;\\?\UNC\server\share&#8221;, where &#8220;server&#8221; is the name of the computer and &#8220;share&#8221; is the name of the shared folder. These prefixes are not used as part of the path itself. They indicate that the path should be passed to the system with minimal modification, which means that you cannot use forward slashes to represent path separators, or a period to represent the current directory, or double dots to represent the parent directory. Because you cannot use the &#8220;\\?\&#8221; prefix with a relative path, relative paths are always limited to a total of <strong>MAX_PATH</strong> characters.</p></blockquote>
<p>Usually, handling long paths is done by adding a prefix &#8211; &#8220;\\?\&#8221; &#8211; to the path. Meaning, the path D:\LongFolderName will become &#8220;\\?\D:\LongFolderName&#8221;</p>
<p>Handling UNC paths is a little different &#8211; you need to add a different prefix &#8211; &#8220;\\?\UNC\&#8221; which means that &#8220;\\server\share\&#8221; becomes &#8220;\\?\UNC\server\share\&#8221;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/itaysagui.wordpress.com/278/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/itaysagui.wordpress.com/278/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/itaysagui.wordpress.com/278/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/itaysagui.wordpress.com/278/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/itaysagui.wordpress.com/278/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/itaysagui.wordpress.com/278/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/itaysagui.wordpress.com/278/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/itaysagui.wordpress.com/278/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/itaysagui.wordpress.com/278/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/itaysagui.wordpress.com/278/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/itaysagui.wordpress.com/278/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/itaysagui.wordpress.com/278/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/itaysagui.wordpress.com/278/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/itaysagui.wordpress.com/278/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itaysagui.wordpress.com&amp;blog=30958414&amp;post=278&amp;subd=itaysagui&amp;ref=&amp;feed=1" width="1" height="1" />
<p><a href="http://feedads.g.doubleclick.net/~a/HedlnLUf0BCg0cGOjcDuiZUHc3o/0/da"><img src="http://feedads.g.doubleclick.net/~a/HedlnLUf0BCg0cGOjcDuiZUHc3o/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/HedlnLUf0BCg0cGOjcDuiZUHc3o/1/da"><img src="http://feedads.g.doubleclick.net/~a/HedlnLUf0BCg0cGOjcDuiZUHc3o/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Saguiitay/~4/e_dxVR-0c_I" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://itaysagui.wordpress.com/2012/01/13/longpath-and-unc-paths/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b6e4d9eea69a9c88097f9f53cdc61568?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">saguiitay</media:title>
		</media:content>
	<feedburner:origLink>http://itaysagui.wordpress.com/2012/01/13/longpath-and-unc-paths/</feedburner:origLink></item>
		<item>
		<title>jQuery and MVC together – URLs resolving</title>
		<link>http://feedproxy.google.com/~r/Saguiitay/~3/IDJ6aH9-qzM/</link>
		<comments>http://itaysagui.wordpress.com/2012/01/12/jquery-and-mvc-together-urls-resolving/#comments</comments>
		<pubDate>Thu, 12 Jan 2012 20:47:42 +0000</pubDate>
		<dc:creator>Sagui Itay</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[MVC3]]></category>

		<guid isPermaLink="false">http://itaysagui.wordpress.com/?p=269</guid>
		<description><![CDATA[Lately I&#8217;ve found myself working on a website, that is based on MVC3, and is using some jQuery. I found a beautiful template in ThemeForest.net &#8211; no shame in admitting I&#8217;m no designer. The first few steps of setting up a new MVC project, using the downloaded theme in the Layout.chtml file, and adding all [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itaysagui.wordpress.com&amp;blog=30958414&amp;post=269&amp;subd=itaysagui&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Lately I&#8217;ve found myself working on a website, that is based on MVC3, and is using some <a class="zem_slink" title="JQuery" href="http://jquery.com/" rel="homepage">jQuery</a>. I found a beautiful template in <a href="http://en.support.wordpress.com/affiliate-links/">ThemeForest.net</a> &#8211; no shame in admitting I&#8217;m no designer. The first few steps of setting up a new MVC project, using the downloaded theme in the Layout.chtml file, and adding all the files went pretty smoothly.</p>
<p>However, after playing a bit with the new site, I&#8217;ve started getting errors in the in some of the javascript files. it turned out that the theme I was using called jQuery&#8217;s &#8220;include&#8221; method in several places. When loading the default Index action, things went fine. However, when navigation to other actions, due to the URL including the Controller&#8217;s and Action&#8217;s name, the &#8220;include&#8221; method couldn&#8217;t find the files due to their relative path.</p>
<p>Obviously, you can&#8217;t use MVC&#8217;s &#8220;Url&#8221; helper class from within the JS files to resolve a &#8220;<a class="zem_slink" title="Home directory" href="http://en.wikipedia.org/wiki/Home_directory" rel="wikipedia">~/</a>&#8221; URL. The workaround I&#8217;ve found is to create a JS prototype in my Layout.chtml file, and use it&#8217;s method to resolve the URLs in JS. Here is the code:</p>
<p><pre class="brush: jscript;">
&lt;script type=&quot;text/javascript&quot;&gt;
    Url = function () { };
    Url.prototype = {
        // Resolve ~/ using the MVC view engine
        _relativeRoot: '@Url.Content(&quot;~/&quot;)',
        // Create an extension method called &quot;resolve&quot;
        resolve: function (relative) {
            var resolved = relative;
            if (relative.charAt(0) == '~' &amp;&amp; relative.charAt(1) == '/')
                resolved = this._relativeRoot + relative.substring(2);
            return resolved;
        }
    };

    $Url = new Url();
&lt;/script&gt;
</pre></p>
<p>In all your JS, you can now use the &#8220;resolve&#8221; method like this:</p>
<p><pre class="brush: jscript;">
$.include($Url.resolve('~/js/jquery.watermarkinput.js'));
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/itaysagui.wordpress.com/269/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/itaysagui.wordpress.com/269/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/itaysagui.wordpress.com/269/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/itaysagui.wordpress.com/269/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/itaysagui.wordpress.com/269/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/itaysagui.wordpress.com/269/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/itaysagui.wordpress.com/269/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/itaysagui.wordpress.com/269/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/itaysagui.wordpress.com/269/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/itaysagui.wordpress.com/269/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/itaysagui.wordpress.com/269/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/itaysagui.wordpress.com/269/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/itaysagui.wordpress.com/269/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/itaysagui.wordpress.com/269/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itaysagui.wordpress.com&amp;blog=30958414&amp;post=269&amp;subd=itaysagui&amp;ref=&amp;feed=1" width="1" height="1" />
<p><a href="http://feedads.g.doubleclick.net/~a/E27KEJTcEcMabWIlio9H7idQpOs/0/da"><img src="http://feedads.g.doubleclick.net/~a/E27KEJTcEcMabWIlio9H7idQpOs/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/E27KEJTcEcMabWIlio9H7idQpOs/1/da"><img src="http://feedads.g.doubleclick.net/~a/E27KEJTcEcMabWIlio9H7idQpOs/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Saguiitay/~4/IDJ6aH9-qzM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://itaysagui.wordpress.com/2012/01/12/jquery-and-mvc-together-urls-resolving/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b6e4d9eea69a9c88097f9f53cdc61568?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">saguiitay</media:title>
		</media:content>
	<feedburner:origLink>http://itaysagui.wordpress.com/2012/01/12/jquery-and-mvc-together-urls-resolving/</feedburner:origLink></item>
		<item>
		<title>WP7: Extra Wide, Horizontally Wrapping PanoramaItem with dynamic ListBox « dotnet Catch</title>
		<link>http://feedproxy.google.com/~r/Saguiitay/~3/25BeVPKlzmw/</link>
		<comments>http://itaysagui.wordpress.com/2012/01/06/wp7-extra-wide-horizontally-wrapping-panoramaitem-with-dynamic-listbox-dotnet-catch/#comments</comments>
		<pubDate>Fri, 06 Jan 2012 15:36:44 +0000</pubDate>
		<dc:creator>Sagui Itay</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Windows Phone 7]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[WP7]]></category>

		<guid isPermaLink="false">http://itaysagui.wordpress.com/?p=262</guid>
		<description><![CDATA[For those looking at creating PanoramaItems that appear widder than the screen&#8217;s size, I&#8217;ve found this nice post by rschiefer: WP7: Extra Wide, Horizontally Wrapping PanoramaItem with dynamic ListBox « dotnet Catch. Here&#8217;s a screenshot:<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itaysagui.wordpress.com&amp;blog=30958414&amp;post=262&amp;subd=itaysagui&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For those looking at creating PanoramaItems that appear widder than the screen&#8217;s size, I&#8217;ve found this nice post by <a class="url" href="http://dotnetcatch.wordpress.com/" rel="external nofollow">rschiefer:</a></p>
<p><a href="http://dotnetcatch.wordpress.com/2011/01/06/wp7-extra-wide-horizontally-wrapping-panoramaitem-with-dynamic-listbox/">WP7: Extra Wide, Horizontally Wrapping PanoramaItem with dynamic ListBox « dotnet Catch</a>.</p>
<p>Here&#8217;s a screenshot:</p>
<p style="text-align:center;"><a href="http://dotnetcatch.wordpress.com/2011/01/06/wp7-extra-wide-horizontally-wrapping-panoramaitem-with-dynamic-listbox/"><img src='http://itaysagui.files.wordpress.com/2012/01/wp7-office-hub.jpg?w=630' alt='WP7: Extra Wide, Horizontally Wrapping PanoramaItem with dynamic ListBox « dotnet Catch' /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/itaysagui.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/itaysagui.wordpress.com/262/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/itaysagui.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/itaysagui.wordpress.com/262/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/itaysagui.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/itaysagui.wordpress.com/262/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/itaysagui.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/itaysagui.wordpress.com/262/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/itaysagui.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/itaysagui.wordpress.com/262/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/itaysagui.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/itaysagui.wordpress.com/262/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/itaysagui.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/itaysagui.wordpress.com/262/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itaysagui.wordpress.com&amp;blog=30958414&amp;post=262&amp;subd=itaysagui&amp;ref=&amp;feed=1" width="1" height="1" />
<p><a href="http://feedads.g.doubleclick.net/~a/RPTp5meELTzvP-jemiTCgXH7PBE/0/da"><img src="http://feedads.g.doubleclick.net/~a/RPTp5meELTzvP-jemiTCgXH7PBE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/RPTp5meELTzvP-jemiTCgXH7PBE/1/da"><img src="http://feedads.g.doubleclick.net/~a/RPTp5meELTzvP-jemiTCgXH7PBE/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Saguiitay/~4/25BeVPKlzmw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://itaysagui.wordpress.com/2012/01/06/wp7-extra-wide-horizontally-wrapping-panoramaitem-with-dynamic-listbox-dotnet-catch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b6e4d9eea69a9c88097f9f53cdc61568?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">saguiitay</media:title>
		</media:content>

		<media:content url="http://itaysagui.files.wordpress.com/2012/01/wp7-office-hub.jpg" medium="image">
			<media:title type="html">WP7: Extra Wide, Horizontally Wrapping PanoramaItem with dynamic ListBox « dotnet Catch</media:title>
		</media:content>
	<feedburner:origLink>http://itaysagui.wordpress.com/2012/01/06/wp7-extra-wide-horizontally-wrapping-panoramaitem-with-dynamic-listbox-dotnet-catch/</feedburner:origLink></item>
		<item>
		<title>WinForms: ListView with Multi-lined tool-tips for SubItems</title>
		<link>http://feedproxy.google.com/~r/Saguiitay/~3/drquFHqbU9w/</link>
		<comments>http://itaysagui.wordpress.com/2012/01/05/winforms-listview-with-multi-lined-tool-tips-for-subitems/#comments</comments>
		<pubDate>Thu, 05 Jan 2012 14:06:25 +0000</pubDate>
		<dc:creator>Sagui Itay</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[WinForms]]></category>

		<guid isPermaLink="false">http://itaysagui.wordpress.com/?p=253</guid>
		<description><![CDATA[If you&#8217;ve worked with ListViews in WinForms before, you might have encountered the discouraging fact that the default ListView does not support multi-lined tool-tips for SubItems. For this to work, you have to create a custom control that inherits from ListView, and make some nasty calls to P/Invoke. Here&#8217;s how this can be achieved: As [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itaysagui.wordpress.com&amp;blog=30958414&amp;post=253&amp;subd=itaysagui&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve worked with ListViews in WinForms before, you might have encountered the discouraging fact that the default ListView does not support multi-lined tool-tips for SubItems. For this to work, you have to create a custom control that inherits from ListView, and make some nasty calls to P/Invoke. Here&#8217;s how this can be achieved:</p>
<p><pre class="brush: csharp;">

public class ListViewEx : ListView
{
    private const int WM_NOTIFY = 78;
    private const int TTN_FIRST = -520;
    private const int TTN_NEEDTEXT = (TTN_FIRST - 10);

    [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
    public struct NMHDR
    {
        public IntPtr hwndFrom;
        public Int32 idFrom;
        public Int32 code;
    }

    [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
    public struct NMTTDISPINFO
    {
        public NMHDR hdr;
        [MarshalAs(UnmanagedType.LPTStr)]
        public string lpszText;
        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 80)]
        public string szText;
        public IntPtr hinst;
        public int uFlags;
        public IntPtr lParam;
    }

    [DllImport(&quot;user32.dll&quot;, CharSet = CharSet.Auto)]
    public static extern IntPtr SendMessage(IntPtr hWnd, IntPtr uMsg, IntPtr wParam, IntPtr lParam);

    protected override void OnNotifyMessage(Message m)
    {
        // Handle only WM_NOTIFY messages
        if (m.Msg != (int)WM_NOTIFY)
        {
            base.OnNotifyMessage(m);
            return;
        }
        // Get the details of the WM_NOTIFY message, in the form of an NMHDR object
        var nmHdr = (NMHDR) Marshal.PtrToStructure(m.LParam, typeof (NMHDR));
        // We will handle only the TTN_NEEDTEXT message
        if (nmHdr.code != TTN_NEEDTEXT)
            return;

        // Calculate the tool-tip
        var tip = CalculateToolTip();
        if (tip == null)
            return;

        // Get the details of the notification message in the form of an NMTTDISPINFO object
        var nmttDispInfo = (NMTTDISPINFO)Marshal.PtrToStructure(m.LParam, typeof(NMTTDISPINFO));

        // Set max-width, to force multi-line tooltips (here, I've hard-coded the max-width to 320px.
        // You can calculated it based on the length of the tool-tip, screen resolution, etc.)
        SendMessage(nmttDispInfo.hdr.hwndFrom, (IntPtr)1048, IntPtr.Zero, (IntPtr)320);

        // Update tool-tip text
        nmttDispInfo.lpszText = tip;
        // Update the handle of the object that will host the tool-tip
        nmttDispInfo.hdr.hwndFrom = m.HWnd;
        
        // Update message information with new data
        Marshal.StructureToPtr(nmttDispInfo, m.LParam, false);
    }

    private string CalculateToolTip()
    {
        // Convert MousePosition to position inside the ListView
        var pt = PointToClient(MousePosition);

        // Perform HitTest, to allow us to find the correct ListView item/subitem
        var hitTestInfo = HitTest(pt);
        var item = hitTestInfo.Item;
        var subitem = hitTestInfo.SubItem;

        // If we didn't hit any item, no need for a tool-tip
        if (item == null)
            return null;

        return string.Format(&quot;Tool-tip for item: {0}\r\nSubitem: {1}&quot;, item.Index, item.SubItems.IndexOf(subitem));
    }
}

</pre></p>
<p>As you can see, the code is not overly complex, but not something that you could have guessed without <del>Googling</del> Binging it first.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/itaysagui.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/itaysagui.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/itaysagui.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/itaysagui.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/itaysagui.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/itaysagui.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/itaysagui.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/itaysagui.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/itaysagui.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/itaysagui.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/itaysagui.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/itaysagui.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/itaysagui.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/itaysagui.wordpress.com/253/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itaysagui.wordpress.com&amp;blog=30958414&amp;post=253&amp;subd=itaysagui&amp;ref=&amp;feed=1" width="1" height="1" />
<p><a href="http://feedads.g.doubleclick.net/~a/PPu0Fcluaxzx6eXh_7UMe8KWphU/0/da"><img src="http://feedads.g.doubleclick.net/~a/PPu0Fcluaxzx6eXh_7UMe8KWphU/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/PPu0Fcluaxzx6eXh_7UMe8KWphU/1/da"><img src="http://feedads.g.doubleclick.net/~a/PPu0Fcluaxzx6eXh_7UMe8KWphU/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Saguiitay/~4/drquFHqbU9w" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://itaysagui.wordpress.com/2012/01/05/winforms-listview-with-multi-lined-tool-tips-for-subitems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b6e4d9eea69a9c88097f9f53cdc61568?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">saguiitay</media:title>
		</media:content>
	<feedburner:origLink>http://itaysagui.wordpress.com/2012/01/05/winforms-listview-with-multi-lined-tool-tips-for-subitems/</feedburner:origLink></item>
		<item>
		<title>WP7: Sending yourself error reports</title>
		<link>http://feedproxy.google.com/~r/Saguiitay/~3/_qmTIAdimwY/</link>
		<comments>http://itaysagui.wordpress.com/2012/01/04/wp7-sending-yourself-error-reports/#comments</comments>
		<pubDate>Tue, 03 Jan 2012 23:21:51 +0000</pubDate>
		<dc:creator>Sagui Itay</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Windows Phone 7]]></category>
		<category><![CDATA[WP7]]></category>

		<guid isPermaLink="false">http://itaysagui.wordpress.com/?p=244</guid>
		<description><![CDATA[One useful way of getting feedback from your WP7 application, is to be notified whenever a user encounter a crash. One easy way to achieve this, is to ask your users to send you an &#8220;error report&#8221; whenever the application crashes. We&#8217;ll start by adding the following code to the constructor of the App class: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itaysagui.wordpress.com&amp;blog=30958414&amp;post=244&amp;subd=itaysagui&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>One useful way of getting feedback from your WP7 application, is to be notified whenever a user encounter a crash. One easy way to achieve this, is to ask your users to send you an &#8220;error report&#8221; whenever the application crashes.</p>
<p>We&#8217;ll start by adding the following code to the constructor of the App class:</p>
<p><pre class="brush: csharp;">
// Global handler for uncaught exceptions.
UnhandledException += OnUnhandledException;
</pre></p>
<p>and in the OnUnhandledException method, we&#8217;ll ask the user permission to send the error report, and then use the EmailComposeTask task:</p>
<p><pre class="brush: csharp;">
var result = MessageBox.Show(
    &quot;Would you like to email the details of this error to the Developer?\n\n&quot;+
    &quot;(No personal information, other than your email address, will be sent to the Developer)&quot;,
    &quot;An error has occurred!&quot;,
    MessageBoxButton.OKCancel);

if (result == MessageBoxResult.OK)
{
    var task = new EmailComposeTask
            {
                To = &quot;your@hotmail.com&quot;,
                Subject = &quot;Error Report: Your App Title&quot;,
                Body = &quot;An unhandled exception occurred in App:\n\n&quot; +
                       &quot;Version: 1.0.0.1\n\n&quot; +
                       e.ExceptionObject
            };
    task.Show();
}
</pre></p>
<p>This will allow you to receive an email with a few details of the error.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/itaysagui.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/itaysagui.wordpress.com/244/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/itaysagui.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/itaysagui.wordpress.com/244/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/itaysagui.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/itaysagui.wordpress.com/244/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/itaysagui.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/itaysagui.wordpress.com/244/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/itaysagui.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/itaysagui.wordpress.com/244/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/itaysagui.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/itaysagui.wordpress.com/244/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/itaysagui.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/itaysagui.wordpress.com/244/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itaysagui.wordpress.com&amp;blog=30958414&amp;post=244&amp;subd=itaysagui&amp;ref=&amp;feed=1" width="1" height="1" />
<p><a href="http://feedads.g.doubleclick.net/~a/YHIfYqx62UdnJ8ZA5Eo6c0pxdv0/0/da"><img src="http://feedads.g.doubleclick.net/~a/YHIfYqx62UdnJ8ZA5Eo6c0pxdv0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/YHIfYqx62UdnJ8ZA5Eo6c0pxdv0/1/da"><img src="http://feedads.g.doubleclick.net/~a/YHIfYqx62UdnJ8ZA5Eo6c0pxdv0/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Saguiitay/~4/_qmTIAdimwY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://itaysagui.wordpress.com/2012/01/04/wp7-sending-yourself-error-reports/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b6e4d9eea69a9c88097f9f53cdc61568?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">saguiitay</media:title>
		</media:content>
	<feedburner:origLink>http://itaysagui.wordpress.com/2012/01/04/wp7-sending-yourself-error-reports/</feedburner:origLink></item>
		<item>
		<title>WP7 Books: My first WP7 application</title>
		<link>http://feedproxy.google.com/~r/Saguiitay/~3/_m78qlPcsEc/</link>
		<comments>http://itaysagui.wordpress.com/2011/12/31/wp7-books-my-first-wp7-application/#comments</comments>
		<pubDate>Sat, 31 Dec 2011 15:22:50 +0000</pubDate>
		<dc:creator>Sagui Itay</dc:creator>
				<category><![CDATA[Windows Phone 7]]></category>
		<category><![CDATA[WP7]]></category>

		<guid isPermaLink="false">http://itaysagui.wordpress.com/?p=172</guid>
		<description><![CDATA[Today, my first WP7 application was published: WP7 Books The application allows you to easily manage your book collection. You can read all about the application in the WP7 Books page in this blog, or in the WP7 Marketplace.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itaysagui.wordpress.com&amp;blog=30958414&amp;post=172&amp;subd=itaysagui&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today, my first WP7 application was published: WP7 Books</p>
<p>The application allows you to easily manage your book collection. You can read all about the application in the <a href="http://wp.me/P25THg-2o">WP7 Books</a> page in this blog, or in the <a href="http://windowsphone.com/s?appid=cccd4b9f-ebb2-440b-8df3-99dcfb39743f">WP7 Marketplace</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/itaysagui.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/itaysagui.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/itaysagui.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/itaysagui.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/itaysagui.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/itaysagui.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/itaysagui.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/itaysagui.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/itaysagui.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/itaysagui.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/itaysagui.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/itaysagui.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/itaysagui.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/itaysagui.wordpress.com/172/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itaysagui.wordpress.com&amp;blog=30958414&amp;post=172&amp;subd=itaysagui&amp;ref=&amp;feed=1" width="1" height="1" />
<p><a href="http://feedads.g.doubleclick.net/~a/r7_zfgslWlUSXOxKsZd52ZA3FJE/0/da"><img src="http://feedads.g.doubleclick.net/~a/r7_zfgslWlUSXOxKsZd52ZA3FJE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/r7_zfgslWlUSXOxKsZd52ZA3FJE/1/da"><img src="http://feedads.g.doubleclick.net/~a/r7_zfgslWlUSXOxKsZd52ZA3FJE/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Saguiitay/~4/_m78qlPcsEc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://itaysagui.wordpress.com/2011/12/31/wp7-books-my-first-wp7-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b6e4d9eea69a9c88097f9f53cdc61568?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">saguiitay</media:title>
		</media:content>
	<feedburner:origLink>http://itaysagui.wordpress.com/2011/12/31/wp7-books-my-first-wp7-application/</feedburner:origLink></item>
		<item>
		<title>HTTP Services With WCF 4 and Windsor</title>
		<link>http://feedproxy.google.com/~r/Saguiitay/~3/NNnUWA2djIs/</link>
		<comments>http://itaysagui.wordpress.com/2011/09/16/http-services-with-wcf-4-and-windsor/#comments</comments>
		<pubDate>Fri, 16 Sep 2011 12:00:00 +0000</pubDate>
		<dc:creator>Sagui Itay</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[WCF]]></category>
		<category><![CDATA[Windsor]]></category>

		<guid isPermaLink="false">http://itaysagui.wordpress.com/2011/09/16/http-services-with-wcf-4-and-windsor</guid>
		<description><![CDATA[Although a bit old, I found the following article, Vanilla Yet Composable HTTP Services With WCF 4 and Windsor, extremely helpful. The article shows how to easily create services, and have their dependencies automatically resolved by the Windsor container, with minimal changes.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itaysagui.wordpress.com&amp;blog=30958414&amp;post=138&amp;subd=itaysagui&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div dir="ltr" style="text-align:left;">
Although a bit old, I found the following article, <a href="http://codebetter.com/howarddierking/2010/01/19/vanilla-yet-composable-http-services-with-wcf-4-and-windsor/">Vanilla Yet Composable HTTP Services With WCF 4 and Windsor</a>, extremely helpful.</p>
<p>The article shows how to easily create services, and have their dependencies automatically resolved by the <a href="http://docs.castleproject.org/Windsor.MainPage.ashx">Windsor </a>container, with minimal changes.</div>
<div class="blogger-post-footer"><img width='1' height='1' src='' alt='' /></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/itaysagui.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/itaysagui.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/itaysagui.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/itaysagui.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/itaysagui.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/itaysagui.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/itaysagui.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/itaysagui.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/itaysagui.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/itaysagui.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/itaysagui.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/itaysagui.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/itaysagui.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/itaysagui.wordpress.com/138/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itaysagui.wordpress.com&amp;blog=30958414&amp;post=138&amp;subd=itaysagui&amp;ref=&amp;feed=1" width="1" height="1" />
<p><a href="http://feedads.g.doubleclick.net/~a/Xn0FWLbrz12xXmwHEEnpmtzcs6g/0/da"><img src="http://feedads.g.doubleclick.net/~a/Xn0FWLbrz12xXmwHEEnpmtzcs6g/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Xn0FWLbrz12xXmwHEEnpmtzcs6g/1/da"><img src="http://feedads.g.doubleclick.net/~a/Xn0FWLbrz12xXmwHEEnpmtzcs6g/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Saguiitay/~4/NNnUWA2djIs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://itaysagui.wordpress.com/2011/09/16/http-services-with-wcf-4-and-windsor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b6e4d9eea69a9c88097f9f53cdc61568?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">saguiitay</media:title>
		</media:content>
	<feedburner:origLink>http://itaysagui.wordpress.com/2011/09/16/http-services-with-wcf-4-and-windsor/</feedburner:origLink></item>
	</channel>
</rss>

