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

Improve Load Performance

In order to achieve optimal load performance with RadFileDialogs controls, you should be familiar with the following performance tips:

  • Whenever possible, you should use a single instance of a dialog for multiple openings. This will reduce the opening time for every open after the initial one.

  • Using the No XAML binaries along with implicit styles as a styling mechanism will improve the loading time of the dialogs compared to using the StyleManager.

  • Setting the ExpandToCurrentDirectory to False will improve the loading time.

  • Setting an InitialDirectory that has fewer directories and files will reduce the loading time.

  • When developing an application that contains RadFileDialogs, run it in Release mode, instead of in Debug mode. This way you will avoid the caught exceptions while traversing the file system, which will improve performance.

  • Setting the LoadDrivesInBackground property to true will force the file dialogs to load all drives in a background thread. This will improve the loading time of the controls.

  • Disabling the animations in the dialogs also leads to better performance. This can be done via the attached AnimationManager.IsAnimationEnabled property:

    Example 1: Disable animations in the file dialogs

        AnimationManager.SetIsAnimationEnabled(fileDialog, false); 
  • Due to the UI virtualization feature of the dialogs, the fewer elements which are loaded in the view, the faster the load time of the dialogs. Thus, you can reduce the default size of the dialogs or use a layout type which renders fewer items in the view (LargeIcons or Tiles, for example) to improve performance.

See Also

In this article