New to Telerik UI for WPFStart a free 30-day trial

Represents a dialog that allows user selection of filename for file to be saved.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.FileDialogs.dll

Syntax:

C#
[TelerikToolboxCategory("File Dialogs")]
public class RadSaveFileDialog : DialogWindowBase, INotifyLayoutChange, IDragAware, IFileExtensionFilterable

Inheritance: objectWindowBaseDialogWindowBaseRadSaveFileDialog

Implements: IDragAwareIFileExtensionFilterableINotifyLayoutChange

Inherited Members DialogWindowBase.ResponseButtonPropertyDialogWindowBase.DialogResultPropertyDialogWindowBase.BorderBackgroundPropertyDialogWindowBase.IconPropertyDialogWindowBase.IconTemplatePropertyDialogWindowBase.DialogStartupLocationPropertyDialogWindowBase.IsDragDropEnabledPropertyDialogWindowBase.DragDropBehaviorPropertyDialogWindowBase.ExpandToCurrentDirectoryPropertyDialogWindowBase.ShowHiddenFilesPropertyDialogWindowBase.LoadDrivesInBackgroundPropertyDialogWindowBase.CanUserRenamePropertyDialogWindowBase.GetParentDialogWindow(DependencyObject)DialogWindowBase.GetResponseButton(DependencyObject)DialogWindowBase.SetResponseButton(DependencyObject, ResponseButton)DialogWindowBase.OnApplyTemplate()DialogWindowBase.ShowDialog()DialogWindowBase.ShouldFocusOnActivate()DialogWindowBase.OpenFileInternal(FileMode, FileAccess)DialogWindowBase.ChangeVisualState(bool)DialogWindowBase.GetDialogViewModelCustomPlaces()DialogWindowBase.GetDialogViewModelInitialDirectory()DialogWindowBase.GetWindowOwnerHandle()DialogWindowBase.OnPreviewClosed(WindowPreviewClosedEventArgs)DialogWindowBase.OnClosed(WindowClosedEventArgs)DialogWindowBase.SaveStateOnAccept()DialogWindowBase.OnGotFocus(RoutedEventArgs)DialogWindowBase.OnLostFocus(RoutedEventArgs)DialogWindowBase.OnKeyDown(KeyEventArgs)DialogWindowBase.OnClosing()DialogWindowBase.OnPreviewClosed()DialogWindowBase.GetWindowOwner()DialogWindowBase.GetWindowStartupLocation()DialogWindowBase.OnClosed()DialogWindowBase.FileNameDialogWindowBase.ShowNetworkLocationsDialogWindowBase.LoadDrivesInBackgroundDialogWindowBase.InitialDirectoryDialogWindowBase.RestoreDirectoryDialogWindowBase.CustomPlacesDialogWindowBase.DialogResultDialogWindowBase.BorderBackgroundDialogWindowBase.IconDialogWindowBase.IconTemplateDialogWindowBase.DialogStartupLocationDialogWindowBase.IsDragDropEnabledDialogWindowBase.DragDropBehaviorDialogWindowBase.ExpandToCurrentDirectoryDialogWindowBase.ShowHiddenFilesDialogWindowBase.CanUserRenameDialogWindowBase.InitialSelectedLayoutDialogWindowBase.FileSystemInfoWrapperFactoryDialogWindowBase.ClosedDialogWindowBase.PreviewClosedDialogWindowBase.ExceptionRaisedDialogWindowBase.DirectoryRequestingDialogWindowBase.DirectoryNavigatingDialogWindowBase.ShellContextMenuOpeningDialogWindowBase.RenamingWindowBase.IsModalPropertyWindowBase.IsOpenPropertyWindowBase.IsResizingPropertyWindowBase.IsDraggingPropertyWindowBase.IsActiveWindowPropertyWindowBase.IsInActiveStatePropertyWindowBase.IsTopmostPropertyWindowBase.CaptionHeightPropertyWindowBase.ResizeBorderPropertyWindowBase.LeftPropertyWindowBase.TopPropertyWindowBase.WindowStatePropertyWindowBase.ResizeModePropertyWindowBase.CanClosePropertyWindowBase.CanMovePropertyWindowBase.SizeToContentPropertyWindowBase.HideMinimizeButtonPropertyWindowBase.HideMaximizeButtonPropertyWindowBase.CornerRadiusPropertyWindowBase.Close()WindowBase.GetZIndex()WindowBase.BringToFront()WindowBase.GetNormalSizeAndPosition()WindowBase.ShouldActivateOnShow()WindowBase.ShouldShowInTaskSwitcher()WindowBase.ShouldActivate()WindowBase.ChangeVisualState()WindowBase.ShowWindow(bool)WindowBase.CheckCanClose()WindowBase.OnLayoutChangeEnded(EventArgs)WindowBase.OnLocationChanged(EventArgs)WindowBase.OnLayoutChangeStarted(EventArgs)WindowBase.OnWindowStateChanged(EventArgs)WindowBase.OnHostCreated(HostWindowCreatedEventArgs)WindowBase.OnGotKeyboardFocus(KeyboardFocusChangedEventArgs)WindowBase.GetApplicationSize()WindowBase.OnLayoutChangeEnded()WindowBase.OnLayoutChangeStarted()WindowBase.CloseWithoutEventsAndAnimations()WindowBase.OnCloseAnimationFinished()WindowBase.OnShowAnimationFinished()WindowBase.OnRightMouseButtonUp()WindowBase.OnRootVisualSizeChanged()WindowBase.OnDragStart(Point, bool)WindowBase.OnDragEnd(Point, bool, bool)WindowBase.OnDragDelta(Point, Rect, Rect, bool)WindowBase.OnActivated(EventArgs)WindowBase.OnDeactivated(EventArgs)WindowBase.ShouldSystemMenuOnRightClick()WindowBase.IsModalWindowBase.IsOpenWindowBase.IsTopmostWindowBase.CaptionHeightWindowBase.ResizeBorderWindowBase.LeftWindowBase.TopWindowBase.IsResizingWindowBase.IsDraggingWindowBase.IsLayoutChangingWindowBase.WindowStateWindowBase.ResizeModeWindowBase.CanCloseWindowBase.CanMoveWindowBase.IsActiveWindowWindowBase.IsInActiveStateWindowBase.CornerRadiusWindowBase.SizeToContentWindowBase.HideMaximizeButtonWindowBase.HideMinimizeButtonWindowBase.OwnerWindowBase.ActivatedWindowBase.DeactivatedWindowBase.LayoutChangeEndedWindowBase.LayoutChangeStartedWindowBase.LocationChangedWindowBase.WindowStateChanged...

