<?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: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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
<channel>
	<title>Comments for codesomnia</title>
	
	<link>http://codesomnia.de</link>
	<description>~ coding at night ~</description>
	<lastBuildDate>Fri, 24 Jun 2011 21:03:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/codesomniaComments" /><feedburner:info uri="codesomniacomments" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Comment on MVVM Dialogs with Caliburn.Micro by LowTide76</title>
		<link>http://feedproxy.google.com/~r/codesomniaComments/~3/AGJPAuoR7f0/</link>
		<dc:creator>LowTide76</dc:creator>
		<pubDate>Fri, 24 Jun 2011 21:03:09 +0000</pubDate>
		<guid isPermaLink="false">http://codesomnia.de/?p=246#comment-36</guid>
		<description>Sounds good.  I really like what you have done and am looking forward to using it!  If I can do anything on my side to help troubleshoot or test, just let me know.</description>
		<content:encoded><![CDATA[<p>Sounds good.  I really like what you have done and am looking forward to using it!  If I can do anything on my side to help troubleshoot or test, just let me know.</p>
<img src="http://feeds.feedburner.com/~r/codesomniaComments/~4/AGJPAuoR7f0" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://codesomnia.de/2011/mvvm-dialogs-with-caliburn-micro/comment-page-1/#comment-36</feedburner:origLink></item>
	<item>
		<title>Comment on MVVM Dialogs with Caliburn.Micro by Kevin</title>
		<link>http://feedproxy.google.com/~r/codesomniaComments/~3/ZL9hjj5wF2A/</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Fri, 24 Jun 2011 20:51:11 +0000</pubDate>
		<guid isPermaLink="false">http://codesomnia.de/?p=246#comment-35</guid>
		<description>I duuno how but i messed up something in the Repository. There is some stuff missing and other stuff was deleted and i don't know exactly why. I should really stop moving/renaming files with while changing them :/ It also says that some code files are binary which is very strange...I'll give an update when I got it up and running again</description>
		<content:encoded><![CDATA[<p>I duuno how but i messed up something in the Repository. There is some stuff missing and other stuff was deleted and i don&#8217;t know exactly why. I should really stop moving/renaming files with while changing them :/ It also says that some code files are binary which is very strange&#8230;I&#8217;ll give an update when I got it up and running again</p>
<img src="http://feeds.feedburner.com/~r/codesomniaComments/~4/ZL9hjj5wF2A" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://codesomnia.de/2011/mvvm-dialogs-with-caliburn-micro/comment-page-1/#comment-35</feedburner:origLink></item>
	<item>
		<title>Comment on MVVM Dialogs with Caliburn.Micro by LowTide76</title>
		<link>http://feedproxy.google.com/~r/codesomniaComments/~3/_--8Zb5IVIs/</link>
		<dc:creator>LowTide76</dc:creator>
		<pubDate>Fri, 24 Jun 2011 20:36:31 +0000</pubDate>
		<guid isPermaLink="false">http://codesomnia.de/?p=246#comment-34</guid>
		<description>BTW, private void CreateResponses() inside of DialogViewModel.cs is getting called twice, the first time Dialog is null so your fix checking for null allows it to pass through and then the next time Dialog has a value.</description>
		<content:encoded><![CDATA[<p>BTW, private void CreateResponses() inside of DialogViewModel.cs is getting called twice, the first time Dialog is null so your fix checking for null allows it to pass through and then the next time Dialog has a value.</p>
<img src="http://feeds.feedburner.com/~r/codesomniaComments/~4/_--8Zb5IVIs" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://codesomnia.de/2011/mvvm-dialogs-with-caliburn-micro/comment-page-1/#comment-34</feedburner:origLink></item>
	<item>
		<title>Comment on MVVM Dialogs with Caliburn.Micro by LowTide76</title>
		<link>http://feedproxy.google.com/~r/codesomniaComments/~3/9AzEaJd71EM/</link>
		<dc:creator>LowTide76</dc:creator>
		<pubDate>Fri, 24 Jun 2011 20:28:19 +0000</pubDate>
		<guid isPermaLink="false">http://codesomnia.de/?p=246#comment-33</guid>
		<description>Yes, that fixed the display issue.  The problem now, which may or may not be a problem, is the dialog doesn't close when clicking an option.  Using the code below, when I click ignore I get " :[ " in the console, but the dialog doesn't go away and on subsequent clicks it doesn't do anything.

Thank you for the prompt responses.

&lt;code&gt;            var question = new Dialog(DialogType.Question,
                    "Isn't this a nice way to create a Dialog Window?",
                    Answer.Yes,
                    Answer.No);

            yield return question.AsResult();

            if (question.GivenResponse == Answer.Yes)
                System.Diagnostics.Debug.WriteLine(" :] ");
            else
                System.Diagnostics.Debug.WriteLine(" :[ ");&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Yes, that fixed the display issue.  The problem now, which may or may not be a problem, is the dialog doesn&#8217;t close when clicking an option.  Using the code below, when I click ignore I get &#8221; :[ " in the console, but the dialog doesn't go away and on subsequent clicks it doesn't do anything.</p>
<p>Thank you for the prompt responses.</p>
<p><code>            var question = new Dialog(DialogType.Question,<br />
                    "Isn't this a nice way to create a Dialog Window?",<br />
                    Answer.Yes,<br />
                    Answer.No);</p>
<p>            yield return question.AsResult();</p>
<p>            if (question.GivenResponse == Answer.Yes)<br />
                System.Diagnostics.Debug.WriteLine(" :] &#8220;);<br />
            else<br />
                System.Diagnostics.Debug.WriteLine(&#8221; :[ &#8220;);</code></p>
<img src="http://feeds.feedburner.com/~r/codesomniaComments/~4/9AzEaJd71EM" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://codesomnia.de/2011/mvvm-dialogs-with-caliburn-micro/comment-page-1/#comment-33</feedburner:origLink></item>
	<item>
		<title>Comment on MVVM Dialogs with Caliburn.Micro by Kevin</title>
		<link>http://feedproxy.google.com/~r/codesomniaComments/~3/GWTkx_tUvQw/</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Fri, 24 Jun 2011 19:16:49 +0000</pubDate>
		<guid isPermaLink="false">http://codesomnia.de/?p=246#comment-32</guid>
		<description>so i just pushed a fix to the repository although i still didn't get the error ?! give it a try and tell me if it actually fixed the bug. 
Thanks for the feedback !</description>
		<content:encoded><![CDATA[<p>so i just pushed a fix to the repository although i still didn&#8217;t get the error ?! give it a try and tell me if it actually fixed the bug.<br />
Thanks for the feedback !</p>
<img src="http://feeds.feedburner.com/~r/codesomniaComments/~4/GWTkx_tUvQw" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://codesomnia.de/2011/mvvm-dialogs-with-caliburn-micro/comment-page-1/#comment-32</feedburner:origLink></item>
	<item>
		<title>Comment on MVVM Dialogs with Caliburn.Micro by LowTide76</title>
		<link>http://feedproxy.google.com/~r/codesomniaComments/~3/5Q_rNBIoUYs/</link>
		<dc:creator>LowTide76</dc:creator>
		<pubDate>Fri, 24 Jun 2011 18:58:11 +0000</pubDate>
		<guid isPermaLink="false">http://codesomnia.de/?p=246#comment-31</guid>
		<description>Yes, you are right - on the line: IDialogViewModel vm = _locateVM();

I am getting Object reference not set to an instance of an object.
   at Caliburn.Micro.Contrib.Interaction.DialogViewModel`1.CreateResponses()
   at Caliburn.Micro.Contrib.Interaction.DialogViewModel`1.set_Dialog(Dialog`1 value)
   at Caliburn.Micro.Contrib.Interaction.DialogViewModel`1..ctor(Dialog`1 dialog)
   at Caliburn.Micro.Contrib.Interaction.DialogViewModel`1..ctor()
   at Caliburn.Micro.Contrib.Results.DialogResult`1.b__0()
   at Caliburn.Micro.Contrib.Results.DialogResult`1.Execute(ActionExecutionContext context)

I am on Windows 7  64-bit running VS 2010  with SP1 and Silverlight 4 application.  What else can I provide you?

TIA</description>
		<content:encoded><![CDATA[<p>Yes, you are right &#8211; on the line: IDialogViewModel vm = _locateVM();</p>
<p>I am getting Object reference not set to an instance of an object.<br />
   at Caliburn.Micro.Contrib.Interaction.DialogViewModel`1.CreateResponses()<br />
   at Caliburn.Micro.Contrib.Interaction.DialogViewModel`1.set_Dialog(Dialog`1 value)<br />
   at Caliburn.Micro.Contrib.Interaction.DialogViewModel`1..ctor(Dialog`1 dialog)<br />
   at Caliburn.Micro.Contrib.Interaction.DialogViewModel`1..ctor()<br />
   at Caliburn.Micro.Contrib.Results.DialogResult`1.b__0()<br />
   at Caliburn.Micro.Contrib.Results.DialogResult`1.Execute(ActionExecutionContext context)</p>
<p>I am on Windows 7  64-bit running VS 2010  with SP1 and Silverlight 4 application.  What else can I provide you?</p>
<p>TIA</p>
<img src="http://feeds.feedburner.com/~r/codesomniaComments/~4/5Q_rNBIoUYs" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://codesomnia.de/2011/mvvm-dialogs-with-caliburn-micro/comment-page-1/#comment-31</feedburner:origLink></item>
	<item>
		<title>Comment on MVVM Dialogs with Caliburn.Micro by Kevin</title>
		<link>http://feedproxy.google.com/~r/codesomniaComments/~3/8lBTtEKDILg/</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Fri, 24 Jun 2011 18:50:13 +0000</pubDate>
		<guid isPermaLink="false">http://codesomnia.de/?p=246#comment-30</guid>
		<description>Hey, 
I'm sorry but i can't reproduce the error myself. As far as i can see, the only point where the exception can come from is Line31 is in the DialogResult.cs. Maybe set a breakpoint there and see if it throws. If not, what system are you running?

Cheers</description>
		<content:encoded><![CDATA[<p>Hey,<br />
I&#8217;m sorry but i can&#8217;t reproduce the error myself. As far as i can see, the only point where the exception can come from is Line31 is in the DialogResult.cs. Maybe set a breakpoint there and see if it throws. If not, what system are you running?</p>
<p>Cheers</p>
<img src="http://feeds.feedburner.com/~r/codesomniaComments/~4/8lBTtEKDILg" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://codesomnia.de/2011/mvvm-dialogs-with-caliburn-micro/comment-page-1/#comment-30</feedburner:origLink></item>
	<item>
		<title>Comment on MVVM Dialogs with Caliburn.Micro by Kevin</title>
		<link>http://feedproxy.google.com/~r/codesomniaComments/~3/Mfp6Cl62-Ys/</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Fri, 24 Jun 2011 18:46:58 +0000</pubDate>
		<guid isPermaLink="false">http://codesomnia.de/?p=246#comment-29</guid>
		<description>the dynamic.cs is from Microsoft, so as long as it works i don't intend to change anything in it.  The dependency is because of the busy indicator which isn't part of the standard lib (sadly). I could write my own, but I sadly can't spare time for it at the moment.</description>
		<content:encoded><![CDATA[<p>the dynamic.cs is from Microsoft, so as long as it works i don&#8217;t intend to change anything in it.  The dependency is because of the busy indicator which isn&#8217;t part of the standard lib (sadly). I could write my own, but I sadly can&#8217;t spare time for it at the moment.</p>
<img src="http://feeds.feedburner.com/~r/codesomniaComments/~4/Mfp6Cl62-Ys" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://codesomnia.de/2011/mvvm-dialogs-with-caliburn-micro/comment-page-1/#comment-29</feedburner:origLink></item>
	<item>
		<title>Comment on MVVM Dialogs with Caliburn.Micro by LowTide76</title>
		<link>http://feedproxy.google.com/~r/codesomniaComments/~3/q6Jc4N2dRfE/</link>
		<dc:creator>LowTide76</dc:creator>
		<pubDate>Fri, 24 Jun 2011 18:28:33 +0000</pubDate>
		<guid isPermaLink="false">http://codesomnia.de/?p=246#comment-28</guid>
		<description>Hello,

I downloaded the code and compiled and tested it out using the CMContrib.SL.Demo project and that compiles with no errors.   When I run the sample in I never get an error, but the dialog is never shown either.  I added the source project and debugged it, basically it is all good until the line "yield return warning.AsResult();" then it just exits Foo with this showing in the output windows "A first chance exception of type 'System.NullReferenceException' occurred in Caliburn.Micro.Contrib"

I can't seem to track down what the issue is.  I have tried it with CM 1.0 and CM 1.1.  Any ideas?

&lt;code&gt;var warning = new Warning("abc", Answer.Retry, Answer.Ignore);

            yield return warning.AsResult();

            Response = warning.GivenResponse;&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I downloaded the code and compiled and tested it out using the CMContrib.SL.Demo project and that compiles with no errors.   When I run the sample in I never get an error, but the dialog is never shown either.  I added the source project and debugged it, basically it is all good until the line &#8220;yield return warning.AsResult();&#8221; then it just exits Foo with this showing in the output windows &#8220;A first chance exception of type &#8216;System.NullReferenceException&#8217; occurred in Caliburn.Micro.Contrib&#8221;</p>
<p>I can&#8217;t seem to track down what the issue is.  I have tried it with CM 1.0 and CM 1.1.  Any ideas?</p>
<p><code>var warning = new Warning("abc", Answer.Retry, Answer.Ignore);</p>
<p>            yield return warning.AsResult();</p>
<p>            Response = warning.GivenResponse;</code></p>
<img src="http://feeds.feedburner.com/~r/codesomniaComments/~4/q6Jc4N2dRfE" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://codesomnia.de/2011/mvvm-dialogs-with-caliburn-micro/comment-page-1/#comment-28</feedburner:origLink></item>
	<item>
		<title>Comment on MVVM Dialogs with Caliburn.Micro by Kevin</title>
		<link>http://feedproxy.google.com/~r/codesomniaComments/~3/iSZ0UQwsnwI/</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Thu, 23 Jun 2011 20:17:19 +0000</pubDate>
		<guid isPermaLink="false">http://codesomnia.de/?p=246#comment-27</guid>
		<description>there is already a version for SL and WPF</description>
		<content:encoded><![CDATA[<p>there is already a version for SL and WPF</p>
<img src="http://feeds.feedburner.com/~r/codesomniaComments/~4/iSZ0UQwsnwI" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://codesomnia.de/2011/mvvm-dialogs-with-caliburn-micro/comment-page-1/#comment-27</feedburner:origLink></item>
</channel>
</rss>

