New to Telerik UI for WinForms? Start a free 30-day trial

Control used for the history navigation part of the RadOpenFileDialog, RadSaveFileDialog and RadOpenFolderDialog

Definition

Namespace:Telerik.WinControls.FileDialogs

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class HistoryNavigationPaneUserControl : UserControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl, IViewModelChangedListener

Inheritance: objectMarshalByRefObjectComponentControlScrollableControlContainerControlUserControlHistoryNavigationPaneUserControl...

Implements: IBindableComponentIComponentIContainerControlIDisposableIDropTargetISynchronizeInvokeIViewModelChangedListenerIWin32Window...

Constructors

Initializes a new instance of the HistoryNavigationPaneUserControl class.

C#
public HistoryNavigationPaneUserControl()

Properties

Gets the button that navigates to the previously visited directory.

C#
public RadButton BackButton { get; }

Gets or sets the collection of selected DirectoryInfoWrapper.

C#
public ObservableCollection<DirectoryBaseWrapper> DirectoryHistory { get; set; }

Gets the button that returns to a directory revisited with the Back button.

C#
public RadButton ForwardButton { get; }

Gets the drop-down button that lists directories in the navigation history.

C#
public RadDropDownButton RecentLocationsDropDownButton { get; }

Gets the button that navigates to the current directory's parent.

C#
public RadButton UpButton { get; }

Methods

Clean up any resources being used.

C#
protected override void Dispose(bool disposing)
Parameters:disposingbool

true if managed resources should be disposed; otherwise, false.

Overrides: ContainerControl.Dispose(bool)

Initializes recent-location drop-down handling and enables navigation buttons according to the available history.

C#
protected override void OnLoad(EventArgs e)
Parameters:eEventArgs

The load event data.

Overrides: UserControl.OnLoad(EventArgs)

Applies or removes theme overrides that hide the arrow drop-down button's fill and borders.

C#
protected virtual void SetArrowButtonBorderAndFillVisibility(RadDropDownButton dropDownButton, bool hide)
Parameters:dropDownButtonRadDropDownButton

The drop-down button to update.

hidebool

true to apply transparent fill and border overrides.

Applies or removes theme overrides that hide a navigation button's fill and border.

C#
protected virtual void SetButtonBorderAndFillVisibility(RadButton button, bool hide)
Parameters:buttonRadButton

The button to update.

hidebool

true to apply transparent fill and border overrides.

Sizes and positions the four navigation controls using a common button size.

C#
protected virtual Size SetButtonSizes(Size size)
Parameters:sizeSize

The requested size of each navigation control.

Returns:

Size

The size required by the navigation panel, including its horizontal margins.

Applies theme-dependent navigation glyph sizes and optionally hides button borders and fills.

C#
protected virtual void SetupControlsForTheme(string themeName, bool hideBorderAndFill)
Parameters:themeNamestring

The theme used to select glyph sizing.

hideBorderAndFillbool

true to make the button borders and fills transparent.

Connects the pane to a dialog view model and seeds an empty directory-history collection with its current directory.

C#
public void SetViewModel(DialogViewModel viewModel)
Parameters:viewModelDialogViewModel

The dialog view model that supplies navigation state.

Implements: IViewModelChangedListener.SetViewModel(DialogViewModel)