Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
FREEDOM251

Freedom251 › Blog › CSS

What “Win Switch” Means: Definition of the WinJS ToggleSwitch and Other Uses

By Freedom251 Team · · 2 min read

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

“Win Switch programs” is not an established software category. The best-supported meaning of “win switch” is win-switch, a CSS class in the Windows Library for JavaScript (WinJS) ToggleSwitch control. That control is a legacy on/off user-interface element for Windows 8-era apps. It is not a program, and it is not a standalone tool you install. A few unrelated technical uses of the phrase also exist, covered below.

The short definition

Microsoft Learn documents WinJS.UI.ToggleSwitch as “a control that lets the user switch an option between two states: on (checked is set to true) and off (checked is set to false).” It is the app-development equivalent of a light switch: one setting, two positions.

As an Amazon Associate I earn from qualifying purchases.

Within that control’s styling, win-switch is the CSS class that styles the slider. So when someone says “win switch” in a Windows app-development context, they usually mean that slider element or the ToggleSwitch it belongs to.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The CSS classes involved

Class What it styles
win-switch The slider
win-label The on/off text
win-title The title text

A Microsoft Press book on Windows 8 app development makes the same identification. It adds an implementation detail: the slider is built on an HTML range input. That detail is historical and says nothing about how switches are built in modern frameworks.

#1 Best Overall
BENFEI USB 3.0 Switch, USB Switch 2 Computers Share 4 USB for PC, Mouse, Keyboard, Printer, Scanner, USB KVM Switch Selector Compatible with Windows, Mac, Linux
  • Share Multiple USB Devices between 2 Computer : The BENFEI 2 in 4 out USB 3.0 kvm switch supports 2 computers share 4 USB devices like keyboards, mouses, U disk, printers, scanners, USB cameras, headphones, etc. It's convenient for you to switch freely between your work computer and personal computer, driver free and compatible with multiple OS, such as windows 7/10/8/8.1/7/Vista/XP and Mac OS, Linux, and Chrome OS.
  • Transfer Files in Seconds: With the 4x USB 3.0 ports, BENFEI USB Switcher supports up to 5Gbps data transfer speed. You can easily transfer data from U disk, mobile hard disk to computer. It's backward compatible with USB 2.0, too.
  • Switch Easily: With the USB switcher button and LED indicator design, you can freely switch multiple USB devices between two computers with one click and clearly know the working status. Please note: When connected, it could work only when using the BENFEI USB A to USB A cable.
  • Multiple USB Devices Support: BENFEI USB Switch provides an extra USB C(5V 3A) power supply slot. If you use some high power consumption devices such as HDD, USB cameras, headphones, etc, please connect extra power for stable performance. (The USB A-USB Charging cable is included, but the power adapter is not)
  • 18 MONTH WARRANTY : Exclusive BENFEI Unconditional 18-month Warranty ensures long-time satisfaction of your purchase; Friendly and easy-to-reach customer service to solve your problems timely

What a ToggleSwitch looks like in code

In WinJS, you declare the control in markup and set its options. This is a minimal sketch of the pattern:

<div data-win-control="WinJS.UI.ToggleSwitch"
     data-win-options="{ title: 'Wi-Fi', checked: true }"></div>

The checked value is the state. true means on and false means off, which matches the Microsoft definition above. Developers who want a different look override win-switch, win-label or win-title in their stylesheet.

Rank #2
BENFEI USB 3.0 Switch, USB Switcher 2 Computers Share 3*USB 3.0 and 1*USB C with Remote Control for PC Mouse Keyboard Printer Scanner, USB KVM Switch Selector Compatible with Windows, Mac, Linux
  • Share Multiple USB Devices between 2 Computer : The BENFEI 2 in 4 out USB 3.0/USB-C kvm switch supports 2 computers share 3 x USB 3.0 and 1 x USB-C devices like keyboards, mouses, U disk, printers, scanners, USB cameras, headphones, etc. It's convenient for you to switch freely between your work computer and personal computer, driver free and compatible with multiple OS, such as windows 7/10/8/8.1/7/Vista/XP and Mac OS, Linux, and Chrome OS.
  • 5Gbps Data Transfer / Plug & Play: With the 3 x USB 3.0 ports and 1 x USB-C port, BENFEI USB Switcher supports up to 5Gbps data transfer speed. You can easily transfer data from U disk, mobile hard disk to computer. It's backward compatible with USB 2.0, too. Simple plug and play for any modern operating system: Windows, macOS, Chrome OS, and Linux computers.
  • Switch Easily with Two Modes: With the USB switcher button or Remote Control button and LED indicator design, you can freely switch multiple USB devices between two computers with one click and clearly know the working status. Please note: When connected, it could work only when using the BENFEI USB A to USB A cable.
  • Upgrade Power Supply with USB-C Port: BENFEI USB Switch is designed with optional power supply If you use some high power consumption devices such as HDD, USB cameras, headphones, etc, please connect extra power for stable performance. BENFEI Switch adopts USB-C slot as power supply slot to avoid hassle to find legacy micro usb charging cable.
  • 18 MONTH WARRANTY : Exclusive BENFEI Unconditional 18-month Warranty ensures long-time satisfaction of your purchase; Friendly and easy-to-reach customer service to solve your problems timely

