New to Telerik UI for WPF? Download free 30-day trial

Events

RadFilePathPicker inherits the Control class. In addition to the events that it inherits, the control exposes the following ones:

  • FilePathChanging: Occurs when a new file path is about to be selected. The event handler receives two arguments:

    • The sender argument contains the RadFilePathPicker. This argument is of type object, but can be cast to the RadFilePathPicker type.

    • A FilePathChangingEventArgs object. It exposes a Cancel boolean property, which allows for canceling the change and a FilePath property holding the new FilePath.

  • FilePathChanged: Occurs when a new valid file path is selected via file browser, via typing or via programmatic change of the property. The event handler receives two arguments:

    • The sender argument contains the RadFilePathPicker. This argument is of type object, but can be cast to the RadFilePathPicker type.

    • A FilePathChangedEventArgs object. It exposes a FilePath property holding the new FilePath.

A programmatic change of the FilePath property does not trigger the FilePathChanging event, however it triggers the FilePathChanged event. A programmatic change of the Text property triggers both the FilePathChanging and the FilePathChanged events.

  • DialogOpening: Occurs when the file dialog is about to be opened. The event handler receives two arguments:

    • The sender argument contains the RadFilePathPicker. This argument is of type object, but can be cast to the RadFilePathPicker type.

    • A DialogOpeningEventArgs object. It exposes a Cancel boolean property, which allows for canceling the opening and a Dialog property, which allows you to get the dialog instance.

  • DialogClosed: Occurs when the file dialog is closed. The event handler receives two arguments:

    • The sender argument contains the RadFilePathPicker. This argument is of type object, but can be cast to the RadFilePathPicker type.

    • A WindowClosedEventArgs object.

See Also

In this article