Starting a process in an AppContainer from a service (LOCAL_SYSTEM)
Hello, I am trying to run a process in an AppContainer. This process is created from a service, so is in session 0 running as LOCAL_SYSTEM. I have also tried CreateProcessAsUser to run it as LOCAL_SERVICE (also in session 0) and it doesn't work. …
WinUI3: How to print framework element using cpp
My app have to windows. Depending on which the print is called from we getting the actual hWnd. My issue is how to to get an instance of printManager or is there another way to print from winui 3? // file: MainWindow.xaml.cpp ... #include…
Dialog box before launching of application in winui3 c++/winrt
I am working in winui3 c++/winrt and I need to show a dialog box just before the launch of my application The dialog box will say OK and Cancel on click of OK we launch the application and on cancel we exit. I tried a few approaches but it is giving…
An exception is given when trying to manipulate UI when the packageCatalogUninstalling event is triggered WinUI
Hello! I'm testing an application that uses PackageCatalog.Uninstalling event and i would like to change the UI when this event is triggered but when i try to do it an exception is given. I also tried with a dispatcher but received another error
USB Controller alert in Kinect for Windows
I cannot get my kinect to register as a sensor in any 3rd party program. 3d build will show image, but will only capture a image still not a video.
winui 3 FindAncestor
Hello: In Wpf , The below code in a page/usercontrol will get the property value from MainWindow Datacontext. <TextBlock Text="{Binding DataContext.Arr[2],RelativeSource={RelativeSource Mode=FindAncestor,…
How to add items to Windows 11 modern EXPLORER context menu using C#?
I'm developing a UWP program and want to associate a custom menu item with a specific file format and show it in the Windows 11 new version File Explorer context menu (first level menu). Is there such an API?And how to do this in winform?
Dynamic Dependency Lifetime Manager
There was a problem with the Microsoft Windows App Runtime Dynamic Dependency Lifetime Manager. Please reinstall the application from its original installation location or contact your administrator.
WinUI 3 - How to Retrieve ActivatedEventArgs Multiple Times?
The documentation states that AppInstance.GetActivatedEventArgs this method will only return the arguments the first time it is called in an app. If a packed single-instanced WinUI 3 app is activated from a protocol multiple times, what approach can…
MSIX WebView2 ExternalDependency failing to install/update.
We have an MSIX based application that we ship that depends on the Evergreen WebView2 installs, relying instead on the ExternalDependency support to ensure an evergreen install exists. Some of our users have reported that WebView2 fails to install…
System.NullReferenceException: 'Object reference not set to an instance of an object.' when navigating to page in WinUI
I am working with a WinUI project which is built based on the MVVM Toolkit template. When I use NavigationService.NavigateTo(typeof(EmployeeViewModel).FullName!); to navigate to EmployeePage, the program crashes with the bug that…
Error adding settings page in WinUI 3 MVVM app using Template Studio
I'm trying to add a settings page to my existing WinUI 3 app using Template Studio (With Navigation Bar) with the MVVM pattern. However, I'm encountering the following error: System.Exception: Error executing…
Seeking Feedback: Open-Source Solution for Stable Audio Device Identification on Windows
Hello everyone, I'm working on an open-source project to tackle a common issue with Windows audio devices, and I'd love to get your feedback. The Problem: As many of you might have experienced, Windows assigns device identifiers and friendly names to…
Drag and drop in Win UI
Hi, I'm doing drag and drop in Win UI application, but I have a problem. In drag and drop there is only Data.SetStorageItems method. It accepts an IStorageItem with which I have no access to hidden files and shortcuts (only using file picker, but in my…
Does WinUI3 App support Miracast feature now?
Hi Microsoft team, I developed a UWP app to implement the screen mirror function with the Windows.Media.Miracast APIs. Now I want to migrate UWP to the WinUI 3 App(Windows App SDK), so I research how to migrate Miracast and find that WinUI 3 App didn't…
WinUI 3 application crashes at App.g.i.cs
I am trying to create a WinUI 3 Application in C# and my application keeps crashing at App.g.i.cs #if DEBUG && !DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION UnhandledException += (sender, e) => { …
CoreWebView2.NavigateToString(String) method fails to load an HTML page
I am using an instance of WebView2 class to display some HTML content in a UI panel for a VS 2022 extension. I can retrieve the HTML content that I want to display in the WebView2 control as a string, and then I am trying to use…
How to set the app window height and width on WinUI3?
I wanted to set the width of the app to cover the available width of the display, and wanted to increase the apps height when a function was invoked.
WinUI 3 NavigationService not navigating to ShellPage after successful login
I'm developing a WinUI 3 app using Template Studio with a Navigation Bar. The INavigationService has a NavigateTo method that I can use to navigate between custom pages like Login and SignUp. However, I'm having an issue where I can't navigate to…
How to leave a certain distance between the right page content of the NavigationView and the Titlebar
This is my winui3 application's NavigationView And this is the winui3 application created by Temlate Studio's NavigationView