Microsoft Extending the Context Menu and Share Dialog in Windows 11

  • Staff
Windows 11 brings refinement to contextual file operations in the right-click context menu and share dialog. These are extensible by apps, including unpackaged Win32 apps.

The context menu is one of the most popular and useful shell extensions. If you are already in File Explorer or on the Desktop, it significantly reduces the number of steps to complete a file operation compared to opening a separate app.

As useful as the Windows 10 context menu is, there are aspects of its design we sought to improve in Windows 11.
  • The most common commands – cut, copy, paste, delete, and rename – are far from the mouse pointer, touch point, or pen.
  • The menu is exceptionally long. It has grown in an unregulated environment for 20 years, since Windows XP, when IContextMenu was introduced.
  • It includes commands which are rarely used.
  • Commands that should be grouped together – such as Open and Open with – are sometimes far apart.
  • Commands added by apps have no common organizational schema and can interrupt sections of inbox commands.
  • Commands added by apps are not attributable to the app itself.
  • Many commands run in-process in Explorer, which can cause performance and reliability issues.
W10-Context-Menu-with-Contoso-Replacements-and-Defender-Fix-458x1024.png

The Windows 11 context menu addresses these problems in the following ways:
  • Common commands are placed right next to where the menu is invoked.
  • “Open” and “Open with” are grouped together.
  • Apps extend the menu with IExplorerCommand + app identity. Unpackaged Win32 apps can use Sparse Manifests. IExplorerCommand support extends back to Windows 7.
  • App extensions are grouped together below Shell verbs.
  • Cloud Files provider apps are placed next to the Shell commands to hydrate or dehydrate the file.
  • Apps with more than 1 verb are grouped into a flyout with app attribution.
  • “Show more options” loads the Windows 10 context menu as-is for access to low-use Shell verbs and apps still working on porting over. No commands have been removed entirely.
  • Shift-F10 or the keyboard menu key will also load the Windows 10 context menu.
image3.png

The share dialog has also been improved in Windows 11.
  • Nearby sharing is now much easier to use, with easy control over your discoverability setting up top and a link to more settings in the footer of the dialog.
  • If you use the Mail app, the first entry in the contacts list helps you easily send an email to yourself.
  • All apps can now participate in the Share dialog as targets. For unpackaged Win32 apps, this is covered in the same sample as the context menu. PWAs installed through Microsoft Edge are also supported if they implement the Web Share Target API.
image2.png

Context Menu Best Practices

Regarding File Opening scenarios:

1. When should I register my app for “Open with”? (File Type associations)

The new context menu moves “Open with” to the top of the menu, right next to “Open.”

If your app can open the file to do something more with it, you should always register for any applicable File Type Associations.

“Universal openers,” like technical text editors, should register to handle * so they will always be offered as an “Open with” option. They should also explicitly register for any filetypes they are optimized to handle.

2. When should I add a verb to “Edit with〈app〉”?

It is common for certain file types to be both “viewable/runnable” and “editable,” such as scripts, HTML, images, or text-based document formats.

Because the default action on double-click for these files can be “open/run” or “edit,” one of these two actions will be less convenient.

In these cases, adding a verb for “Edit with〈app name〉” is an acceptable practice.

However, please consider if your non-power-users will be adequately served by “Open with.”

For these users, a default state of not including the verb unless users opt into it will keep the menu tidier in general while offering classic functionality to your power users.

Regarding File Sharing scenarios:

3. When should I add a Context Menu verb to “Share with〈app〉”?

Share actions can originate outside of File Explorer, for example the Photos app or Snip & Sketch. In these cases, the Share dialog is shown to the user.

The best practice is to make sure you are registered as an app target in the Share dialog.

It’s also OK to add a Context Menu verb for “Share with〈app〉”

Because the Share dialog is also easily accessed from the File Explorer ribbon and context menu, an additional “Share with” verb in the context menu can be redundant – consider offering a way for users to opt out of the duplicate context menu verb.


Source: Extending the Context Menu and Share Dialog in Windows 11
 

Attachments

  • Windows_11_flag.png
    Windows_11_flag.png
    2.6 KB · Views: 0

BunnyJ

Python Programmer
Power User
VIP
Local time
7:24 AM
Posts
2,692
Location
Oak Ridge, TN(The Secret City)
I wonder when we'll get this..
 

My Computer

