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

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.

asked
commented
Jay Pham (WICLOUD CORPORATION) 3,790 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…

asked
WoodManEXP 80 Reputation points
commented
Jay Pham (WICLOUD CORPORATION) 3,790 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…

asked
WoodManEXP 80 Reputation points
edited an answer
Jay Pham (WICLOUD CORPORATION) 3,790 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…

asked
Fei Xue - MSFT 1,111 Reputation points
answered
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…

asked
fangfang wu 91 Reputation points β€’ Microsoft Employee β€’ Moderator
answered
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…

asked
Fei Xue - MSFT 1,111 Reputation points
answered
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.

asked
Lucas 41 Reputation points
answered
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…

asked
Thomas Pentenrieder 36 Reputation points β€’ MVP
answered
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:…

asked
Fei Xue - MSFT 1,111 Reputation points
answered
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…

asked
BananasHelp20 20 Reputation points
commented
Nancy Vo (WICLOUD CORPORATION) 5,865 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…

asked
fangfang wu 91 Reputation points β€’ Microsoft Employee β€’ Moderator
commented
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…

asked
Renee Hetrick 20 Reputation points
commented
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…

commented
Jay Pham (WICLOUD CORPORATION) 3,790 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…

asked
Raja Shanmugam 40 Reputation points
accepted
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.

commented
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 …

asked
Hong 1,526 Reputation points
edited a comment
Jay Pham (WICLOUD CORPORATION) 3,790 Reputation points β€’ Microsoft External Staff β€’ Moderator
2 answers One of the answers was accepted by the question author.

Error APPX1204 Creating App Package for upload to MS Store

This is happening with Visual Studio Insiders [11709.129] with a UWP XBox targeted app. The app has been successfully side-loaded and tested on Dev-mode XBox. Creating the App Package produces this error: Failed to sign <filename.msix>. SignTool…

asked
WoodManEXP 80 Reputation points
accepted
WoodManEXP 80 Reputation points
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…

asked
JΓ©rΓ΄me S 25 Reputation points
accepted
JΓ©rΓ΄me S 25 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,…

asked
musonda kaputo 0 Reputation points
commented
Michael Le (WICLOUD CORPORATION) 11,330 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…

asked
Hong 1,526 Reputation points
commented
Hong 1,526 Reputation points