<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: WPFix Part 1 (Lambda Converter Extension)</title>
	<atom:link href="http://www.fikrimvar.net/lestirelim/?feed=rss2&#038;p=15" rel="self" type="application/rss+xml" />
	<link>http://www.fikrimvar.net/lestirelim/?p=15</link>
	<description>idea: artifact of my sagacious serendipity</description>
	<lastBuildDate>Tue, 25 May 2010 21:29:14 +0300</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: chaiguy1337</title>
		<link>http://www.fikrimvar.net/lestirelim/?p=15&#038;cpage=1#comment-27488</link>
		<dc:creator>chaiguy1337</dc:creator>
		<pubDate>Thu, 02 Oct 2008 01:34:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.fikrimvar.net/lestirelim/?p=15#comment-27488</guid>
		<description>Excellent work! (Also thanks for clearing up the point concerning MultiBindingExtension as that threw me off at first).

Now all we need is intellisense and syntax highlighting in XAML lambda expressions... or &quot;xamdas&quot;! ;)</description>
		<content:encoded><![CDATA[<p>Excellent work! (Also thanks for clearing up the point concerning MultiBindingExtension as that threw me off at first).</p>
<p>Now all we need is intellisense and syntax highlighting in XAML lambda expressions&#8230; or &#8220;xamdas&#8221;! <img src='http://www.fikrimvar.net/lestirelim/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marlon Grech</title>
		<link>http://www.fikrimvar.net/lestirelim/?p=15&#038;cpage=1#comment-59</link>
		<dc:creator>Marlon Grech</dc:creator>
		<pubDate>Mon, 11 Feb 2008 08:39:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.fikrimvar.net/lestirelim/?p=15#comment-59</guid>
		<description>Hi there I created something similar to this here
http://marlongrech.wordpress.com/2008/02/10/embed-code-in-xaml/

Maybe we can merge the two of them what do you think?

Regards</description>
		<content:encoded><![CDATA[<p>Hi there I created something similar to this here<br />
<a href="http://marlongrech.wordpress.com/2008/02/10/embed-code-in-xaml/" rel="nofollow">http://marlongrech.wordpress.com/2008/02/10/embed-code-in-xaml/</a></p>
<p>Maybe we can merge the two of them what do you think?</p>
<p>Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Douglas</title>
		<link>http://www.fikrimvar.net/lestirelim/?p=15&#038;cpage=1#comment-4</link>
		<dc:creator>Douglas</dc:creator>
		<pubDate>Sun, 18 Nov 2007 20:42:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.fikrimvar.net/lestirelim/?p=15#comment-4</guid>
		<description>This is very nice.

Only problem is that the VS2008 designer (Cider) considers it full of errors and won&#039;t display. It will compile and run just fine.</description>
		<content:encoded><![CDATA[<p>This is very nice.</p>
<p>Only problem is that the VS2008 designer (Cider) considers it full of errors and won&#8217;t display. It will compile and run just fine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: orca</title>
		<link>http://www.fikrimvar.net/lestirelim/?p=15&#038;cpage=1#comment-3</link>
		<dc:creator>orca</dc:creator>
		<pubDate>Sat, 17 Nov 2007 17:04:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.fikrimvar.net/lestirelim/?p=15#comment-3</guid>
		<description>The problem is a little bit parser related. There are 2 ways of setting values of attributes. You can either use quotes (&quot;) or apostrophes(&apos;).  While using binding or another markup extension, we enclose the extension part ({...}) with one of these and the other one with serve as our literal quoter.
In our case, we use this ability to specify the lambda expression as a string literal parameter to our LambdaExtension&#039;s constructor. One would expect a similar opportunity to use the alternating character to be used inside the second literal. I am not an expert on this, but this may be an xml issue.
Solution may change, because the problem can also change. Here are two possible solutions for two different scenarios:

&lt;TextBlock Text=&apos;{Binding Source={x:Static s:DateTime.Now}, Converter={fix:Lambda &quot;dt=&gt;\&quot;DateTime.Now &gt; \&quot; + dt.ToShortTimeString()&quot;}}&apos;/&gt;

Notice that we set text attribute by &apos; and use &quot; for the expression. Inside the expression we can use \ character to escape for &quot; but not for &apos;.

&lt;TextBlock Text=&quot;{Binding Source={x:Static s:DateTime.Now}, Converter={fix:Lambda &apos;dt=&gt;dt.ToShortTimeString().Replace(\&apos;:\&apos;,\&apos;.\&apos;)&apos;}}&quot;/&gt;

This time, we had to escape for &apos; in the expression. So we had to set the attribute with &quot;. What if we need to use a string literal and a character inside the expression? There is always an ugly solution. You can use &quot; and &apos; inside the expression.

Thank you for your comment. I hope, I was able to solve your problem without complicating the matter.

P.S. Thanks for pointing out the compile problem. I was going to provide a MultiBindingExtension but I could not decide the syntax yet. Until then, one must delete that line and recompile the solution. </description>
		<content:encoded><![CDATA[<p>The problem is a little bit parser related. There are 2 ways of setting values of attributes. You can either use quotes (&quot;) or apostrophes(&apos;).  While using binding or another markup extension, we enclose the extension part ({&#8230;}) with one of these and the other one with serve as our literal quoter.<br />
In our case, we use this ability to specify the lambda expression as a string literal parameter to our LambdaExtension&#8217;s constructor. One would expect a similar opportunity to use the alternating character to be used inside the second literal. I am not an expert on this, but this may be an xml issue.<br />
Solution may change, because the problem can also change. Here are two possible solutions for two different scenarios:</p>
<p>&lt;TextBlock Text=&apos;{Binding Source={x:Static s:DateTime.Now}, Converter={fix:Lambda &quot;dt=&gt;\&quot;DateTime.Now &gt; \&quot; + dt.ToShortTimeString()&quot;}}&apos;/&gt;</p>
<p>Notice that we set text attribute by &apos; and use &#8221; for the expression. Inside the expression we can use \ character to escape for &#8221; but not for &apos;.</p>
<p>&lt;TextBlock Text=&quot;{Binding Source={x:Static s:DateTime.Now}, Converter={fix:Lambda &apos;dt=&gt;dt.ToShortTimeString().Replace(\&apos;:\&apos;,\&apos;.\&apos;)&apos;}}&quot;/&gt;</p>
<p>This time, we had to escape for &apos; in the expression. So we had to set the attribute with &quot;. What if we need to use a string literal and a character inside the expression? There is always an ugly solution. You can use &amp;quot; and &amp;apos; inside the expression.</p>
<p>Thank you for your comment. I hope, I was able to solve your problem without complicating the matter.</p>
<p>P.S. Thanks for pointing out the compile problem. I was going to provide a MultiBindingExtension but I could not decide the syntax yet. Until then, one must delete that line and recompile the solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: t-hex</title>
		<link>http://www.fikrimvar.net/lestirelim/?p=15&#038;cpage=1#comment-2</link>
		<dc:creator>t-hex</dc:creator>
		<pubDate>Sat, 17 Nov 2007 12:58:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.fikrimvar.net/lestirelim/?p=15#comment-2</guid>
		<description>Thanks for your work. It is really amazing.  

At first i couldn&#039;t build your solution because c# was complaining about the class MultiBindingExtension, so i had to comment out that line and it is compiled. 

I have another question about using string literals in lambda expressions. In c# i can use  lambda expressions like 

dt =&gt; &quot;Time is &quot;+ dt.ToShortDateTime()

but I couldn&#039;t figure out how to do it in XAML. I thought i could type &quot; instead of &quot; character but it didn&#039;t work. 

Can you suggest a solution for that?

Thanks.</description>
		<content:encoded><![CDATA[<p>Thanks for your work. It is really amazing.  </p>
<p>At first i couldn&#8217;t build your solution because c# was complaining about the class MultiBindingExtension, so i had to comment out that line and it is compiled. </p>
<p>I have another question about using string literals in lambda expressions. In c# i can use  lambda expressions like </p>
<p>dt =&gt; &#8220;Time is &#8220;+ dt.ToShortDateTime()</p>
<p>but I couldn&#8217;t figure out how to do it in XAML. I thought i could type &#8221; instead of &#8221; character but it didn&#8217;t work. </p>
<p>Can you suggest a solution for that?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