System One

  • Operating System
    Windows 11 Home
    Computer type
    PC/Desktop
    Manufacturer/Model
    Banna Junior 7K - X Series
    CPU
    Ryzen 7 2700X
    Motherboard
    Asus Crosshair VII Hero, X470
    Memory
    Gskill 32GB, 16GBX2 PC3000
    Graphics Card(s)
    GeForce GTX TITAN X 12GB
    Sound Card
    On motherboard
    Monitor(s) Displays
    Viotek 32" Curved, ViewSonic 27"
    Screen Resolution
    1080P
    Hard Drives
    Primary Samsung 256 SSD
    PSU
    EVGA BQ 700w 80+ Bronze
    Case
    NZXT 510
    Cooling
    Stock AMD cooler
    Keyboard
    Corsair
    Mouse
    Amazon Generic with Cord
    Internet Speed
    Download: 240.78 mbps Upload: 12.02 mbps Ping: 15ms
    Browser
    Firefox and Edge
    Antivirus
    Defender

magilla

Active member
Member
VIP
Local time
4:24 AM
Posts
270
Location
Southern California

My Computer

System One

  • Operating System
    windows 10 & 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    iBuyPower (special build)
    CPU
    AMD Ryzen 7X
    Motherboard
    Asus Prime x370 Pro
    Memory
    74 Gb
    Graphics Card(s)
    Radeon RX 480 8Gb
    Monitor(s) Displays
    Samsung UHD 27 inch
    Screen Resolution
    UHD
    Hard Drives
    3 Samsung 1 TB SSD each; 1 Samsung PCIe M.2 at 2 TB

geneo

You've got to pick up every stitch
Power User
VIP
Local time
7:24 AM
Posts
710
Thanks Shawn. Mapped my middle mouse button to Shift-F10 since I do not have a menu button :rolleyes:
 

My Computers

System One System Two

  • Operating System
    Windows 11 Pro x64
    Computer type
    PC/Desktop
    Manufacturer/Model
    DIY
    CPU
    10900KF, 5.1 GHz delid
    Motherboard
    Asus Maximus Hero XII Wifi
    Memory
    64GB G.skill TridentZ RGB 3200CL14 B-die @ 3600 CL16
    Graphics Card(s)
    Asus ROG Strix 2070 Super A8G
    Sound Card
    Onboard Audio, Vanatoo Transparent One; Klipsch R-12SWi Sub
    Monitor(s) Displays
    Eizo CG2730, ViewSonic VP2768
    Screen Resolution
    2560 x 1440p x 2
    Hard Drives
    Samsung 960 Pro 512 GB (OS), Samsung 980 1TB, Raid 0: 1TB 850 EVO + 1TB 860 EVO. Sabrent USB-C DS-SC5B docking station: 6TB WDC Black, 6TB Ironwolf Pro; 2TB WDC Black
    PSU
    750W Seasonic Prime Ultra Titanium
    Case
    Fractal Design Meshify 2
    Cooling
    EK-AIO 360 D-RGB w/Phanteks 120 T30 fans, 2x Noctua NF-A14 Chromax case
    Keyboard
    Glorious GMMK TKL - Brown mechanical
    Mouse
    Logitech G305 wireless gaming
    Internet Speed
    120 Mb/s down, 12 Mb/s up
    Browser
    Firefox
    Antivirus
    Defender, Macrium Reflect 8 ;-)
    Other Info
    Logitech C920e Webcam
  • Operating System
    Mac OS Big Sur
    Computer type
    Laptop
    Manufacturer/Model
    Apple 13" Macbook Pro 2020 (m1)
    CPU
    M1
    Monitor(s) Displays
    2560x1600

Steve C

Active member
Member
VIP
Local time
12:24 PM
Posts
102
The right click design really is rubbish and a backwards step
 

My Computer

System One

  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Dell Inspiron 7537
    CPU
    Core i7 Mobile i7-4500U
    Motherboard
    Dell
    Memory
    8 GB
    Graphics Card(s)
    Intel HD & NVidia GPU
    Screen Resolution
    1920 x 1080
    Hard Drives
    500 GB Samsung Evo SSD
    Internet Speed
    100 Mb / s
    Browser
    Chrome
    Antivirus
    Defender

vannn

Custom title
Member
Local time
7:24 PM
Posts
832
  • Many commands run in-process in Explorer, which can cause performance and reliability issues.

maybe they should focus more on decluttering windows before re-inventing the wheel over and over and applying cosmetic changes just to make it appear pleasing but functionality wise, its... broken.

if Im gonna describe win11, he sure is a handsome, beautiful guy, hands down. unfortunately, his d*ck is broken.
 

My Computer

System One

  • Operating System
    Windows 11 x64 Build 22000.71
    Computer type
    Laptop
    Manufacturer/Model
    Sony VAIO

unifex

Active member
Member
VIP
Local time
1:24 PM
Posts
141
The new design is fine, however, the main problem with what they described

******************************
As useful as the Windows 10 context menu is, there are aspects of its design we sought to improve in Windows 11.

  • The most common commands – cut, copy, paste, delete, and rename – are far from the mouse pointer, touch point, or pen.
  • The menu is exceptionally long. It has grown in an unregulated environment for 20 years, since Windows XP, when IContextMenu was introduced.
  • It includes commands which are rarely used.
  • Commands that should be grouped together – such as Open and Open with – are sometimes far apart.
  • Commands added by apps have no common organizational schema and can interrupt sections of inbox commands.
  • Commands added by apps are not attributable to the app itself.
  • Many commands run in-process in Explorer, which can cause performance and reliability issues.
********************************

is lack of customization by user, while giving developers a free hand on modifying the menus as they see fit. Most program installers just put their links where they want to without asking for user consent. And that's what makes "rarely used commands" included in the context menus - every program wants to put their links there regardless of whether I use them or not!

What they should do is to streamline the installer: mandate that users - or at least, administrators - are always asked where to put what.
 

My Computer

System One

  • Operating System
    Windows 10
    Computer type
    PC/Desktop
    CPU
    i5-10600K
    Motherboard
    Asus Rog Strix Z490-A Gaming
    Memory
    16 GB
    Graphics Card(s)
    GeForce GTX 1650
    Monitor(s) Displays
    Samsung U32J59x 32" 4K
    Screen Resolution
    3840x2160

Ghot

Well-known member
Power User
VIP
Local time
7:24 AM
Posts
1,258
Location
PA, USA
The right click design really is rubbish and a backwards step



That's a fact.
I love Microsoft's sales pitch though.
It's good for a laugh, if nothing else. :)\



/edit

I notice they've been adding things to the Windows 10 right click menu.
So we might "like" the ridiculous Win 11 menus a bit better.

This is the right click menu for a Folder with an empty text file inside (Windows 10)
The things marked with RED dots... didn't used to be there...



Image1.png



Silly me... I never knew I could play a text file in WMP. LOL
 

My Computers

System One System Two

  • Operating System
    Win 10 Home 10.0.22000.282 (x64)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Built by Ghot® [May 2020]
    CPU
    AMD Ryzen 7 3700X
    Motherboard
    Asus Pro WS X570-ACE
    Memory
    G.Skill (F4-3200C14D-16GTZKW)
    Graphics Card(s)
    EVGA RTX 2070 (08G-P4-2171-KR)
    Sound Card
    (onboard) Realtek ALC1220P / ALC S1220A
    Monitor(s) Displays
    Dell U3011 30"
    Screen Resolution
    2560 x 1600
    Hard Drives
    Samsung 860 EVO 500GB,
    WD 4TB Black FZBX - SATA III,
    WD 8TB Black FZBX - SATA III,
    LG GH22LS30 CD/DVD Burner
    PSU
    PC Power & Cooling 750W Quad EPS12V
    Case
    COOLER MASTER ATCS 840 Full Tower
    Cooling
    CM Hyper 212 EVO (push/pull)
    Keyboard
    Ducky DK9008 Shine II Blue LED
    Mouse
    Logitech Optical M-100
    Internet Speed
    100/100
    Browser
    Firefox (latest)
    Antivirus
    Bitdefender Internet Security 2020
    Other Info
    Speakers: Klipsch Pro Media 2.1
  • Operating System
    Windows XP Pro 32bit w/SP3
    Computer type
    PC/Desktop
    Manufacturer/Model
    Built by Ghot®
    CPU
    AMD Athlon 64 X2 5000+ (OC'd @ 3.2Ghz)
    Motherboard
    ASUS M2N32-SLI Deluxe Wireless Edition
    Memory
    TWIN2X2048-6400C4DHX (2 x 1GB, DDR2 800)
    Graphics card(s)
    EVGA 256-P2-N758-TR GeForce 8600GT SSC
    Sound Card
    Onboard
    Monitor(s) Displays
    ViewSonic G90FB Black 19" Professional (CRT)
    Screen Resolution
    up to 2048 x 1536
    Hard Drives
    WD 36GB 10,000rpm Raptor SATA
    Seagate 80GB 7200rpm SATA
    Lite-On LTR-52246S CD/RW
    Lite-On LH-18A1P CD/DVD Burner
    PSU
    PC Power & Cooling Silencer 750 Quad EPS12V
    Case
    Generic Beige case, 80mm fans
    Cooling
    ZALMAN 9500A 92mm CPU Cooler
    Mouse
    Logitech Optical M-BT96a
    Keyboard
    Logitech Classic Keybooard 200
    Internet Speed
    100/100
    Browser
    Firefox 3.x ??
    Antivirus
    Symantec (Norton)
    Other Info
    Still assembled, still runs. Haven't turned it on for 13 years?

    http://www.xtremesystems.org/forums/showthread.php?183088-5000-B-E-on-M2N32-SLI-Dlx-Overclocked&p=2891724#post2891724
Top Bottom