Constructors

Initializes a new instance of the RadSaveFileDialog class.

C#
public RadSaveFileDialog()

Properties

Gets or sets a value that specifies the default extension string to use to filter the list of files that are displayed.

C#
public string DefaultExt { get; set; }

Implements: IFileExtensionFilterable.DefaultExt

Gets or sets the filter string that describes the list of extensions to filter by.

C#
public string Filter { get; set; }

Implements: IFileExtensionFilterable.Filter

Gets or sets the currently selected extension filter from the extensions described in the Filter property. The index value of the first filter entry is 1.

C#
public int FilterIndex { get; set; }

Implements: IFileExtensionFilterable.FilterIndex

Methods

Create the automation peer for this class.

C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

Overrides: DialogWindowBase.OnCreateAutomationPeer()

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

Creates a read-write file stream for the filename selected by the user using RadSaveFileDialog" />.

C#
[SecurityCritical]
public Stream OpenFile()
Returns:

Stream

A new Stream that contains the selected file.

Exceptions:

ArgumentNullException

Selected file is null.

ArgumentException

Selected file is empty string, contains only white space, contains one or more invalid characters, or refers to a non-file device.

NotSupportedException

Selected file refers to a non-file device.

Selected file cannot be found, such as when mode is FileMode.Truncate or FileMode.Open, and the file specified by path does not exist. The file must already exist in these modes.

An I/O error occurred or the stream has been closed.

The caller does not have the required permission.

Selected file is invalid, such as being on an unmapped drive.

UnauthorizedAccessException

The access requested is not permitted by the operating system for the specified path, such as when access is Write or ReadWrite and the file or directory is set for read-only access.

The specified path, file name, or both exceed the system-defined maximum length. For example, on Windows-based platforms, paths must be less than 248 characters, and file names must be less than 260 characters.

ArgumentOutOfRangeException

The specified mode contains an invalid value.

Resets the theme.

C#
public void ResetTheme()