3,088 questions with Developer technologies | Universal Windows Platform (UWP) tags

Sort by: Updated
1 answer

Need to launch printing preference from UWP C# app

We are developing UWP application C# to handle printers. We need to open any one of the printer's printing preference page from our application. If we use shellexecute or createprocess to launch the command "rundll32.exe with…

Developer technologies | Universal Windows Platform (UWP)
asked 2026-06-19T09:02:35.61+00:00
Ambigavathi Dhanapal 5 Reputation points
answered 2026-06-19T10:20:19.1666667+00:00
Danny Nguyen (WICLOUD CORPORATION) 7,185 Reputation points Microsoft External Staff Moderator
1 answer

How to test automatic download of PSA

I need to check the automatic download of beta print support app from MS store when i connect a printer with beta printer extension inf.

Developer technologies | Universal Windows Platform (UWP)
asked 2026-06-10T10:10:55.96+00:00
Ambigavathi Dhanapal 5 Reputation points
commented 2026-06-18T07:41:21.9066667+00:00
Jay Pham (WICLOUD CORPORATION) 3,800 Reputation points Microsoft External Staff Moderator
2 answers

Q about splash screen in UWP app

Hi, In the .appxmanifest of this UWP app the Visual Assets have been set and Generated. The generated splash screen looks like this In spite efforts my efforts so far, it has not been possible to change the size of the image in the center of the splash…

Developer technologies | Universal Windows Platform (UWP)
asked 2026-06-06T14:24:19.1833333+00:00
WoodManEXP 80 Reputation points
commented 2026-06-15T08:12:43.9866667+00:00
Jay Pham (WICLOUD CORPORATION) 3,800 Reputation points Microsoft External Staff Moderator
2 answers One of the answers was accepted by the question author.

UWP app throws unhandled exception when installed from .msix package

This is a UWP app with Visual Studio Insiders [11709.129]. When deployed from Visual Studio, started with or without debugging to a Windows 10, an Xbox, or a Windows 11, it runs fine and is passing the tests. However, when the project is published to an…

Developer technologies | Universal Windows Platform (UWP)
asked 2026-05-20T20:14:21.3+00:00
WoodManEXP 80 Reputation points
edited an answer 2026-06-09T02:36:26.5766667+00:00
Jay Pham (WICLOUD CORPORATION) 3,800 Reputation points Microsoft External Staff Moderator
1 answer One of the answers was accepted by the question author.

Switch the ListView Datatemplate from one data template to another data template?

I am developing Universal Windows 10 app, in one of my current project I want to change the ListView Data Template in runtime. Right now I have used only one Data Template, but in my scenario after a button is pressed, I want to change it to another…

Developer technologies | Universal Windows Platform (UWP)
asked 2019-10-30T06:35:18.337+00:00
Fei Xue - MSFT 1,111 Reputation points
answered 2026-06-08T18:30:28.3233333+00:00
Rathod Harshvardhansinh 0 Reputation points
1 answer One of the answers was accepted by the question author.

Setting Textbox.Text from BluetoothLEAdvertisementWatcher's received event throws an exception

I am creating a Bluetooth LE application in C# using a UWP project and have subscribed to get the Received event from the BluetoothLEAdvertisementWatcher. I can see the data correctly using Debug.Writeline to the Output window, but as soon as I try…

Developer technologies | Universal Windows Platform (UWP)
asked 2019-10-30T06:39:53.99+00:00
fangfang wu 91 Reputation points Microsoft Employee Moderator
answered 2026-06-08T18:27:11.8033333+00:00
Rathod Harshvardhansinh 0 Reputation points
1 answer One of the answers was accepted by the question author.

Share a large file between two UWP apps using Stream Sockets

I need to share a large file between two UWP apps which are running in two different machines using stream sockets. In order to share the file successfully, I have to share file size before sharing the actual file. So I had to set a separate event in…

