# Events

**RadFilePathPicker** inherits the [Control](https://docs.microsoft.com/en-us/dotnet/api/system.windows.controls.control?view=netframework-4.8) 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.

> important 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

* [Getting Started](https://www.telerik.com/products/wpf/documentation/controls/radfilepathpicker/getting-started)
* [Dialog Types](https://www.telerik.com/products/wpf/documentation/controls/radfilepathpicker/features/dialog-types)
