System.Windows.Extensions
10.0.0-preview.5.25266.103
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.
See the version list below for details.
dotnet add package System.Windows.Extensions --version 10.0.0-preview.5.25266.103
NuGet\Install-Package System.Windows.Extensions -Version 10.0.0-preview.5.25266.103
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.25266.103" />
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.5.25266.103" />
<PackageReference Include="System.Windows.Extensions" />
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.5.25266.103
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.25266.103"
#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.5.25266.103&prerelease
#tool nuget:?package=System.Windows.Extensions&version=10.0.0-preview.5.25266.103&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. 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
|
Version | Downloads | Last updated |
---|---|---|
10.0.0-preview.5.25280.105 | 0 | 6/2/2025 |
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 |