Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,290 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
i am showing all installed printers in listview of WPF using below codes
foreach (string printer in System.Drawing.Printing.PrinterSettings.InstalledPrinters)
{
listview.items.add(printer);
}
i want to update its listview UI runtimes without closing the application . when new printers is added or delete/rename existing printers .
Note: we can not use timer events to call list functions in each seconds.
Handle notifications, like WM_SETTINGCHANGE, WM_DEVICECHANGE (WM_DEVMODECHANGE if renamed)