All notable changes to this project will be documented in this file.
This project adheres to Semantic Versioning and is following the change log format.
- #263 Exception is thrown when used in a multiple Single Threaded Apartment (STA) application (contributed by @HeedfulCrayon)
- #221
DialogService.FindOwnerWindow
, a method that finds the window corresponding to specified a view model, has been added asprotected virtual
, allowing you to override its behavior (contributed by @RFBomb)
- NuGet package metadata
- Support for .NET 6
- [BREAKING CHANGE] Support for .NET Framework 3.5
- [BREAKING CHANGE] Support for .NET Framework 4.0 and .NET Framework 4.5 due to deprecation as of January 12, 2016
- [BREAKING CHANGE] Support for .NET Framework 4.5.2 due to deprecation as of April 26, 2022
- [BREAKING CHANGE] Support for .NET Core 3.1 in preparation for deprecation December 13, 2022
- [BREAKING CHANGE] Support for .NET 5 due to deprecation as of May 10, 2022
- [BREAKING CHANGE] Support for UWP due to problematic support in VS2022
- Support for .NET Core 3.1
- Support for .NET Core 5.0
- #116 [BREAKING CHANGE]
IDialogService.Close
returnsfalse
instead of throwing an exception when failing to close a dialog. This behavior aligns with the behavior ofIDialogService.Activate
.
- [BREAKING CHANGE] Support for .NET Core 3.0 due to deprecation as of March 3, 2020
- Specify dependency groups in nuspec for each supported framework version
- #122 Fix memory leak where
Window.Closed
events never where un-registered (discovered by @peter-durrant)
- Typo in exception message thrown when view isn't registered
- #91 Added the following settings for parity with the native Windows dialogs (proposed by @Kimmerest)
FolderBrowserDialogSettings
RootFolder
- The root folder where the browsing starts from
MessageBoxSettings
Options
- A value object that specifies the options
OpenFileDialogSettings
CustomPlaces
- The list of custom places for file dialog boxesDereferenceLinks
- A value indicating whether a file dialog returns either the location of the file referenced by a shortcut or the location of the shortcut file (.lnk)ReadOnlyChecked
- A value indicating whether the read-only check box displayed by the open file dialog is selectedSafeFileName
- A string that only contains the file name for the selected fileSafeFileNames
- An array that contains one safe file name for each selected fileShowReadOnly
- A value indicating whether the open file dialog contains a read-only check boxValidateNames
- A value indicating whether the dialog accepts only valid Win32 file names
SaveFileDialogSettings
CustomPlaces
- The list of custom places for file dialog boxesDereferenceLinks
- A value indicating whether a file dialog returns either the location of the file referenced by a shortcut or the location of the shortcut file (.lnk)SafeFileName
- A string that only contains the file name for the selected fileSafeFileNames
- An array that contains one safe file name for each selected fileValidateNames
- A value indicating whether the dialog accepts only valid Win32 file names
- [BREAKING CHANGE] The default value of
SaveFileDialogSettings.CheckFileExists
has changed fromtrue
tofalse
, aligning it with the default value of the native WindowsSaveFileDialog
- #55 Support for .NET Core 3.0 (proposed by @virzak)
- #55 NuGet package supporting .NET 4.5.2, .NET 4.6.2 and .NET 4.7.2
- [BREAKING CHANGE] Adaptation to nullable references in C# 8.0 introduced breaking changes to the API
- Support for activating non-modal dialogs using
IDialogService.Activate
Logger.Writer
does not throw exception when being set tonull
(contributed by @MathewSachin)
- Overload
ShowMessageBox(INotifyPropertyChanged, MessageBoxSettings)
toIDialogService
- Extended support for MVVM Dialogs Contrib
- #30 Support for customizing the following Windows dialogs (contributed by @pdinnissen):
- Message box
- Open file dialog
- Save file dialog
- Folder browser dialog
- [BREAKING CHANGE] Reduce the constructors overloads in
DialogService
into:ctor()
- Default constructor that takes no argumentsctor(IDialogFactory?, IDialogTypeLocator?, IFrameworkDialogFactory?)
- Constructor that allows full customization
- Option to set filter index when opening or saving a file (contributed by @gigios)
- Improve exception message when dialog type locator fails
- #14 [BREAKING CHANGE] Support for showing custom WPF dialogs by implementing
IWindow
(proposed by @wakuflair) - Support for showing custom UWP content dialogs by implementing
IContentDialog
- [BREAKING CHANGE] Updated the constructors of
DialogService
, making the class more friendly to IoC containers
- #8 Support for Universal Windows Platform (UWP) (proposed by @MrWolfPST)
- Add
ViewNotRegisteredException
that is thrown byIDialogService
when view is unregistered
- Support for exposing logs using class
MvvmDialogs.Logging.Logger
- #3 Fixed issue where exception no longer is thrown when the property changed event for
IModalDialogViewModel.DialogResult
is sent twice (discovered by @igitur)
- NuGet icon URL
- Renamed
DialogServiceBehaviors
toDialogServiceViews
- Apache license
- NuGet package supporting .NET 3.5, .NET 4.0 and .NET 4.5
- Support for specifying a dialog factory used by
DialogService
, enabling inversion of control integration - Support for specifying a dialog type locator used by
DialogService
, enabling implementation of custom dialogs type locators DialogService
is referencing registered views using weak references, thus never preventing a view from being garbage collected- Pruning of view references that no longer are alive
- XML namespace prefix
- Strong name
- Issue where exception was thrown when the same view was registered twice, and one hadn't been garbage collected yet
Initial version