System.Windows.Extensions
10.0.0-preview.5.25277.101
This is a prerelease version of System.Windows.Extensions.
dotnet add package System.Windows.Extensions --version 10.0.0-preview.5.25277.101
NuGet\Install-Package System.Windows.Extensions -Version 10.0.0-preview.5.25277.101
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.5.25277.101" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add System.Windows.Extensions --version 10.0.0-preview.5.25277.101
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: System.Windows.Extensions, 10.0.0-preview.5.25277.101"
#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=10.0.0-preview.5.25277.101&prerelease // Install System.Windows.Extensions as a Cake Tool #tool nuget:?package=System.Windows.Extensions&version=10.0.0-preview.5.25277.101&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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
- API 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 | Versions 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. net10.0 is compatible. |
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 (17)
Showing the top 5 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. :)
|
Version | Downloads | Last updated |
---|---|---|
10.0.0-preview.5.25277.101 | 0 | 5/29/2025 |
10.0.0-preview.5.25266.103 | 0 | 5/20/2025 |
10.0.0-preview.4.25255.103 | 0 | 5/12/2025 |
10.0.0-preview.4.25229.110 | 0 | 5/6/2025 |
4.6.0-preview.19073.11 | 1 | 1/28/2019 |
4.6.0-preview.18571.3 | 1 | 11/30/2018 |