Class DialogSession
Allows an open dialog to be managed. Use is only permitted during a single display operation.
public class DialogSession
- Inheritance
-
DialogSession
- Inherited Members
- Extension Methods
Properties
Content
Gets the DialogContent which is currently displayed, so this could be a view model or a UI element.
public object Content { get; }
Property Value
IsEnded
Indicates if the dialog session has ended. Once ended no further method calls will be permitted.
public bool IsEnded { get; }
Property Value
Remarks
Client code cannot set this directly, this is internally managed. To end the dicalog session use Close().
Methods
Close()
Closes the dialog.
public void Close()
Exceptions
- InvalidOperationException
Thrown if the dialog session has ended, or a close operation is currently in progress.
Close(object)
Closes the dialog.
public void Close(object parameter)
Parameters
parameter
objectResult parameter which will be returned in Parameter or from Show(object) method.
Exceptions
- InvalidOperationException
Thrown if the dialog session has ended, or a close operation is currently in progress.
UpdateContent(object)
Update the currrent content in the dialog.
public void UpdateContent(object content)
Parameters
content
object