Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
IModalDialog.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 namespace SiliconStudio.Presentation.Services
4 {
5  /// <summary>
6  /// An interface representing a modal dialog.
7  /// </summary>
8  public interface IModalDialog
9  {
10  /// <summary>
11  /// Display the modal dialog. This method will block until the user close the dialog.
12  /// </summary>
13  /// <returns>A <see cref="DialogResult"/> value indicating how the user closed the dialog.</returns>
14  DialogResult Show();
15 
16  /// <summary>
17  /// Gets or sets a data context for the modal dialog.
18  /// </summary>
19  object DataContext { get; set; }
20  }
21 }
An interface representing a modal dialog.
Definition: IModalDialog.cs:8
DialogResult
An enum representing the result of a dialog invocation.
Definition: DialogResult.cs:9