2,983 questions with Universal Windows Platform (UWP) tags

Sort by: Updated
1 answer

RenderTargetBitmap renders low quality image of the UIElement

Hi, I have a Xamarin.Forms application deployed in UWP, in which I have added Xamarin.Forms.Image to the page and trying to convert the UIElement to image using RenderTargetBitmap, the converted image quality is reduced. Again I have added the converted…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,362 questions
Universal Windows Platform (UWP)
asked 2023-01-17T14:53:16.2+00:00
Imman Kumar 6 Reputation points
commented 2024-11-23T07:14:27.24+00:00
ManojKumar 0 Reputation points
0 answers

MediaClip.CreateFromFileAsync() throws System.ArgumentException

MediaClip videoClip = await MediaClip.CreateFromFileAsync(storageFileVideo); The above code occasionally throws the following exception: System.ArgumentException at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21 at…

Universal Windows Platform (UWP)
asked 2024-11-13T02:26:31.3266667+00:00
Hong 1,211 Reputation points
commented 2024-11-23T02:05:04.4433333+00:00
Hong 1,211 Reputation points
0 answers

How do I localize the AppDescription of Desktop Bridge apps?

I have a UWP application. The project contains the following files: de-DE\Resources.resw en-US\Resources.resw Each file contains a text with the key AppDescription. en-US is set as the default language in Package.appxmanifest. When submitting to the…

Universal Windows Platform (UWP)
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,788 questions
Microsoft Partner Center
Microsoft Partner Center
A Microsoft website for partners that provides access to product support, a partner community, and other partner services.
1,027 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,058 questions
asked 2024-11-13T13:08:33.4966667+00:00
Heiko 1,261 Reputation points
commented 2024-11-22T12:13:10.6266667+00:00
Heiko 1,261 Reputation points
0 answers

Issue Retrieving Campaign ID (cid) in Microsoft Store app

I am encountering an issue with retrieving the CampaignId (cid) parameter programmatically in an application installed from a Microsoft Store following Create a custom app promotion campaign guide. To retrieve the CampaignId, I am using code provided in…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,951 questions
Universal Windows Platform (UWP)
asked 2024-11-22T09:39:02.9733333+00:00
Joel 0 Reputation points
0 answers

Windows.Data.Pdf.PdfDocument Crash with file size greater than 2GB

Same issue as here (no replies there, it's an old thread) https://learn.microsoft.com/en-us/answers/questions/248422/windows-data-pdf-pdfdocument-crash My notes: Crash is not catchable which makes it really hard to find reason for issue or…

Universal Windows Platform (UWP)
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,058 questions
asked 2024-11-12T17:59:23.92+00:00
Jérôme S 5 Reputation points
commented 2024-11-22T02:44:45.6266667+00:00
Junjie Zhu - MSFT 19,316 Reputation points Microsoft Vendor
1 answer

UWP pipe client and C++ Fulltrustprocess pipe server - Access to the path is denied

Hello UWP experts, I get "Access to the path is denied" when connecting a UWP namedpipeclient to C++ Fulltrust process namedpipe server in packaged (WAPP) and non packaged mode. Its a simple piece of code to see how the namedpipe works betweek…

Universal Windows Platform (UWP)
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,670 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,058 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,776 questions
asked 2024-11-19T04:13:17.18+00:00
DotNET Fan 271 Reputation points
edited a comment 2024-11-22T00:53:36.4433333+00:00
Darran Rowe 1,046 Reputation points
1 answer

Can we create and destroy winrt::IObservableVector on different threads?

Hello, I’m working on a multi-threaded WinRT/C++ application and need some clarification on how thread safety works when using winrt::IObservableVector across threads. Specifically, if I create a IObservableVector on one thread (Thread 1) and pass its…

Universal Windows Platform (UWP)
asked 2024-11-20T09:42:45.1266667+00:00
Shyam Butani 285 Reputation points
commented 2024-11-21T11:18:29.61+00:00
Shyam Butani 285 Reputation points
0 answers

How to make sandbox account for testing to purchase app in Microsoft partner center?

"I want to create a sandbox account in Partner Center. How can I do that? I want to test in-app purchases. Could you please guide me?"

Universal Windows Platform (UWP)
Microsoft Partner Center
Microsoft Partner Center
A Microsoft website for partners that provides access to product support, a partner community, and other partner services.
1,027 questions
asked 2024-11-12T05:07:51.9433333+00:00
Deepak Patel 60 Reputation points
commented 2024-11-21T01:58:30.35+00:00
Roy Li - MSFT 33,466 Reputation points Microsoft Vendor
0 answers

Remote Procedure Call Failed (HRESULT: 0x800706BE)

The application uses diagnostic APIs to prevent it from starting repeatedly. However, it crashes on startup, and the following exception information is logged: Remote procedure call failed. (Exception from HRESULT: 0x800706BE) at…

Universal Windows Platform (UWP)
asked 2024-11-20T06:48:49.1666667+00:00
Xie Steven 831 Reputation points
commented 2024-11-21T01:50:58.1333333+00:00
Junjie Zhu - MSFT 19,316 Reputation points Microsoft Vendor
0 answers

WNS(Raw Notification) fail after PC restart and cannot accept message push notifications

Hello, I have found that the message push service(WNS) cannot be used after restarting the computer. After restarting, the PushNotifications LongRunningTask.exe process was not running, so it did not receive a message and subsequent pushes were dropped.…

Universal Windows Platform (UWP)
Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
799 questions
asked 2024-11-16T05:57:06.44+00:00
coco 0 Reputation points
commented 2024-11-21T01:50:55.4666667+00:00
Roy Li - MSFT 33,466 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Can we create and destroy winrt::hstring on different threads?

Hello, I’m working on a multi-threaded WinRT/C++ application and need some clarification on how thread safety works when using winrt::hstring across threads. Specifically, if I create a winrt::hstring on one thread (Thread 1) and pass its ABI pointer to…

Universal Windows Platform (UWP)
asked 2024-11-18T08:50:55.2833333+00:00
Shyam Butani 285 Reputation points
accepted 2024-11-20T09:44:24.6333333+00:00
Shyam Butani 285 Reputation points
1 answer

How to access camera preview frames with MediaCapture class in Unity?

Using the Windows MediaCapture class we can capture videos and images on the HoloLens 2. The class also offers preview capabilities (see here). However, I am not sure how to get the preview stream within Unity and then display it to the user. In the docs…

Universal Windows Platform (UWP)
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,058 questions
HoloLens Development
HoloLens Development
HoloLens: A family of Microsoft self-contained, holographic devices that enable engagement with digital content and interaction with holograms in the surrounding environment.Development: The process of researching, productizing, and refining new or existing technologies.
402 questions
asked 2024-11-15T08:24:11.62+00:00
Valentin 40 Reputation points
commented 2024-11-19T07:28:53.3133333+00:00
Ying Li - MSFT 1,285 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Understanding the lifecycle of winrt::hstring with ABI handling

Hello, I'm trying to understand the lifecycle of winrt::hstring when working with the ABI and managing reference counts. Specifically, I want to store an winrt::hstring in a void* pointer, and to do so, I'm using the copy_to_abi API. This increases the…

Universal Windows Platform (UWP)
asked 2024-11-14T11:10:33.95+00:00
Shyam Butani 285 Reputation points
accepted 2024-11-18T06:05:17.3233333+00:00
Shyam Butani 285 Reputation points
0 answers

System.Exception: The application called an interface that was marshalled for a different thread. (Exception from HRESULT: 0x8001010E)

public Dictionary<Guid, MyClass> _dictMyClass; ... if (_dictMyClass.ContainsKey(gID)) { MyClass myClass = _dictMyClass[gID]; } Occasionally and rarely), the above line throws the following exception: System.Exception: The application called an…

