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
Hi
need help trying to pop up dialog box (VB) - error in method below (taken from DialogBoxServiceProvider)
Public Shared Sub Show(ByVal modalWindow As IModalWindow, ByVal resultCallback As Action(Of DialogResult))
Dim element As FrameworkElement = DirectCast(ISFocusManager.GetFocusedElement(), FrameworkElement)
Dim owner As IWindow = Nothing
If Not IsNothing(element) Then
Dim logicalContainer As DependencyObject = ISFocusManager.GetLogicalContainerScope(element)
If (TypeOf logicalContainer Is IWindow) Then
owner = DirectCast(logicalContainer, IWindow)
End If
modalWindow.ShowDialog(owner, resultCallback)
End Sub
I get an error that 'owner' is nothing on this line below (which it is)....
But in c# sample code below (MVVM example) does not cause the same error..
IWindow owner = null;
Any ideas, thanks
Richard
Do you mind providing a sample of your scenario? Testing the issue in a simple scenario to show UXDialogBox object using DialogBoxServiceProvider, I could not procude any error. Here is the snippet:
Private Sub UXPage_Loaded(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles MyBase.Loaded DialogBoxServiceProvider.Show(New UXDialogBox1(), Nothing) End Sub
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