ASP.NET Core MVC Controls | ComponentOne
C1.Web.Mvc Namespace / Popup Class / Modal Property






In This Topic
    Modal Property (Popup)
    In This Topic
    Gets or sets a value that determines whether the Popup should be displayed as a modal dialog.
    Syntax
    'Declaration
     
    
    Public Property Modal As System.Boolean
    'Usage
     
    
    Dim instance As Popup
    Dim value As System.Boolean
     
    instance.Modal = value
     
    value = instance.Modal
    public System.bool Modal {get; set;}
    public read-write property Modal: System.Boolean; 
    public function get,set Modal : System.boolean
    public: __property System.bool get_Modal();
    public: __property void set_Modal( 
       System.bool value
    );
    public:
    property System.bool Modal {
       System.bool get();
       void set (    System.bool value);
    }
    Remarks
    Modal dialogs show a dark backdrop that makes the Popup stand out from other content on the page.If you want to make a dialog truly modal, also set the HideTrigger property to None, so users won't be able to click the backdrop to dismiss the dialog. In this case, the dialog will close only if the close method is called or if the user presses the Escape key.
    See Also