Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 1.14 KB

sharewindowcommandsource_reportcommandchanged_136777663.md

File metadata and controls

25 lines (16 loc) · 1.14 KB
-api-id -api-type
M:Windows.UI.Shell.ShareWindowCommandSource.ReportCommandChanged
winrt method

Windows.UI.Shell.ShareWindowCommandSource.ReportCommandChanged

-description

Indicates to the Windows Shell that the sharing state of your communications app has changed.

Call this method whenever your communications app's sharing state changes. If you successfully share a new window in a call or meeting, or you remove an already shared window (whether that's via your own UI, or triggered by a Windows Taskbar action), you must notify your ShareWindowCommandSource instance of that change by calling ReportCommandChanged.

The Shell will then flush any information it has received as part of any ShareWindowCommandSource.CommandRequested event, and will update its visible share commands to match the current state of your app.

-remarks

-see-also

ShareWindowCommandSource, ShareWindowCommandSource.CommandRequested

-examples