41 questions with no answers
-1
votes
0
answers
30
views
Casting from list of VirtualKey objects to RegisterHotKey
I'm using DevWinUI's shortcut control but I'm confused on how to get the key and modifiers from it and then casting it to the proper types for RegisterHotKey.
The shortcut control returns public new ...
0
votes
0
answers
67
views
WinUI ItemsRepeater weird behavior
I'm using the header of the listview to filter item inside it.
What I'd want, would be, to have the TextBox Collapsed by default and on PointerReleased on the TextBlock to put it Visible.
When ...
0
votes
0
answers
27
views
Is there any way to identify the user/customer in a Windows Store App with purchasable add-ons?
I have a WPF app in the Windows Store, and it's using the Windows App SDK, so that I can use the StoreContext to handle subscription and consumable add-on purchases.
I'm also using the Microsoft Store ...
0
votes
0
answers
229
views
How to solve System.Runtime.InteropServices.COMException : Class not registered (0x80040154 (REGDB_E_CLASSNOTREG)) while using Windows app SDK
I have a .NET project which has a class library that uses Windows App SDK. I'm trying to run test cases on this class library by creating a test project. But they are failing whenever it is trying to ...
0
votes
0
answers
93
views
WinUI3 Custom title bar drag region state changes when tab added to TabView
Whenever a new tab is added to the tabview, the titlebar drag region swaps between being enabled and disabled. Visually there is no change. Only effect is that the drag region becomes disabled or ...
1
vote
0
answers
313
views
How do I match the locally listed Windows App SDK runtime version to published version?
I would like to know if I have a specific version of the Windows App SDK runtime installed.
When I go to https://learn.microsoft.com/en-us/windows/apps/windows-app-sdk/downloads, I see versions listed ...
5
votes
0
answers
882
views
"The package deployment failed because its publisher is not in the unsigned namespace." while installing self signed msix
I am developing a msix. My development process is,
Build the app
Package the app as an msix
Self sign it
Install and test
But while installing the app I suddenly started getting
and if I use Add-...
0
votes
0
answers
466
views
WinUI 3 localized strings resources don't work when app is built using dotnet build command
I have WinUI 3 application written in C#. I have multiple project in solution.
App.Views - Views (XAML Window and Pages)
App.ViewModels - View models
App.Strings - RESW files and string resources ...
0
votes
0
answers
81
views
Mocking Windows APP SDK classes using C++/winrt
I face a problem how to create SolidColorBrush inside test suites. When I do it using the constructor, I get winrt::hresult_wrong_thread, which seems reasonable because when I run the tests, there is ...
0
votes
0
answers
543
views
Unable to debug with following error: "Unable to attach to CoreCLR. A debug component is not installed."
If I create a new project with "Blank App, Packaged (WinUI 3 in Desktop)", replace <TargetFramework>net6.0-windows10.0.19041.0</TargetFramework> of App1.csproj with <...
0
votes
0
answers
73
views
WinUI3, WASDK: Cannot add Input.Toggle into CarouselPage
I try creating Windows 11 widgets. But have problems with writing templates.
I need Carousel with checkboxes, it should looks like this:
"type": "Carousel",
"height": &...
2
votes
0
answers
2k
views
Publish Windows App Sdk - SelfContained vs WindowsAppSDKSelfContained
While Publishing app developed using 'Windows App Sdk', What is the difference between <SelfContained> vs <WindowsAppSDKSelfContained>.
To reduce the app size, I want to set <...
0
votes
0
answers
117
views
DesktopAcrylicController crashes in WinUI 3 app
I am trying to use the acrylic brush in WinUI 3, I read the documentation and it says that I must create an auxiliary class WindowsSystemDispatcherQueueHelper.
I have followed the process but it ...
0
votes
0
answers
332
views
WinUI 3: Is there any way to make generated Window classes from XAML other than MainWindow also extend winrt::Microsoft::UI::Xaml::Window
Or is there a way to cast them to winrt::Microsoft::UI::Xaml::Window?
If not, does that mean I have to do the following things with the help of some custom classes applied to manage extra windows?
...
0
votes
0
answers
177
views
Get a COMException from WinUI3 when create a grid
When I try to create a Grid, it throw System.Runtime.InteropServices.COMException
var definition = new RowDefinition {Height = GridLength.Auto};
var grid = new Grid { RowDefinitions = { definition, ...
1
vote
0
answers
533
views
WinUI3 : How to close a WinUI3 window without stopping the event loop
I'm working on a WinUI3 desktop application in C++. I'm trying to build a multiwindow application that will be still running and accepting events even when all the Windows are closed.
In WinUI3, the ...
1
vote
0
answers
420
views
Why is my Properties empty even though I have WinUI 3 Tools installed in Visual Studio 2022?
I'm using Visual Studio 2022 Community edition, version 17.4.1. I'm working on an app that uses WinUI 3 SDK and I noticed that my properties is empty. I initially though this was due to WinUI 3 being ...
0
votes
0
answers
104
views
ServiceLocator.Current - logic with current activated window not working
I have been using windows-app-sdk and winui3 for developing my application which supports multiple windows. As an architecture, I am using ServiceLocator and DI to get the singleton and scoped ...
2
votes
0
answers
567
views
PublicClientApplicationBuilder does not contain a definition for WithUseCorporateNetwork
So I was upgrading my UWP solution to WindowsAppSDK and Winui3 when I noticed this error that Microsoft.Identity.Client doesnt seem to have WithUseCorporateNetwork method anymore in the build pipeline ...
0
votes
0
answers
612
views
Microsoft App Installer protests isufficient minimum OS version of Windows App SDK bundle
I have a Microsoft Store app built with WinUI 3 and the Windows App SDK 1.0.0, built on a Windows 11 machine.
When attempting to install the bundle on a Windows 10 machine, the Installer fails on ...
0
votes
0
answers
1k
views
How do I customize the Window Titlebar in a Windows App SDK (WIN UI/Project Reunion) Project?
I'm trying to build an app using the new Widows App SDK. I used the Windows Community Toolkit to create the application.
After consulting the documentation, I tried this:
On the first page that my app ...