DialogClosedCallback Delegate
Specifies the method that is invoked when a Windows Media Center dialog box is closed.
Syntax
public delegate void DialogClosedCallback(
DialogResult dialogResult
);
Parameters
dialogResult
Microsoft.MediaCenter.DialogResult. A member of the DialogResult enumeration that indicates how the dialog box was dismissed.
Remarks
You can use custom buttons in a dialog box. Windows Media Center assigns integer values to custom buttons; the first custom button has a value of 100, the second has a value of 101, and so on. When the user clicks a custom button, the event handler receives an integer value greater than or equal to 100, and the parameter to your callback will be an invalid DialogResult value. To determine which button was pressed, cast the parameter value to int.
Return Value
This method does not return a value.
Requirements
Reference: Microsoft.MediaCenter
Namespace: Microsoft.MediaCenter
Assembly: Microsoft.MediaCenter.dll
Platform: Windows Vista Ultimate, Windows Vista Home Premium, and later
See Also