jp2masa - Movere.FileDialogs 0.2.1-build2.389+170b214

Movere is an implementation of managed dialogs for Avalonia.

PM> Install-Package Movere.FileDialogs -Version 0.2.1-build2.389 -Source https://www.myget.org/F/jp2masa/api/v3/index.json

Copy to clipboard

> nuget.exe install Movere.FileDialogs -Version 0.2.1-build2.389 -Source https://www.myget.org/F/jp2masa/api/v3/index.json

Copy to clipboard

> dotnet add package Movere.FileDialogs --version 0.2.1-build2.389 --source https://www.myget.org/F/jp2masa/api/v3/index.json

Copy to clipboard
<PackageReference Include="Movere.FileDialogs" Version="0.2.1-build2.389" />
Copy to clipboard
source https://www.myget.org/F/jp2masa/api/v3/index.json

nuget Movere.FileDialogs  ~> 0.2.1-build2.389
Copy to clipboard

> choco install Movere.FileDialogs --version 0.2.1-build2.389 --source https://www.myget.org/F/jp2masa/api/v2

Copy to clipboard
Import-Module PowerShellGet
Register-PSRepository -Name "jp2masa" -SourceLocation "https://www.myget.org/F/jp2masa/api/v2"
Install-Module -Name "Movere.FileDialogs" -RequiredVersion "0.2.1-build2.389" -Repository "jp2masa" -AllowPreRelease
Copy to clipboard

Build Status

Package NuGet MyGet
Movere NuGet MyGet
Movere.FileDialogs NuGet MyGet
Movere.Win32 NuGet MyGet

Movere

Movere

Movere is an implementation of managed dialogs for Avalonia. Currently there are message dialogs, as well as open and save file dialogs, and a print dialog (based on System.Drawing.Printing) is WIP.

Getting Started

Registering file dialogs with Avalonia

To use Avalonia storage provider APIs, it's possible to simply register Movere dialogs with AppBuilder:

  1. Import Movere namespace:
using Movere;
  1. Add UseMovereStorageProvider to AppBuilder configuration. Example:
AppBuilder.Configure<App>()
    .UsePlatformDetect()
    .UseMovereStorageProvider();
  1. Then use Avalonia system dialog APIs. Example:
var options = new FilePickerOpenOptions()
{
    ...
};

var result = parent.StorageProvider.OpenFilePickerAsync(options);

(Deprecated) System Dialog APIs

If using the old system dialogs APIs, the AppBuilder extension method is UseMovereSystemDialogs and an example is:

var dialog = new OpenFileDialog();
var result = await dialog.ShowAsync(parent);

Using dialog hosts

To simply use the dialogs (this example is for message dialogs, but it's similar for others):

  1. Create a dialog host for the owner:
var dialogHost = new WindowDialogHost(owner);
// OR
var dialogHost = new OverlayDialogHost(owner);
  1. Pass the host to the view model:
window.DataContext = new ViewModel(dialogHost);
  1. Show dialog from the view model when you need to:
private Task ShowInfoAsync() =>
    _dialogHost
        .ShowMessageDialog(
            new MessageDialogOptions((LocalizedString)"Message Dialog", "Some info")
            {
                Icon = AvaloniaDialogIcon.Info,
                DialogResults = DialogResultSet.OK
            }
        );

Available icons are:

  • DialogIcon.None
  • AvaloniaDialogIcon.Info
  • AvaloniaDialogIcon.Warning
  • AvaloniaDialogIcon.Error

To add your own icon, just call AvaloniaDialogIcon.TryCreate, passing the resource string, e.g avares://My.App/Resources/Icons/MyIcon.png.

Dialog results are extensible as well, and support localization.

Roadmap

  • Maybe separate file explorer view into separate project.
  • Improve styles for dialogs.
  • Add tests.
  • Print dialog.
  • Eventually move file explorer logic to a separate project and create a file explorer application.

Credits

Icons

flaticon.com

The project logo is from linea.io.

  • .NETFramework 8.0
    • Movere (>= 0.2.1-build2.389)
  • .NETStandard 2.0
    • Movere (>= 0.2.1-build2.389)
    • System.Collections.Immutable (>= 10.0.1)
  • .NETFramework 8.0: 8.0.0.0
  • .NETStandard 2.0: 2.0.0.0

Owners

jp2masa

Authors

jp2masa

Project URL

http://github.com/jp2masa/Movere

License

Unknown

Tags

movere avalonia dialogs dotnet core csharp vb visual basic fsharp

Info

0 total downloads
0 downloads for version 0.2.1-build2.389+170b214
Download (235.3 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
0.2.1-build2.389+170b214 235.3 KB Mon, 05 Jan 2026 03:27:21 GMT 0
0.2.1-build2.388+2a70080 235.15 KB Mon, 05 Jan 2026 03:16:14 GMT 0
0.2.1-build2.387+9d4cd76 235.3 KB Mon, 05 Jan 2026 02:54:21 GMT 0
0.2.1-build2.386+ca26a55 235 KB Mon, 05 Jan 2026 02:32:46 GMT 0