Universal Windows Platform (UWP)
asked 2024-11-06T22:50:46.4466667+00:00
Hong 1,211 Reputation points
commented 2024-11-15T08:40:59.62+00:00
Junjie Zhu - MSFT 19,316 Reputation points Microsoft Vendor
1 answer

VS2022 Error When Deploying HoloLens 2 Application: GameAssembly.lib Not Found

I encountered an error while deploying a HoloLens 2 application using VS2022: GameAssembly.lib not found. I noticed that the file does not exist in the Build folder and I'm not sure why it wasn't generated. I am deploying via Wi-Fi.

Universal Windows Platform (UWP)
HoloLens Development
HoloLens Development
HoloLens: A family of Microsoft self-contained, holographic devices that enable engagement with digital content and interaction with holograms in the surrounding environment.Development: The process of researching, productizing, and refining new or existing technologies.
402 questions
asked 2024-10-29T13:31:49.65+00:00
琛博 程 0 Reputation points
commented 2024-11-13T17:37:06.3033333+00:00
slaters5050 0 Reputation points
1 answer One of the answers was accepted by the question author.

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…

Universal Windows Platform (UWP)
Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
799 questions
asked 2024-11-11T09:55:26.51+00:00
Zev Yang 20 Reputation points
accepted 2024-11-13T08:27:17.5166667+00:00
Zev Yang 20 Reputation points
1 answer

Microsoft Store In-App Purchase Issue: Add-On Products Keep Loading and Show "PEX-CatalogAvailabilityDataNotFound" Error

I'm experiencing an issue with in-app purchases (IAP) in my Unity game published on the Microsoft Store. I have created multiple store-managed consumable add-ons (e.g., "speed_x1", "speed_x3") and have set up their respective product…

Universal Windows Platform (UWP)
Microsoft Partner Center
Microsoft Partner Center
A Microsoft website for partners that provides access to product support, a partner community, and other partner services.
1,027 questions
asked 2024-10-31T14:35:41.2666667+00:00
MecanzLuna 0 Reputation points
commented 2024-11-13T07:17:26.4566667+00:00
Junjie Zhu - MSFT 19,316 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Handling of UWP child window closing behavior

Hello UWP experts , I create the child windows from the main app using the below code. The requirement is at the start dont allow the user to close of window and allow only after 10 to 20 seconds. I couldn't find any pre close event for the child…

Universal Windows Platform (UWP)
asked 2024-07-05T14:15:02.29+00:00
DotNET Fan 271 Reputation points
accepted 2024-11-12T17:26:16.2333333+00:00
DotNET Fan 271 Reputation points
1 answer One of the answers was accepted by the question author.

Multiple Instances of App

Hi UWP experts, So i have enabled multiple instances of my app through the package manifest desktop4:SupportsMultipleInstances="true" and it works perfectly fine when the app is selected from the windows start menu and opens up multiple…

Universal Windows Platform (UWP)
asked 2024-09-19T08:19:31+00:00
DotNET Fan 271 Reputation points
accepted 2024-11-12T17:24:29.3366667+00:00
DotNET Fan 271 Reputation points
3 answers One of the answers was accepted by the question author.

Handling Appservice connections in a multiple instance of fulltrust process

Hello UWP experts, Please look at the below thread . This question is related to the thread. https://learn.microsoft.com/en-us/answers/questions/2087088/uwp-app-communication-with-another-process-(*-exe)?comment=question#newest-question-comment UWP app…

Universal Windows Platform (UWP)
asked 2024-10-15T10:24:46.31+00:00
DotNET Fan 271 Reputation points
accepted 2024-11-12T17:22:08.84+00:00
DotNET Fan 271 Reputation points