22,528 questions
1
vote
1
answer
50
views
How to make composition ColorShadow control circular?
I am using the ColorShadow control from the CompositionProToolkit in a WinUI/UWP project. I ported it to WinUI by replacing namespaces and Window.Current... with CompositionTarget....
2
votes
0
answers
89
views
How do I send arguments to application in windows launched with shell:appsFolder?
I know you can use the Get-AppxPackage and Get-AppxPackageManifest cmdlets in Powershell to get the package family and it's specific application entry point.
In this example with Windows Media Player ...
0
votes
0
answers
55
views
How to resolve error MSB4036 during UWP packaging?
I encountered this error while packaging my C# UWP project. I've tried some methods, but none of them worked. Could you please help me resolve this issue?
enter image description here
Compile error ...
-1
votes
1
answer
46
views
Unity UWP build: “A scripted object probably BlankScene has a different serialization layout” when using [SerializeField]
I'm encountering a serialization error when building a Unity project for UWP and running it in Visual Studio:
A scripted object probably BlankScene has a different serialization layout when loading (...
0
votes
0
answers
80
views
How to debug Microsoft-Windows-BrokerInfrastructure service
I attempted to declare a print background task (PrintSupportExtensionBackGroundTask) in the appx manifest and register it with the system. However, when the foreground application (i.e., the main ...
0
votes
0
answers
164
views
WebView2 control in an UWP app crashes the entire console on Xbox One
Long story short: an app with a WebView2 crashes the entire system if run on a retail Xbox One
I'm having this strange issue. The crash is not just the app closing, is the entire console that restarts ...
1
vote
0
answers
60
views
How to install a package service as user using C#
I have an UWP app that has a Service as fullTrust application. I'd like to download and install that Service if it does not exist. The download it is being performed, however I have "Access ...
1
vote
0
answers
57
views
.NET MAUI - How to calculate the pixel location based on the scale of the underlying image?
My .NET MAUI app is currently targeting Windows OS. It essentially displays a map and some placemarks on the map.
Here is my relevant xaml lines:
<Grid x:Name="_gridContents">
<...
1
vote
1
answer
39
views
AudioGraph render device disconnect
I have an AudioGraph
Audio*InputNode.AddOutgoingConnection(AudioDeviceOutputNode)
User pauses audio
leaves computer and Monitor eventually turns off, disconnecting the Sound Output Device
User comes ...
1
vote
0
answers
64
views
Change service StartupType of an UWP app takes long time
I'm trying to change the StartupType of MyService from Disabled to Automatic in an UWP application.
It is working with the code:
ProcessStartInfo startInfo = new();
startInfo.FileName = "...
0
votes
1
answer
99
views
How can I obtain the AppxSignature.p7x file?
I'm currently developing a UWP application using VS2022, and have packaged and generated a package in msix format.
package:
picture
Now I want to sign the application installation package.
I tried to ...
0
votes
0
answers
87
views
Consume a C# component with WinUI 3 controls from a WinRT/Win32 project
I followed this tutorial https://learn.microsoft.com/en-us/windows/apps/develop/platform/csharp-winrt/create-winrt-component-winui-cswinrt and I would like to do the same thing but from a Win32 ...
0
votes
1
answer
115
views
How to register for the PSA printing background task
I'm working on PSA (Print Support App) development with the following environment: Windows 10 22H2 and Windows 11 SDK 10.0.26100.0.
In the appx manifest, I attempted to register a background task ...
1
vote
1
answer
76
views
UWP Page leads to Crash on Windows 10 Mobile but works fine on Desktop
I am developing a Windows 10 UWP Application in C# that I want to be able to run on Windows 10 Mobile as well. I've set the Minimum SDK version to 10.0.10240.0 and it starts up just fine. However, it ...
0
votes
0
answers
219
views
How to use AQS search to return only the files having more than one Tag?
I am using the Advanced Query Syntax to search for files having tags. I'm using AQS with Windows Explorer and to improve an existing UWP app that uses AQS extensively.
Tags can be searched for using ...
0
votes
0
answers
51
views
How to check if narrator is enabled in UWP
I want to check if Windows narrator is enabled in UWP. Is there any event which I can subscribe to get narrator event? Alternatively is it possible to check if narrator is enabled?
I tried to find if ...
1
vote
1
answer
81
views
Which is the default fallback font used when FontFamily is invalid?
I’m working on an app that is delivered for both platform UWP and WinUI 3. In UWP, when I misspell or provide an invalid FontFamily, it seems to fall back to Segoe UI Variable. However, in WinUI 3, ...
3
votes
1
answer
154
views
How to bind "DataGridComboBoxColumn.ItemsSource" to Enum collections declared in different derived classes displayed by DataGrid rows?
I have an ObservableCollection of Base Objects bound to a datagrid. I am trying to populate a DataGridComboBoxColumn with Enum values from a derived class instantiated in the observable collection.
...
0
votes
1
answer
162
views
AppServices `AppUnavailable` when packaging as MSIX - Minimal reproducible example available*
I have the following solution structure:
/
└── MyApp.Package.wapproj -> WAP project which packages MyApp.Win in MSIX
└── MyApp.Win.csproj -> ...
-1
votes
1
answer
74
views
Can't use x:bind to ListView in UWP
I am unable to bind AssignmentList to ListView. I have tried removing the Refresh() method, but it still crashes with this exception:
Exception thrown: 'System.NotSupportedException' in WinRT.Runtime....
0
votes
0
answers
30
views
Add-On not visible in UWP App but declared in MSFT Partner Store
There are two add-ons defined for my UWP app in the MSFT Partner Store. These worked until I had to cut a new local code signing certificate. I used my StoreID as the CN.
Now they are no longer ...
2
votes
2
answers
136
views
JsonSerializer not working in release build uwp
When serializing a complex record in an UWP application, it works fine in debug mode, but in release mode, when application is packaged using Windows application packaging project, the JsonSerializer ...
0
votes
0
answers
48
views
How to get the app name from `app_user_model_id` in Python using winsdk / WinRT?
I'm using the winsdk Python package (WinRT bindings) to access media sessions via GlobalSystemMediaTransportControlsSessionManager.
I can successfully get the list of active sessions and their ...
0
votes
0
answers
63
views
get bound from winrt::Windows::Graphics::Capture::GraphicsCaptureItem
is it possible to retrieve bound from winrt::Windows::Graphics::Capture::GraphicsCaptureItem, i see only Size is supported.
Any specific reason its hidden from expose?
https://learn.microsoft.com/en-...
2
votes
0
answers
49
views
UWP HttpClient GetAsync waits forever depending on computer
Why might this Windows.Web.Http.HttpClient instance work on one computer and not another?
I've found these three posts that talk about why Windows.Web.Http.HttpClient.GetAsync might not ever return ...
0
votes
1
answer
73
views
“Old” Mandatory updates and GetAppAndOptionalStorePackageUpdatesAsync
I have a .NET 8 WPF app that I sell through the Microsoft store via what I think is referred to as a Desktop Bridge.
I’m wondering if anyone knows the answer to whether this is intended behavior (or ...
6
votes
2
answers
294
views
UWP - Print Support App - virtual printer not showing up
I want to create a UWP Printer application to set up a virtual printer that I then can select from windows print dialog following the Print Support App design guide as good as I can.
I expect that at ...
1
vote
1
answer
209
views
How to use AMD AV1 hardware encoder with `MediaTranscoder`?
I am using MediaTranscoder with GraphicsCaptureItem to capture screen and record to a compressed video file.
I have Radeon 860M (built into Ryzen AI 7 350), that supports hardware encoding of H.264 ...
1
vote
0
answers
42
views
Inconsistent UWP DateTimeFormatter output for similar patterns with en-US culture
I'm using Windows.Globalization.DateTimeFormatting.DateTimeFormatter in a UWP app with the culture set to "en-US". I noticed inconsistent formatting between two similar patterns.
Scenario:
...
0
votes
1
answer
150
views
Print Support Application - Invalid Appx Manifest
i want to create a PSA (Print Support Application) using dotnet 9.0.300 and Windows 11 SDK. I'm using VS Professional 17.14.2. OS is Windows 11 Pro Version 10.0.26100.
The deploy results in the ...
2
votes
1
answer
263
views
.NET 9 UWP Project with NativeAOT: "Overriding System.Private.CoreLib.dll with a newer version is not supported" error during publish
I'm developing a UWP application using .NET 9 with NativeAOT. When I try to publish the project, I get the following error:
D:\Documents\.nuget\packages\microsoft.dotnet.ilcompiler\9.0.4\build\...
0
votes
2
answers
110
views
Access is denied. (Exception from HRESULT: 0x80070005) on AddPackageByAppInstallerFileAsync
I am using the AddPackageByAppInstallerFileAsync method on several UWP apps. It has worked on all of the apps except recently for one of the apps. I get a "Access is denied. (Exception from ...
0
votes
0
answers
35
views
RESTsharp seems to cause error in Release build of Windows UWP App
We needed to send REST API requests to the Google and Zoom APIs from our UWP App, so we decided to use RESTsharp
The code that uses RESTsharp all works fine when we build the UWP App in Debug.NET ...
-1
votes
1
answer
47
views
How to find the font used in Windows Universal App?
There's a third party Windows Universal App that uses a particular font for rendering text on its UI. How can I find out the name of that font?
0
votes
1
answer
87
views
Modify WinUI3 Template Studio project
I create main project using WinUI3 and second project using UWP Template Studio. I want to migrate FirstRunDialog Service from UWP to WinUI3 but I have error like:
System.ArgumentException: 'The ...
0
votes
0
answers
41
views
React Native Windows: C++ UWP - How to open a folder : LaunchFolderAsync-> (A method was called at an unexpected time)
I cannot open a folder to windows explorer using a native module (C++ UWP).
I tried following the appropriate manner UWP C++
StorageFolder folder{ co_await StorageFolder::GetFolderFromPathAsync(...
0
votes
1
answer
43
views
How to hide a ListView item in UWP depending on item's property
I have a StoreViewModel, which implements INotifyPropertyChanged. And a property in it:
public ObservableCollection<ItemModel> ItemsCollection
{
get => _itemsCollection;
set => ...
0
votes
1
answer
48
views
UWP performance issue in remote desktop when using ListView. But this issue does not happen when using ScrollViewer
On remote desktop, the following code causes the list items to appear grey for a few seconds while scrolling.
<ListView Margin="10" ItemsSource="{Binding Items}" ></...
1
vote
1
answer
72
views
broad file system access denied in UWP app
I made successful Silverlight apps with disk access, see here.
I also made a UWP app.
I tried to add broad file access without success.
<Capabilities>
<Capability Name="...
0
votes
0
answers
31
views
Create a PopUp with dynamic pointer and content in UWP
I want to create a popup in UWP,
It can be clicked anywhere from a canvas
It should be with a triangle pointer
The main popup can be moved dynamically but pointer should always point in the clicked ...
-1
votes
3
answers
181
views
Consuming a Universal Windows class library from a WPF app
Visual Studio 2022. Solution with two projects: a WPF C# UI app, and a Universal Windows (UWP) class library in C++. The former makes a reference to the latter. At compile time, I can see that the C# ...
0
votes
1
answer
253
views
MSIX Packaging Tool - Failing Installation
I am trying to create a Windows app from the following simple Python code.
from qtpy.QtWidgets import QApplication, QLabel
from qtpy.QtCore import Qt
if __name__ == "__main__":
# Create ...
0
votes
0
answers
31
views
Can't make UWP Templated Control
I really want a Templated Control in my UWP app. Just like Custom Control in WPF, not User Control. But I can't make it work with Visual Studio 2022. When I add a new Templated Control to the MainPage ...
3
votes
1
answer
648
views
Visual Studio 2022 XAML Designer for UWP App Not Working
While attempting to follow the instructions on Microsoft's Learn Page linked here:
https://learn.microsoft.com/en-us/visualstudio/get-started/csharp/tutorial-uwp?view=vs-2022
I'm unable to get the ...
6
votes
0
answers
420
views
Create virtual printer using UWP Printer Support App (PSA)
net community,
I'm trying to create a UWP PSA application following the https://learn.microsoft.com/en-us/windows-hardware/drivers/devapps/print-support-app-v4-design-guide guide. However when I ...
0
votes
0
answers
219
views
WinUI 3 amd/or UWP with Winforms XAML Islands Solution for .NET 6+
For understanding XAML Islands, I've gone through
https://learn.microsoft.com/en-us/windows/apps/desktop/modernize/xaml-islands/host-standard-control-with-xaml-islands
and
https://learn.microsoft.com/...
0
votes
0
answers
90
views
How to diagnose Snipping Tool redirect when opened programmatically?
I have an UWP (.NET Core 2.1) application and trying to call the snipping tool:
var package = Windows.ApplicationModel.Package.Current;
var responseUri = "myapp://app";
var options = $"...
1
vote
1
answer
112
views
Why is Package.appxmanifest required for BLE / UWP?
I have a C# (WPF) application that pairs with and gets data from a device using Bluetooth Low Energy, using the namespaces in UWP. I've been having intermittent problems (especially with the ...
-1
votes
1
answer
119
views
IsCancellationRequested taking a long time to update after Cancel()
I'm noticing some strange behaviour with CancellationTokenSource wherein when I call the Cancel() method, IsCancellationRequested takes some time to update.
I am not sure if this is the cause, but in ...
0
votes
1
answer
80
views
Add Azure Communication Calling to UWP APP Marshalling Data
I've added Azure.Communication.Calling.WindowsClient to a UWP app.
It all works fine when running the app in Debug, but when I run it in Release I get this error when trying to use the library:
...