Back to Devexpress

DXCommonDialog.HelpRequest Event

wpf-devexpress-dot-xpf-dot-dialogs-dot-dxcommondialog.md

latest3.3 KB
Original Source

DXCommonDialog.HelpRequest Event

Occurs when the user clicks the Help button on a file dialog and allows you to provide a help link or cancel opening help resources.

Namespace : DevExpress.Xpf.Dialogs

Assembly : DevExpress.Xpf.Dialogs.v25.2.dll

NuGet Package : DevExpress.Wpf.Dialogs

Declaration

csharp
public event HelpRequestEventHandler HelpRequest
vb
Public Event HelpRequest As HelpRequestEventHandler

Event Data

The HelpRequest event's data class is HelpRequestEventArgs. The following properties provide information specific to this event:

PropertyDescription
CancelGets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.
HelpLinkGets or sets a help link that is opened when an end-user clicks the help button.

Remarks

The HelpRequest event is raised when an end user presses the help button. The help button is available when the DXFileDialog.ShowHelp property is set to true.

Use the HelpRequest event to provide a help link for end users (using the HelpRequestEventArgs.HelpLink property) or cancel opening help resources.

Note

The provided link is opened using the Process.Start method.

The code sample below demonstrates how to provide a custom help link by handling the HelpRequest event.

csharp
private void button_Click(object sender, RoutedEventArgs e) {
    var fileDialog = new DXSaveFileDialog();
    fileDialog.Filter = "Image Files|*.BMP;*.JPG;*.GIF|All files|*.*";
    fileDialog.ShowHelp = true;
    fileDialog.HelpRequest += FileDialog_HelpRequest;
    fileDialog.ShowDialog();
}

private void FileDialog_HelpRequest(object sender, HelpRequestEventArgs e) {
    e.HelpLink = "https://docs.devexpress.com";
}
vb
Private Sub button_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
    Dim fileDialog = New DXSaveFileDialog()
    fileDialog.Filter = "Image Files|*.BMP;*.JPG;*.GIF|All files|*.*"
    fileDialog.ShowHelp = True
    fileDialog.HelpRequest += FileDialog_HelpRequest
    fileDialog.ShowDialog()
End Sub

Private Sub FileDialog_HelpRequest(ByVal sender As Object, ByVal e As HelpRequestEventArgs)
    e.HelpLink = "https://docs.devexpress.com"
End Sub

See Also

DXCommonDialog Class

DXCommonDialog Members

DevExpress.Xpf.Dialogs Namespace