IModalService Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Enables notification to a host application that a modal dialog is displayed.
public interface class IModalService
public interface IModalService
type IModalService = interface
Public Interface IModalService
Remarks
Some applications that host designers need to be notified when a modal dialog box has been invoked. Visual Studio is an example of such a host. The IModalService interface provides an interface to communicate the current modal status.
The Windows Workflow Designer calls the SetModalState method. When the isModal
parameter is set to true
, the host is notified that a modal dialog is displayed.
This is an optional service. If a host application does not care about the modal status, you need not use the service.
In the current implementation, if a Windows Presentation Foundation (WPF) message box (which is a modal dialog) is invoked, the SetModalState is not called. If the host application requires this information, another workaround must be created.
Methods
SetModalState(Boolean) |
Notifies the host application that a modal dialog is being displayed. |
Applies to
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για