Developer technologies | Universal Windows Platform (UWP)
asked 2019-10-30T06:27:51.737+00:00
Fei Xue - MSFT 1,111 Reputation points
answered 2026-06-08T18:20:58.9933333+00:00
Rathod Harshvardhansinh 0 Reputation points
1 answer One of the answers was accepted by the question author.

Covert my app to UWP

I have a console app and I have made some changes to the registry. If I convert to UWP how it can be done and what happen with the registry.

Developer technologies | Universal Windows Platform (UWP)
asked 2019-11-08T03:50:00.527+00:00
Lucas 41 Reputation points
answered 2026-06-08T18:12:48.7266667+00:00
Rathod Harshvardhansinh 0 Reputation points
1 answer One of the answers was accepted by the question author.

UWP Performance: Task.Run() vs Background Service

I'm working on a UWP app that is showing videos, images & XAML animations. The content displayed is being updated from time to time by pushing updates from the server to the app through grpc. When updates happen the app will need to download new…

Developer technologies | Universal Windows Platform (UWP)
asked 2019-11-04T11:14:01.42+00:00
Thomas Pentenrieder 36 Reputation points MVP
answered 2026-06-08T18:08:26.79+00:00
Rathod Harshvardhansinh 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to check if an add-on has purchased that use StoreContext class

I have defined a durable AddOn, and when I used RequestPurchaseAsync() method to check if an add-on has purchased or not, it always shows UI which will be annoying to the user. In the previous version I used:…

Developer technologies | Universal Windows Platform (UWP)
asked 2019-10-30T06:32:31.537+00:00
Fei Xue - MSFT 1,111 Reputation points
answered 2026-06-08T18:00:58.1266667+00:00
Rathod Harshvardhansinh 0 Reputation points
2 answers One of the answers was accepted by the question author.

Visual Studio Crashing mysteriously because of Data Binding

Hello everybody, I am new to coding in VS and generally to programming C# and Xaml. To give y'all a good overview of my code, i have included all of my Classes and Xaml Files neccessary. I use 2 Pages: a general page displaying all Books, and a Page…

Developer technologies | Universal Windows Platform (UWP)
asked 2026-06-01T23:00:13.46+00:00
BananasHelp20 20 Reputation points
commented 2026-06-04T02:17:14.4733333+00:00
Nancy Vo (WICLOUD CORPORATION) 6,025 Reputation points Microsoft External Staff Moderator
1 answer One of the answers was accepted by the question author.

How to write and read multiple types of data using Data Writer and Data Reader

I need to write a file length, file data and its type as a string value to the stream. I’m using the following code with Data Writer. writer = new DataWriter(socket.OutputStream); // if we have a StorageFile named file using (var…

Developer technologies | Universal Windows Platform (UWP)
asked 2019-10-30T06:58:34.097+00:00
fangfang wu 91 Reputation points Microsoft Employee Moderator
commented 2026-05-31T05:06:49.8566667+00:00
Aryan Kumar Mishra Mishra 0 Reputation points
1 answer

Dev Mode Activation Fails — Redirects to Partner Center, No Workspace Access

I signed the NDA and installed the Dev Mode Activation app on my Xbox. When I try to activate Dev Mode, I get “We can’t authorize your console.” The activation link https://aka.ms/activatexbox redirects to Partner Center or shows a 404. I can’t create a…

Developer technologies | Universal Windows Platform (UWP)
asked 2025-10-13T08:00:13.7666667+00:00
Renee Hetrick 20 Reputation points
commented 2026-05-30T13:50:57.19+00:00
Ahmad ranya 0 Reputation points
2 answers

Optional Packages Persist After Windows Store App Reset

After resetting a Windows Store app through App Settings, optional packages installed as dependencies continue to persist in the system. These "ghost packages" remain functional and accessible via PackageManager APIs but are not visible in App…

