System.Windows.Extensions 9.0.0-preview.5.24306.7

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
This is a prerelease version of System.Windows.Extensions.
dotnet add package System.Windows.Extensions --version 9.0.0-preview.5.24306.7
NuGet\Install-Package System.Windows.Extensions -Version 9.0.0-preview.5.24306.7
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="System.Windows.Extensions" Version="9.0.0-preview.5.24306.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add System.Windows.Extensions --version 9.0.0-preview.5.24306.7
#r "nuget: System.Windows.Extensions, 9.0.0-preview.5.24306.7"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install System.Windows.Extensions as a Cake Addin
#addin nuget:?package=System.Windows.Extensions&version=9.0.0-preview.5.24306.7&prerelease

// Install System.Windows.Extensions as a Cake Tool
#tool nuget:?package=System.Windows.Extensions&version=9.0.0-preview.5.24306.7&prerelease

About

Provides miscellaneous Windows-specific types.

This collection of types facilitates interactions with unique features provided by the Windows operating system, including playing sounds, selecting X509 certificates in a user-friendly manner, among other features.

Key Features

  • Controls playback of a sound from a .wav file.
  • Retrieves sounds associated with a set of Windows operating system sound-event types.
  • User-friendly handling of X509 certificates.

How to Use

Below are examples demonstrating the usage of the key types provided by this package.

Playing a .wav File

using System.Media;

SoundPlayer player = new SoundPlayer("sound.wav");
player.Play();

// Wait while the sound plays.
Console.ReadKey();

Playing a System Sound

using System.Media;

SystemSounds.Asterisk.Play();
SystemSounds.Beep.Play();
SystemSounds.Exclamation.Play();
SystemSounds.Hand.Play();
SystemSounds.Question.Play();

Displaying a Certificate Selection Dialog

using System.Security.Cryptography.X509Certificates;

X509Store store = new X509Store(StoreName.My);
store.Open(OpenFlags.ReadOnly);

X509Certificate2Collection selectedCerts = X509Certificate2UI.SelectFromCollection(
    store.Certificates,
    "Select Certificate",
    "Select a certificate from the following list:",
    X509SelectionFlag.SingleSelection
);
store.Close();

if (selectedCerts.Count == 0)
{
    Console.WriteLine("No certificate selected.");
}
else
{
    Console.WriteLine($"Certificate selected: {selectedCerts[0].Subject}");
}

Main Types

The main types provided by this library are:

  • System.Media.SoundPlayer
  • System.Media.SystemSounds
  • System.Security.Cryptography.X509Certificates.X509Certificate2UI
  • System.Xaml.Permissions.XamlAccessLevel

Additional Documentation

Feedback & Contributing

System.Windows.Extensions is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages (27)

Showing the top 5 NuGet packages that depend on System.Windows.Extensions:

Package Downloads
System.Security.Permissions The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Provides types supporting Code Access Security (CAS).

Microsoft.CodeAnalysis.Workspaces.MSBuild The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

.NET Compiler Platform ("Roslyn") support for analyzing MSBuild projects and solutions. This should be used with at least one of the following packages to add the appropriate language support: - Microsoft.CodeAnalysis.CSharp.Workspaces - Microsoft.CodeAnalysis.VisualBasic.Workspaces More details at https://aka.ms/roslyn-packages This package was built from the source at https://github.com/dotnet/roslyn/commit/2b7d172669b2f7e55803b55f317cfcc2d4279d76.

ReportViewerCore.NETCore

SQL Server Reporting Services engine decompiled and recompiled for .NET Core. Based on ReportViewer 15.0.1404.0

ReportViewerCore.WinForms

SQL Server Reporting Services ReportViewer WinForms control decompiled and recompiled for .NET Core. Based on ReportViewer 15.0.1404.0

Stimulsoft.Dashboards.Win The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Stimulsoft Dashboards.WIN is a set of components using which you can add analytics to your application. Dashboards are designed for both WinForms and WPF technologies. Data can be rendered using various widgets from tables and charts to arrow gauges. Stimulsoft Dashboards.WIN supports a variety of data sources such as SQL, CSV, JSON, and others. The product supports .NET and .NET Core frameworks.

GitHub repositories (14)

Showing the top 5 popular GitHub repositories that depend on System.Windows.Extensions:

