﻿<?xml version="1.0" encoding="utf-8"?><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:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - ClientUI - UXDialogBox object reference not set</title><link>http://www.intersoftsolutions.com/Community/ClientUI/UXDialogBox-object-reference-not-set/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>UXDialogBox object reference not set</title><link>http://www.intersoftsolutions.com/Community/ClientUI/UXDialogBox-object-reference-not-set/</link><pubDate>Thu, 27 Jun 2013 17:48:51 GMT</pubDate><dc:creator>DaveDeSmet</dc:creator><description>&lt;p&gt;Hi Handy,&lt;br /&gt;&lt;br /&gt;Perhaps I'm missing something, but the code I've for DialogBoxServiceProvider can't accept an argument of type UXDialog, only of type string.&lt;br /&gt;&lt;br /&gt;Can you please share the code you used for your sample?&lt;br /&gt;&lt;br /&gt;Btw, I'm using DialogBoxServiceProvider because I'm following MVVM pattern.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Edit:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Nevermind, I found out that you need to pass the full namespace of the viewType.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Thanks again,&lt;br /&gt;Dave&lt;br /&gt;&lt;/p&gt;
</description></item><item><title>UXDialogBox object reference not set</title><link>http://www.intersoftsolutions.com/Community/ClientUI/UXDialogBox-object-reference-not-set/</link><pubDate>Wed, 26 Jun 2013 22:45:38 GMT</pubDate><dc:creator>handysurya2303@gmail.com</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;Normally, if you want to show dialogbox, simply use your dialogbox object and call for show or showdialog method. However, since you are using DialogBoxServiceProvider, you need to use your current provider. Looking at your code, when you want to show DialogBox, it should be the same.&lt;/p&gt;
&lt;p&gt;Get the dialog object first, then pass it into your dialogservice provider.&lt;/p&gt;
&lt;p&gt;e.g&lt;/p&gt;&lt;pre&gt; DialogTest dlg1 = new DialogTest();
 DialogBoxServiceProvider.Show(dlg1, (dialogResult) =&amp;gt;
 {
        if (dialogResult == Intersoft.Client.Framework.DialogResult.OK)
        {
                                
        }
                            
});&lt;/pre&gt;
&lt;p&gt;Also, please remove IsClientVisible property in your UXDialogBox. In your case, you still don't need it.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>UXDialogBox object reference not set</title><link>http://www.intersoftsolutions.com/Community/ClientUI/UXDialogBox-object-reference-not-set/</link><pubDate>Wed, 26 Jun 2013 21:06:37 GMT</pubDate><dc:creator>DaveDeSmet</dc:creator><description>&lt;p&gt;Good day,&lt;/p&gt;
&lt;p&gt;I'm trying to use a custom UXDialogBox, taking code from the documentation. But I'm not able to show the dialog, since I'm getting a NullReferenceException at runtime.&lt;/p&gt;
&lt;p&gt;I'm also getting the object reference not set to an instance of an object when in XAML and Design mode in Visual Studio, however, it does compiles.&lt;/p&gt;
&lt;p&gt;I've attached the screenshot and a small sample project for further reference.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Edit:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Removing IsClientVisible="True" from the xaml fixes the object reference not set in Design mode.&lt;/p&gt;
&lt;p&gt;Still the NullReferenceException at runtime is thrown.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks in advance!&lt;br /&gt;&lt;/p&gt;
</description></item></channel></rss>