Developer technologies | Universal Windows Platform (UWP)
asked 2026-05-18T17:41:53.77+00:00
Diogo Costa Maranhao Rodrigues 120 Reputation points
commented 2026-05-25T08:47:55.5233333+00:00
Jay Pham (WICLOUD CORPORATION) 3,800 Reputation points Microsoft External Staff Moderator
2 answers One of the answers was accepted by the question author.

How to enable Control Flow Guard (CFG) in C# UWP Application

How to enable Control Flow Guard (CFG) in C# UWP Application? I have tried to enable <ControlFlowGuard>Guard</ControlFlowGuard> <UseDotNetNativeToolChain>true</UseDotNetNativeToolChain> in Release | x64 . But it is still not…

Developer technologies | Universal Windows Platform (UWP)
asked 2026-03-10T10:36:31.3066667+00:00
Raja Shanmugam 40 Reputation points
accepted 2026-05-14T04:38:37.9633333+00:00
Raja Shanmugam 40 Reputation points
1 answer

Why i only have 1.3gb to use in Xbox Dev Mode

I understand you can use approximately 5GB of RAM in Xbox Dev Mode, but it only lets me use 1.3GB. screenshot.

Developer technologies | Universal Windows Platform (UWP)
asked 2026-05-02T23:41:55.3033333+00:00
Elias Benjamin Lopez Perez 0 Reputation points
commented 2026-05-13T02:58:33.92+00:00
Danny Nguyen (WICLOUD CORPORATION) 7,185 Reputation points Microsoft External Staff Moderator
2 answers One of the answers was accepted by the question author.

UWP app System.IO.FileLoadException: 'Could not find or load a specific file. (Exception from HRESULT: 0x80131621)'

When I run a UWP app in debugging mode, it always throws this exception at the start: System.IO.FileLoadException HResult=0x80131621 Message=Could not find or load a specific file. (Exception from HRESULT: 0x80131621) Source=System.Private.CoreLib …

Developer technologies | Universal Windows Platform (UWP)
asked 2026-05-06T13:02:06.09+00:00
Hong 1,526 Reputation points
edited a comment 2026-05-08T03:54:03.43+00:00
Jay Pham (WICLOUD CORPORATION) 3,800 Reputation points Microsoft External Staff Moderator
3 answers One of the answers was accepted by the question author.

provider.SignInAsync() error from CommunityToolkit.Authentication.Uwp

The following code of a classic UWP app used for OneDrive access worked for a few years without any issues: string[] scopes = new string[] { "Files.ReadWrite.AppFolder" }; ProviderManager.Instance.GlobalProvider = new…

Developer technologies | Universal Windows Platform (UWP)
asked 2026-05-04T23:05:02.2933333+00:00
Hong 1,526 Reputation points
commented 2026-05-06T10:53:48.14+00:00
Hong 1,526 Reputation points
2 answers

disabled subscription

"Your account or subscription is disabled for security reasons. We detected suspicious activity or terms of use violations and disabled your subscription to protect the owner of the payment instrument and Microsoft. If you believe this is an error,…

Developer technologies | Universal Windows Platform (UWP)
asked 2026-04-25T12:47:16.45+00:00
musonda kaputo 0 Reputation points
commented 2026-04-30T03:54:45.4133333+00:00
Michael Le (WICLOUD CORPORATION) 11,330 Reputation points Microsoft External Staff Moderator
2 answers One of the answers was accepted by the question author.

Windows.Data.Pdf does not render correctly with

The PDF file attached contains text using the following fonts: It is renderer correctly in various applications (firefox, edge, adobe acrobat): however when I render it in my app using Windows.Data.Pdf library, the text isn't correctly displayed: Is…

Developer technologies | Universal Windows Platform (UWP)
asked 2026-04-24T14:09:08.2166667+00:00
Jérôme S 25 Reputation points
accepted 2026-04-25T15:22:58.0733333+00:00
Jérôme S 25 Reputation points