Why it is not a “program”

The word “programs” in the title suggests software you can run. A ToggleSwitch is a building block inside an app, a piece of interface and not an application. Nothing in the documentation describes a family of “Win Switch” products, so be skeptical of any page that presents one as a downloadable tool.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Legacy status

The Microsoft Learn reference sits in the previous-versions documentation collection and was last updated on January 25, 2017. Treat it as a legacy reference. Whether WinJS is still supported or maintained today is not established by that page, so don’t assume it is a current Windows feature. If you are building something new, use the toggle control in whatever current framework you work with.

Rank #3
Sale
UGREEN USB 3.0 Switch 2 Computers Sharing USB C & A Devices, 4 Port USB Switcher Sharing Keyboard and Mouse, Printer/Scanner USB Switch Hub for Two Computers with 2 USB3.0 Cables and Controller
  • 2 PCs Share Multiple Devices: UGREEN 2-In 4-Out USB switcher supports 2 computers sharing 4 USB devices like keyboards, mouses, printers, headphones, and USB cameras. Switch freely between your work computer and personal computer and boost your work efficiency. (NOTE: This USB Switcher is NOT a KVM switch and does not support connecting a monitor or video transmission)
  • Connect USB C & USB A Devices: The USB 3.0 switch provides 1 USB C port and 3 USB A ports to support connecting various USB devices, extending more ports for two computers. (*It is recommended to power supply when using multiple devices simultaneously to avoid disconnection due to insufficient power.*)
  • 5Gbps Data Transfer / Plug & Play: With 4 USB 3.0 ports, the USB 3.0 switcher supports data transfer up to 5Gbps and is backward compatible with USB 2.0; Simple plug and play for any modern operating system: Windows, macOS, Chrome OS, and Linux computers. (*The USB ports are primarily for data transfer and are not recommended for charging devices.*)
  • Note: 1. If your input device uses a USB-C port, please purchase a USB-C to USB adapter before use. 2. When using a camera through the switcher, if your computer has a built-in camera, please select the UGREEN camera in the camera settings to ensure proper use. 3.The USB-C port on the product does not support video output and cannot be used with a dock to connect a display
  • USB-C Power Supply: The USB switch is designed with a optional power supply for high-power devices like Hard Disk Drives, headsets, and other USB devices to work more stably; The upgraded USB-C Power port avoids the trouble of not finding a micro cable.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Other things “win switch” can mean

The phrase turns up elsewhere with unrelated meanings. Don’t mix them up with WinJS:

  • EMM386 win= option: a command-line switch from the DOS memory-manager world.
  • Windows/Mac modifier switch: a hardware setting described in Avid’s device documentation, which changes how modifier keys behave for each operating system.

If your question came from a code sample, check whether it contains win-switch or WinJS.UI.ToggleSwitch. If it came from a DOS config file or a keyboard manual, you are looking at one of the other meanings.

Best Value
IOGEAR 2-Port Full HD KVM Switch with HDMI and USB
  • IOGEAR GCS32HU is a 2-Port HDMI KVM switch with HDMI and USB connections that enables effortless control over two HDMI HD computers using a single USB keyboard and a USB mouse in one HDMI monitor
  • Easy Installation, Plug and Play : Toggling between two HDMI computers is as easy as clicking the remote port selector button, allowing the user to multitask with two computers. The KVM shows which computer you are using with a light on the unit (either PC1 or PC2).
  • Share and Control Peripherals: Connect your USB peripherals using the built-in USB ports and easily share/switch them between computers.
  • Flexible and Expandable: Perfect for those who need to get the job done in the office and at home. Do you need more USB ports? No Problem! Plug in a USB hub to expand your peripheral sharing between your computers.
  • Compatibility: Windows Laptops and Desktops, Macbooks, Mac Mini, Linux Computers
Rank #4
USB2.0 Switch with 2Pack Usb2.0 Cable(1M), Bi-Directional 1 in 2 Out/2 in 1 Out,Aluminum USB Switcher kit for 2Computers Share Devices(Printer, Keyboard, Scanner, Mouse),Compatible with Mac/Win/Linux
  • [ Complete Package]: Includes USB 2.0 switch unit plus 2 USB 2.0 cables for immediate setup and connection.Most USB devices that require sharing only need USB 2.0 to work properly(printers, keyboards, scanners, mice).
  • [Universal Compatibility]: Works seamlessly with Mac, Windows, and Linux operating systems for broad device support
  • [Bi-Directional Design]: Switch supports both 1 in 2 out and 2 in 1 out configurations for flexible USB device sharing between computers
  • [Aluminum Construction]: Durable aluminum housing provides reliable performance and heat dissipation for long-term use
  • [Multi-Device Support]: Share printers, keyboards, scanners, mice and other USB devices between 2 computers effortlessly

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

CSSGlossaryToggleSwitchWindows 8WinJS

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.