All Questions
Tagged with modal-dialog wpf
175
questions
2
votes
2
answers
1k
views
How to handle dialogs following the MVVM design pattern
I'm using Material Design for WPF to show a dialog which receives some inputs from the user, and I would like to return a value when it's closed. Here is the sample code:
VM's method that opens the ...
0
votes
1
answer
324
views
Message box/dialog/pop-up approach in MVVM
I want to find a way to implement different forms of modals in MVVM WPF application. Like dialogs with returning results, message boxes or modal sub-windows with some controls inside.
Can you give me ...
-1
votes
1
answer
242
views
How do you bind an observable collection to a listview located in a modal/window?
I have a wpf application that I want to be able to launch a separate window in which I will have a listview bound to an observable collection. However I am unable to get the collection values to ...
4
votes
1
answer
3k
views
Opening child window in WPF MVVM pattern - correct solution?
I was struggling with opening new window in MVVM pattern without violating it's rules for a month. I have read I think every post here and watch every video about this, but as a amateur programmer I ...
0
votes
1
answer
266
views
Prism Library Dialog Service
The following sample never worked for me:
https://prismlibrary.com/docs/wpf/dialog-service.html
Where the dialogService comming from?
public MainWindowViewModel(IDialogService dialogService)
{
...
0
votes
0
answers
103
views
How to open a WPF modal window if a method taking more time
I am recently started to create a c# code to obtain the details or familiarize web-specific controls. In that code, I am having an XPath finding scenario, which may or may not take time based on the ...
0
votes
0
answers
55
views
Dialog box shown furtively when called at WPF application startup in App.xaml.cs
I've a problem when showing a dialog box in a WPF startup application in App.xaml.cs.
I'm checking if another instance is running then if yes, I display a dialog box to the end user to inform him. ...
1
vote
1
answer
2k
views
Change Owner of Prism DialogWindow
I have implemented the new IDialogService in WPF using MVVM. My dialogs are working fine, for the exception that when I have another window open in the foreground, the dialog will appear in the center ...
0
votes
0
answers
159
views
Modal dialog always misses first button tap after opening from double tap
I am displaying a modal dialog when the user double taps inside a TextBlock. Its a backdoor to a hidden settings panel. The TextBlock is contained in a Popup. I am finding that it is always necessary ...
0
votes
0
answers
658
views
CefSharp in a window opened with ShowDialog doen't work
In WPF, I use CefSharp for WinForm that runs in a WindowsFormsHost in a Window. Everything works like charm when I display the Window using Show(). But if I use ShowDialog(), CefSharp seems not to ...
1
vote
1
answer
2k
views
WPF MVVM - how to inject a service into the ViewModel
I'm fairly new to WPF and MVVM and I need to create a simple dialog feature that allows me to popup a confirmation message on the screen such as "Confirm delete?" with y/n buttons. I created a dialog ...
0
votes
0
answers
128
views
Prevent user interaction with modal dialog while automating UI?
I am automating a "save as" dialog through win32 API in a WPF project. The dialog is called internally from the IOleCommandTarget interface of InfoPath 2013. So I do not have access to how the save as ...
1
vote
0
answers
398
views
Disable minimize, maximize and close buttons of parent window when a modal dialog is shown on a WPF parent
I have a WPF parent window that opens a modal dialog with the ShowDialog method when a button is clicked on the view. The parent window is blocked as expected until interaction with the pop-up ends, ...
1
vote
0
answers
326
views
How can I hide a window WITHOUT Visibility property?
I have an application that has a lot of modal popup windows. Some are custom windows displayed with .ShowDialog(), other are generic message boxes using a 3rd party tool (DXMessageBox.Show(...)), and ...
1
vote
2
answers
1k
views
Blocking launch of WPF Dialog from a different thread
We want to create and launch a modal dialog box over the main window. This process is initiated from a different thread - for some reason. This different thread calls the execute method - and must be ...