![]() |
VOOZH | about |
dotnet add package Mvvm.CommonInteractions.Core --version 1.0.68
NuGet\Install-Package Mvvm.CommonInteractions.Core -Version 1.0.68
<PackageReference Include="Mvvm.CommonInteractions.Core" Version="1.0.68" />
<PackageVersion Include="Mvvm.CommonInteractions.Core" Version="1.0.68" />Directory.Packages.props
<PackageReference Include="Mvvm.CommonInteractions.Core" />Project file
paket add Mvvm.CommonInteractions.Core --version 1.0.68
#r "nuget: Mvvm.CommonInteractions.Core, 1.0.68"
#:package Mvvm.CommonInteractions.Core@1.0.68
#addin nuget:?package=Mvvm.CommonInteractions.Core&version=1.0.68Install as a Cake Addin
#tool nuget:?package=Mvvm.CommonInteractions.Core&version=1.0.68Install as a Cake Tool
Common MVVM Level Interactions(like open/save file) for WPF/UWP/WinUI/Uno/Avalonia/Maui platforms. Features:
👁 NuGet
👁 NuGet
👁 NuGet
👁 NuGet
👁 NuGet
👁 NuGet
👁 NuGet
Install-Package Mvvm.CommonInteractions.Core
Install-Package Mvvm.CommonInteractions.Wpf
Install-Package Mvvm.CommonInteractions.Uno
Install-Package Mvvm.CommonInteractions.Uwp
Install-Package Mvvm.CommonInteractions.WinUI
Install-Package Mvvm.CommonInteractions.Avalonia
Install-Package Mvvm.CommonInteractions.Maui
Add to your App constructors:
public sealed partial class App
{
private IHost AppHost { get; }
public App()
{
AppHost = Host
.CreateDefaultBuilder()
.ConfigureServices(static services =>
{
// Add all available interactions
services.AddCommonInteractions();
// or add only what you need
services.AddSingleton<IFileInteractions, FileInteractions>();
services.AddSingleton<IMessageInteractions, MessageInteractions>();
services.AddSingleton<IWebInteractions, WebInteractions>();
})
.Build();
// Optional. Displays unhandled exceptions using MessageInteractions.Exception.
AppHost.Services.GetRequiredService<IMessageInteractions>().CatchUnhandledExceptions(this);
// your code
}
}
// Open
var file = await FileInteractions.OpenFileAsync(new OpenFileArguments
{
SuggestedFileName = "my.txt",
Extensions = new[] { ".txt" },
FilterName = "My txt files",
});
if (file == null)
{
return;
}
var text = await file.ReadTextAsync().ConfigureAwait(true);
// Save (if you need to save file from previuos step)
await file.WriteTextAsync(text).ConfigureAwait(false);
// Save As
var file = await FileInteractions.SaveFileAsync(new SaveFileArguments(".txt")
{
SuggestedFileName = "my.txt",
FilterName = "My txt files",
});
if (file == null)
{
return;
}
await file.WriteTextAsync(text).ConfigureAwait(false);
await MessageInteractions.ShowMessageAsync("Message");
await MessageInteractions.ShowWarningAsync("Warning");
await MessageInteractions.ShowExceptionAsync(new InvalidOperationException("Exception"));
bool question = await MessageInteractions.ShowQuestionAsync(new QuestionData("Are you sure?"));
WinUI requires a window to display the ContentDialog, so you'll need to set it explicitly in your App.OnLaunched:
protected override void OnLaunched(LaunchActivatedEventArgs args)
{
#if HAS_WINUI
var window = new Window();
MessageInteractions.Window = window;
#endif
}
await WebInteractions.OpenUrlAsync("https://www.google.com/");
// WPF
xmlns:dragAndDrop="clr-namespace:Mvvm.CommonInteractions;assembly=Mvvm.CommonInteractions.Wpf"
// UWP/Uno
xmlns:dragAndDrop="using:Mvvm.CommonInteractions"
<Element
AllowDrop="True"
dragAndDrop:DragAndDropExtensions.DragFilesEnterCommand="{Binding DragFilesEnter}"
dragAndDrop:DragAndDropExtensions.DragTextEnterCommand="{Binding DragTextEnter}"
dragAndDrop:DragAndDropExtensions.DragLeaveCommand="{Binding DragLeave}"
dragAndDrop:DragAndDropExtensions.DropFilesCommand="{Binding DropFiles}"
dragAndDrop:DragAndDropExtensions.DropTextCommand="{Binding DropText}"
>
Command arguments:
DragFilesEnterCommand - FileData[] - Array of files.
DragTextEnterCommand - string - Text.
DragLeaveCommand - null.
DropFilesCommand - FileData[] - Array of files.
DropTextCommand - string - Text.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 5 NuGet packages that depend on Mvvm.CommonInteractions.Core:
| Package | Downloads |
|---|---|
|
Mvvm.CommonInteractions.Uwp
Common MVVM Level Interactions(like open/save file) for WPF/UWP/WinUI/Uno/Avalonia platforms ⭐ Last 10 features: - feat: Updated to net8.0. 2023-12-18 - feat: Updated packages. 2023-08-19 - feat: Updated NuGet packages. 2023-02-27 - feat: Added MAUI partial support. 2023-02-27 - feat: Added net7 targets. 2023-01-06 - feat: Updated NuGet packages. 2023-01-06 - feat: Added HostBuilder extensions. 2023-01-06 - feat: Removed ReactiveUI dependency. 2022-08-22 - feat: To IsExternalInit package. 2022-08-22 - feat: Updated NuGet packages. 2022-08-11 🐞 Last 10 bug fixes: - fix: Fixed WebAssembly app. 2023-01-07 - fix: Fixed Uno projects. 2023-01-07 - fix: Fixed Avalonia dependencies. 2023-01-06 - fix: Fixed GetRequiredWindow exception message. 2022-08-22 - fix: To WinRT.Interop. 2022-07-14 - fix: Disabled linker. 2022-07-01 - fix: Fixed Uno targets. 2022-03-18 - fix: Fixed missing Warning ContentDialog. 2022-03-17 - fix(apps): Fixed Uno.WinUI webassembly app. 2022-01-19 - fix: Fixed package description. 2021-12-22 |
|
|
Mvvm.CommonInteractions.Avalonia
Common MVVM Level Interactions(like open/save file) for WPF/UWP/WinUI/Uno/Avalonia platforms ⭐ Last 10 features: - feat: Updated to net8.0. 2023-12-18 - feat: Updated packages. 2023-08-19 - feat: Updated NuGet packages. 2023-02-27 - feat: Added MAUI partial support. 2023-02-27 - feat: Added net7 targets. 2023-01-06 - feat: Updated NuGet packages. 2023-01-06 - feat: Added HostBuilder extensions. 2023-01-06 - feat: Removed ReactiveUI dependency. 2022-08-22 - feat: To IsExternalInit package. 2022-08-22 - feat: Updated NuGet packages. 2022-08-11 🐞 Last 10 bug fixes: - fix: Fixed WebAssembly app. 2023-01-07 - fix: Fixed Uno projects. 2023-01-07 - fix: Fixed Avalonia dependencies. 2023-01-06 - fix: Fixed GetRequiredWindow exception message. 2022-08-22 - fix: To WinRT.Interop. 2022-07-14 - fix: Disabled linker. 2022-07-01 - fix: Fixed Uno targets. 2022-03-18 - fix: Fixed missing Warning ContentDialog. 2022-03-17 - fix(apps): Fixed Uno.WinUI webassembly app. 2022-01-19 - fix: Fixed package description. 2021-12-22 |
|
|
Mvvm.CommonInteractions.Uno.WinUI
Common MVVM Level Interactions(like open/save file) for WPF/UWP/WinUI/Uno/Avalonia platforms ⭐ Last 10 features: - feat: Updated to net8.0. 2023-12-18 - feat: Updated packages. 2023-08-19 - feat: Updated NuGet packages. 2023-02-27 - feat: Added MAUI partial support. 2023-02-27 - feat: Added net7 targets. 2023-01-06 - feat: Updated NuGet packages. 2023-01-06 - feat: Added HostBuilder extensions. 2023-01-06 - feat: Removed ReactiveUI dependency. 2022-08-22 - feat: To IsExternalInit package. 2022-08-22 - feat: Updated NuGet packages. 2022-08-11 🐞 Last 10 bug fixes: - fix: Fixed WebAssembly app. 2023-01-07 - fix: Fixed Uno projects. 2023-01-07 - fix: Fixed Avalonia dependencies. 2023-01-06 - fix: Fixed GetRequiredWindow exception message. 2022-08-22 - fix: To WinRT.Interop. 2022-07-14 - fix: Disabled linker. 2022-07-01 - fix: Fixed Uno targets. 2022-03-18 - fix: Fixed missing Warning ContentDialog. 2022-03-17 - fix(apps): Fixed Uno.WinUI webassembly app. 2022-01-19 - fix: Fixed package description. 2021-12-22 |
|
|
Mvvm.CommonInteractions.Wpf
Common MVVM Level Interactions(like open/save file) for WPF/UWP/WinUI/Uno/Avalonia platforms ⭐ Last 10 features: - feat: Updated to net8.0. 2023-12-18 - feat: Updated packages. 2023-08-19 - feat: Updated NuGet packages. 2023-02-27 - feat: Added MAUI partial support. 2023-02-27 - feat: Added net7 targets. 2023-01-06 - feat: Updated NuGet packages. 2023-01-06 - feat: Added HostBuilder extensions. 2023-01-06 - feat: Removed ReactiveUI dependency. 2022-08-22 - feat: To IsExternalInit package. 2022-08-22 - feat: Updated NuGet packages. 2022-08-11 🐞 Last 10 bug fixes: - fix: Fixed WebAssembly app. 2023-01-07 - fix: Fixed Uno projects. 2023-01-07 - fix: Fixed Avalonia dependencies. 2023-01-06 - fix: Fixed GetRequiredWindow exception message. 2022-08-22 - fix: To WinRT.Interop. 2022-07-14 - fix: Disabled linker. 2022-07-01 - fix: Fixed Uno targets. 2022-03-18 - fix: Fixed missing Warning ContentDialog. 2022-03-17 - fix(apps): Fixed Uno.WinUI webassembly app. 2022-01-19 - fix: Fixed package description. 2021-12-22 |
|
|
Mvvm.CommonInteractions.WinUI
Common MVVM Level Interactions(like open/save file) for WPF/UWP/WinUI/Uno/Avalonia platforms ⭐ Last 10 features: - feat: Updated to net8.0. 2023-12-18 - feat: Updated packages. 2023-08-19 - feat: Updated NuGet packages. 2023-02-27 - feat: Added MAUI partial support. 2023-02-27 - feat: Added net7 targets. 2023-01-06 - feat: Updated NuGet packages. 2023-01-06 - feat: Added HostBuilder extensions. 2023-01-06 - feat: Removed ReactiveUI dependency. 2022-08-22 - feat: To IsExternalInit package. 2022-08-22 - feat: Updated NuGet packages. 2022-08-11 🐞 Last 10 bug fixes: - fix: Fixed WebAssembly app. 2023-01-07 - fix: Fixed Uno projects. 2023-01-07 - fix: Fixed Avalonia dependencies. 2023-01-06 - fix: Fixed GetRequiredWindow exception message. 2022-08-22 - fix: To WinRT.Interop. 2022-07-14 - fix: Disabled linker. 2022-07-01 - fix: Fixed Uno targets. 2022-03-18 - fix: Fixed missing Warning ContentDialog. 2022-03-17 - fix(apps): Fixed Uno.WinUI webassembly app. 2022-01-19 - fix: Fixed package description. 2021-12-22 |
This package is not used by any popular GitHub repositories.
⭐ Last 10 features:
- feat: Updated to net8.0. 2023-12-18
- feat: Updated packages. 2023-08-19
- feat: Updated NuGet packages. 2023-02-27
- feat: Added MAUI partial support. 2023-02-27
- feat: Added net7 targets. 2023-01-06
- feat: Updated NuGet packages. 2023-01-06
- feat: Added HostBuilder extensions. 2023-01-06
- feat: Removed ReactiveUI dependency. 2022-08-22
- feat: To IsExternalInit package. 2022-08-22
- feat: Updated NuGet packages. 2022-08-11
🐞 Last 10 bug fixes:
- fix: Fixed WebAssembly app. 2023-01-07
- fix: Fixed Uno projects. 2023-01-07
- fix: Fixed Avalonia dependencies. 2023-01-06
- fix: Fixed GetRequiredWindow exception message. 2022-08-22
- fix: To WinRT.Interop. 2022-07-14
- fix: Disabled linker. 2022-07-01
- fix: Fixed Uno targets. 2022-03-18
- fix: Fixed missing Warning ContentDialog. 2022-03-17
- fix(apps): Fixed Uno.WinUI webassembly app. 2022-01-19
- fix: Fixed package description. 2021-12-22