System.Windows.Extensions 10.0.0-preview.4.25229.110

This is a prerelease version of System.Windows.Extensions.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package System.Windows.Extensions --version 10.0.0-preview.4.25229.110
                    
NuGet\Install-Package System.Windows.Extensions -Version 10.0.0-preview.4.25229.110
                    
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="10.0.0-preview.4.25229.110" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="System.Windows.Extensions" Version="10.0.0-preview.4.25229.110" />
                    
Directory.Packages.props
<PackageReference Include="System.Windows.Extensions" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add System.Windows.Extensions --version 10.0.0-preview.4.25229.110
                    
#r "nuget: System.Windows.Extensions, 10.0.0-preview.4.25229.110"
                    
#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.
#addin nuget:?package=System.Windows.Extensions&version=10.0.0-preview.4.25229.110&prerelease
                    
Install System.Windows.Extensions as a Cake Addin
#tool nuget:?package=System.Windows.Extensions&version=10.0.0-preview.4.25229.110&prerelease
                    
Install System.Windows.Extensions as a Cake Tool

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.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.
  • net8.0

    • No dependencies.
  • net9.0

    • No dependencies.

GitHub repositories (16)

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

Repository Stars
mRemoteNG/mRemoteNG
mRemoteNG is the next generation of mRemote, open source, tabbed, multi-protocol, remote connections manager.
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. :)
killkimno/MORT
MORT 번역기 프로젝트 - Real-time game translator with OCR
dotnet/dotnet-api-docs
.NET API reference documentation (.NET 5+, .NET Core, .NET Framework)
MicrosoftLearning/AI-102-AIEngineer
Lab files for AI-102 - AI Engineer
dotnet/Kerberos.NET
A Kerberos implementation built entirely in managed code.
pdfforge/PDFCreator
PDFCreator - The free PDF Converter
merschformann/RAWSim-O
A simulation framework for Robotic Mobile Fulfillment Systems
lindexi/lindexi_gd
博客用到的代码
MicrosoftLearning/mslearn-ai-language
Lab files for Azure AI Language modules
dotnet/winforms-datavisualization
System.Windows.Forms.DataVisualization provides basic charting for WinForms applications.
Timotheeee/btd6_mods
RssBandit/RssBandit
Browsing web news without a browser