iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Good day,
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.
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.
I've attached the screenshot and a small sample project for further reference.
Edit:
Removing IsClientVisible="True" from the xaml fixes the object reference not set in Design mode.
Still the NullReferenceException at runtime is thrown.
Thanks in advance!
Hi Handy,Perhaps I'm missing something, but the code I've for DialogBoxServiceProvider can't accept an argument of type UXDialog, only of type string.Can you please share the code you used for your sample?Btw, I'm using DialogBoxServiceProvider because I'm following MVVM pattern.
Nevermind, I found out that you need to pass the full namespace of the viewType.
Thanks again,Dave
Hello,
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.
Get the dialog object first, then pass it into your dialogservice provider.
e.g
DialogTest dlg1 = new DialogTest(); DialogBoxServiceProvider.Show(dlg1, (dialogResult) => { if (dialogResult == Intersoft.Client.Framework.DialogResult.OK) { } });
Also, please remove IsClientVisible property in your UXDialogBox. In your case, you still don't need it.Regards,Handy
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname