Skip to content

Instantly share code, notes, and snippets.

@visionarylab
Last active February 15, 2024 01:48
Show Gist options
  • Save visionarylab/459e7af4d7d796703fef87e12ec328aa to your computer and use it in GitHub Desktop.
Save visionarylab/459e7af4d7d796703fef87e12ec328aa to your computer and use it in GitHub Desktop.
C# UWP
Either use Microsoft.Windows.CsWin32 or Professional SharpHook, or super minimal A few windows niceties
https://github.com/Tum4ik/just-clipboard-manager/blob/6a6ea792ceea2e561f90a7a67b18a2d435c78b82/Tum4ik.JustClipboardManager/Services/KeyboardHookService.cs#L8
https://learn.microsoft.com/en-us/windows/uwp/launch-resume/launch-app-with-uri
##
await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-gamebar:activate/WidgetAdvSampleCS_8wekyb3d8bbwe_App_Widget2/?var=valuesssz"));
####1.0 Optimize
https://mzikmund.dev/blog/uwp-application-settings-performance
#######1.1 Disa Screen Capture
https://bugs.chromium.org/p/webrtc/issues/detail?id=9273
Windows.UI.ViewManagement.ApplicationView.GetForCurrentView().IsScreenCaptureEnabled = false;
Windows.Media.Capture AppCaptureServices
https://stackoverflow.com/questions/51259055/stop-screen-capture-on-uwp-app-in-taskview-of-windows-10
####
###2.0 Screen
####2.1 Miracast / DIAL (Advanced Casting) / WiFiDirectServices
D:\Pro\DesktopWork\UWPFeature\Windows-universal-samples-main\Samples\AdvancedCasting
####WebView Additional, Chrome Debug Protocol
https://github.com/MicrosoftEdge/WebView2Feedback/issues/2177
### File Picker
https://stackoverflow.com/questions/21225959/how-to-enable-documentslibrary-capability-in-a-windows-store-winrt-app
https://learn.microsoft.com/en-us/windows/uwp/launch-resume/handle-file-activation
#########3.0 Additional Support
1) Profile Support
Different Profile, open different "XBOX Widget Windows"
Different Zone Profile for internal widget.
2)\\\\\\Chromium Webview2 Alternative: Chromium variant, Servo, webkit, ultralig.ht
https://teamdev.com/dotnetbrowser/blog/choosing-between-dotnetbrowser-and-webview2/
https://www.essentialobjects.com/#WebBrowser
https://www.webkitx.com/doc/light/About.html
3
https://learn.microsoft.com/en-us/uwp/api/windows.ui.input.keyboarddeliveryinterceptor?view=winrt-22621
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment