System.Windows.Extensions
9.0.0-preview.5.24306.7
Prefix Reserved
See the version list below for details.
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
<PackageReference Include="System.Windows.Extensions" Version="9.0.0-preview.5.24306.7" />
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"
// 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
- 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. |
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages (26)
Showing the top 5 NuGet packages that depend on System.Windows.Extensions:
Package | Downloads |
---|---|
System.Security.Permissions
Provides types supporting Code Access Security (CAS). |
|
Microsoft.CodeAnalysis.Workspaces.MSBuild
.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/bde21ee2b98b775b010d01a93f81ef587fe80962. |
|
System.Management.Automation
Runtime for hosting PowerShell |
|
Stimulsoft.Dashboards.Win
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. |
|
Maikebing.System.Windows.Forms.DataVisualization
Package Description |
GitHub repositories (15)
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
|