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
I am using the DialogBoxServiceProvider in my Wpf application. In the CloseCurrentWindow() method, the code is as follows:
FrameworkElementelement=ISFocusManager.GetFocusedElement()asFrameworkElement; IWindowwindow=UXWindow.GetWindowHost(element); if(window!=null) window.Close();
When the user clicks the Save button on the dialog box, the save button is the GetFocusedElement and the dialog box successfully closes. I have a Close Batch button which is a UXToolBarButton in a UXToolGroup on a UXToolBar. When the user clicks the Close Batch, the code calls the DialogBoxServiceProvider.CloseCurrentWindow() method. The application crashes because GetFocusElement returns null. Why is a button on the UXDialogBox recognized as a FrameworkElement, but the button on the toolbar is not. Is that a bug? If not, how do i get the button on the tool bar to be returned as a frameworkElement like the save button?
I created a simple sample of WPF project based on the description of the reported problem. However, I was unable to replicate the issue in our local end. Everything worked smoothly and closing the dialog box by clicking on the toolbar button was successful.
The sample project is enclosed as attachment. Please have the sample evaluated and let us hear your feedback.
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