Repository Stars
dotnet/wpf
WPF is a .NET Core UI framework for building Windows desktop applications.
dotnet/winforms
Windows Forms is a .NET UI framework for building Windows desktop applications.
NuGetPackageExplorer/NuGetPackageExplorer
Create, update and deploy Nuget Packages with a GUI
dotnet/dotnet-console-games
Game examples implemented as .NET console applications primarily for providing education and inspiration. :)
MicrosoftLearning/AI-102-AIEngineer
Lab files for AI-102 - AI Engineer
Version Downloads Last updated
9.0.0-preview.5.24306.7 1,514 6/11/2024
9.0.0-preview.4.24266.19 2,826 5/21/2024
9.0.0-preview.3.24172.9 4,071 4/11/2024
9.0.0-preview.2.24128.5 1,257 3/12/2024
9.0.0-preview.1.24080.9 6,642 2/13/2024
8.0.0 2,708,493 11/14/2023
8.0.0-rc.2.23479.6 19,930 10/10/2023
8.0.0-rc.1.23419.4 57,573 9/12/2023
8.0.0-preview.7.23375.6 23,981 8/8/2023
8.0.0-preview.6.23329.7 8,519 7/11/2023
8.0.0-preview.5.23280.8 4,407 6/13/2023
8.0.0-preview.4.23259.5 17,322 5/16/2023
8.0.0-preview.3.23174.8 26,265 4/11/2023
8.0.0-preview.2.23128.3 36,822 3/14/2023
8.0.0-preview.1.23110.8 44,011 2/21/2023
7.0.0 41,705,566 11/7/2022
7.0.0-rc.2.22472.3 139,669 10/11/2022
7.0.0-rc.1.22426.10 94,685 9/14/2022
7.0.0-preview.7.22375.6 32,907 8/9/2022
7.0.0-preview.6.22324.4 34,375 7/12/2022
7.0.0-preview.5.22301.12 28,263 6/14/2022
7.0.0-preview.4.22229.4 28,420 5/10/2022
7.0.0-preview.3.22175.4 11,088 4/13/2022
7.0.0-preview.2.22152.2 23,585 3/14/2022
7.0.0-preview.1.22076.8 23,642 2/17/2022
6.0.2-mauipre.1.22102.15 13,948 2/15/2022
6.0.2-mauipre.1.22054.8 70,797 1/19/2022
6.0.0 216,436,966 11/8/2021
6.0.0-rc.2.21480.5 51,781 10/12/2021
6.0.0-rc.1.21451.13 65,971 9/14/2021
6.0.0-preview.7.21377.19 615,655 8/10/2021
6.0.0-preview.6.21352.12 65,211 7/14/2021
6.0.0-preview.5.21301.5 49,158 6/15/2021
6.0.0-preview.4.21253.7 53,498 5/24/2021
6.0.0-preview.3.21201.4 155,114 4/8/2021
6.0.0-preview.2.21154.6 69,356 3/11/2021
6.0.0-preview.1.21102.12 111,618 2/12/2021
5.0.0 299,240,161 11/9/2020
5.0.0-rc.2.20475.5 107,211 10/13/2020
5.0.0-rc.1.20451.14 102,582 9/14/2020
5.0.0-preview.8.20407.11 174,057 8/25/2020
5.0.0-preview.7.20364.11 89,762 7/21/2020
5.0.0-preview.6.20305.6 35,432 6/25/2020
5.0.0-preview.5.20278.1 21,800 6/10/2020
5.0.0-preview.4.20251.6 83,012 5/18/2020
5.0.0-preview.3.20214.6 55,891 4/23/2020
5.0.0-preview.2.20160.6 44,170 4/2/2020
5.0.0-preview.1.20120.5 34,430 3/16/2020
4.7.0 477,588,282 12/3/2019
4.7.0-preview3.19551.4 27,678 11/13/2019
4.7.0-preview2.19523.17 18,777 11/1/2019
4.7.0-preview1.19504.10 22,869 10/15/2019
4.6.0 53,852,144 9/23/2019
4.6.0-rc1.19456.4 65,228 9/16/2019
4.6.0-preview9.19421.4 22,643 9/4/2019
4.6.0-preview9.19416.11 634 9/4/2019
4.6.0-preview8.19405.3 148,276 8/13/2019
4.6.0-preview7.19362.9 904 7/23/2019
4.6.0-preview6.19303.8 937 6/12/2019
4.6.0-preview6.19264.9 622 9/4/2019
4.6.0-preview5.19224.8 796 5/6/2019
4.6.0-preview4.19212.13 1,083 4/18/2019
4.6.0-preview3.19128.7 842 3/6/2019
4.6.0-preview.19073.11 849 1/29/2019
4.6.0-preview.18571.3 1,264 12/3/2018