3,016 questions with Universal Windows Platform (UWP) tags

Sort by: Updated
0 answers

To whom can I distribute Promo Codes?

Hello, I want to develop uwp apps and recently read about promo codes. To whom can I distribute Promo Codes? Can I give it to my users in my app who performs well, finishes the levels fast to promote engagement in my apps? i.e, Can I show it in the app…

Universal Windows Platform (UWP)
asked 2025-02-15T14:40:10.24+00:00
Venkatesh 0 Reputation points
1 answer

Error MSB4044 RemoveDisposableSigningCertificate

I am facing this issue while creating UWP package : Error MSB4044 A value was not specified for the task “RemoveDisposableSigningCertificate” for the required “CertificateThumbprint” parameter. C:\Program Files Microsoft Visual Studio…

Universal Windows Platform (UWP)
asked 2025-01-24T05:16:56.2433333+00:00
Hemachandra Rao 10 Reputation points
answered 2025-02-14T14:31:18.9633333+00:00
Mirec543 0 Reputation points
1 answer One of the answers was accepted by the question author.

What is the best variable for save an image and then draw squares over that: WriteableBitmap or softwarebitmap? Or is there a better strategy ?

If I captured an image and then I want to draw something like square or polygon, I want to know what is the best way to handle that image. Is good to save in a WriteableBitmap? or softwareBitmap? Is necessary to load in a Canvas ? Thanks.

Universal Windows Platform (UWP)
asked 2025-02-05T12:44:13.5733333+00:00
Gonzalez, Javier 40 Reputation points
accepted 2025-02-14T11:31:49.3+00:00
Gonzalez, Javier 40 Reputation points
1 answer One of the answers was accepted by the question author.

x:bind observable collection to Grid column width

Hello, I am trying to x:bind ObservableCollection to Grid columns, but my code works only partly. I have such XAML: <ListView x:Name="lvExpAndCosts" ItemsSource="{x:Bind ocExpendituresAndCosts}"> …

Universal Windows Platform (UWP)
asked 2025-02-12T11:39:17.0966667+00:00
BitSmithy 2,161 Reputation points
edited an answer 2025-02-13T09:19:00.7266667+00:00
Junjie Zhu - MSFT 20,441 Reputation points Microsoft Vendor
1 answer

Selected item in ComboBox is not visible when popup is open (UWP)

Hi, I want the ComboBox to show the selected item when its popup is open. This is the look of ComboBox when it is closed: And here is ComboBox with oped popup (Notice that selected "Item 1" in ComboBox is not visible):

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,799 questions
Universal Windows Platform (UWP)
asked 2025-02-06T16:25:10.3333333+00:00
123244 120 Reputation points
commented 2025-02-13T05:57:55.91+00:00
Roy Li - MSFT 33,931 Reputation points Microsoft Vendor
0 answers

Why squares inside canvas get distortion after page resize in uwp app

I made a UWP app and in its xaml file I wrote the following: <Viewbox Height="60" Width="205" VerticalAlignment="Center" HorizontalAlignment="Center"> <Canvas x:Name="Mycanvas"…

Universal Windows Platform (UWP)
asked 2025-02-07T00:10:26.0366667+00:00
Gonzalez, Javier 40 Reputation points
commented 2025-02-13T05:56:40.78+00:00
Roy Li - MSFT 33,931 Reputation points Microsoft Vendor
0 answers

ARM64 UWP DesktopExtension – "e_sqlite3.dll is not a valid Win32 application" despite including runtimes\win-arm64\native

I have an UWP app with Desktop Extension (implemented like this tutorial: https://github.com/StefanWickDev/UWP-FullTrust/tree/master). Here is my sample project, which shows this…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,106 questions
Universal Windows Platform (UWP)
asked 2025-02-11T22:59:23.9333333+00:00
WorldOfBasti 136 Reputation points
commented 2025-02-12T11:22:26.9233333+00:00
WorldOfBasti 136 Reputation points
0 answers

UWP BLE not working for authenticated attributes

I can't write to the CCCD on a BLE device that has the authentication flag enabled on the CCCD

Universal Windows Platform (UWP)
asked 2024-07-31T00:28:15.77+00:00
Corby Wilson 0 Reputation points
commented 2025-02-11T19:31:10.8566667+00:00
Corby Wilson 0 Reputation points
1 answer

UWP C# app: Trouble doing drag and drop from home folder

I am working on a UWP app. I have implemented an event handler such that if you drag a PDF file onto our main page, we begin to process that document. This appears to work fine, so I'm pretty sure we are setting things up reasonably. The exception? …

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,297 questions
asked 2025-02-07T16:25:00.2166667+00:00
Fiederer, Jens JF 20 Reputation points
commented 2025-02-10T07:45:40.0633333+00:00
Roy Li - MSFT 33,931 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to disconnect a Bluetooth (not LE) device from windows computer in UWP/.NetCore/etc.?

I have a Bluetooth device connected to my computer. The following is the state of the device in Bluetooth & Other Devices list. I want to disconnect it from the computer using any API of desktop/UWP app (e.g., IOCTL etc.). So I want to make it to…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,106 questions
Universal Windows Platform (UWP)
asked 2023-04-02T11:02:17.5733333+00:00
Marjan Khan 25 Reputation points
edited a comment 2025-02-08T20:19:23.1633333+00:00
Marjan Khan 1 Reputation point
1 answer One of the answers was accepted by the question author.

Canvas to WriteableBitmap

Hello. I'm imported an images and loaded in a WriteableBitmap. Then i loaded that image in a Image variable. I need to draw a simple square . For that my next step was to load the Image variable in a canvas. Using a polygon i was able to draw a simple…

Universal Windows Platform (UWP)
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,443 questions
asked 2025-01-31T21:18:14.6766667+00:00
Gonzalez, Javier 40 Reputation points
accepted 2025-02-05T12:40:46.2033333+00:00
Gonzalez, Javier 40 Reputation points
1 answer One of the answers was accepted by the question author.

Can we set preview of Drag-and-Drop before drag event in WinUI2?

Hi, I'm working on WinUI2 application with Xaml Island in C++. Suppose we've one draggable TextBlock and when we drag it, we can see some preview moving with the mouse pointer moving. In order to set that preview I'm doing in DragStarting handler as…

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.
823 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,857 questions
asked 2025-01-13T12:48:42.26+00:00
Shyam Butani 355 Reputation points
edited the question 2025-02-03T09:43:22.9233333+00:00
Roy Li - MSFT 33,931 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Unpairing a Bluetooth LE is not working

I use VS C++ 2015-2022 Redistributable (x64) 14.40.33810 with Windows SDK version 10.0.226100.3233, I am able to pair with a BLE device using the UWP API, but I have had absolutely no luck in unpairing the device. I am in need of an urgent help. Thank…

Universal Windows Platform (UWP)
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,857 questions
asked 2025-01-24T17:50:43.28+00:00
F FARAH 20 Reputation points
edited the question 2025-02-03T08:08:10.3933333+00:00
Jack J Jun 24,796 Reputation points Microsoft Vendor
0 answers

How to implement the download of free DLC without using UI thread

Hi, In a store app, is it possible to implemente do download of DLC without the need of the UI thread? I ve tried with storecontext but seems not possible. Also, is it possible to start the download of free DLC without the action of purchasing it? In my…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
12,066 questions
Internet Information Services
Universal Windows Platform (UWP)
asked 2025-01-28T11:17:00.8+00:00
Rhuan Inocêncio 0 Reputation points
commented 2025-01-31T06:59:23.74+00:00
Junjie Zhu - MSFT 20,441 Reputation points Microsoft Vendor
0 answers

Issue with "Mandatory" package update status in Microsoft Store

Hi, I am experiencing an issue with the Microsoft Store incorrectly reporting "Mandatory" package update status in some of my UWP applications. Following the official documentation, I implemented an update flow in my application that provides…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,106 questions
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,297 questions
asked 2025-01-24T12:43:15.7233333+00:00
Joel 5 Reputation points
commented 2025-01-31T02:18:11.95+00:00
Roy Li - MSFT 33,931 Reputation points Microsoft Vendor
2 answers

The issue of porting Unity to UWP and adding in-app purchases.

I have a Unity game and I want to port it to UWP and add Microsoft in-app purchases. Are there any tutorials or case studies available? I have failed multiple times, especially when trying to add DLLs and other components. thanks

Universal Windows Platform (UWP)
asked 2025-01-02T15:44:42.7+00:00
一 王 0 Reputation points
commented 2025-01-31T01:59:06.59+00:00
Roy Li - MSFT 33,931 Reputation points Microsoft Vendor
0 answers

Why does using VideoTransformEffectDefinition affect the camera brightness

I'm using VideoTransformEffectDefinition to rotate the camera VideoPreviewWhy does using VideoTransformEffectDefinition reduce the brightness?How can this problem be avoided?

Universal Windows Platform (UWP)
asked 2025-01-09T12:45:59.61+00:00
LXY 20 Reputation points
commented 2025-01-31T01:58:58.08+00:00
Roy Li - MSFT 33,931 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Is there a way to disconnect a ble connection from server?

After setting service/characteristics and do serviceProvider.StartAdvertising(), then ble client connect the server. How can server do disconnect to a client ? I did't find any api in Docs. In a word, what I want is the method for server to: …

Universal Windows Platform (UWP)
asked 2022-05-21T01:14:33.013+00:00
frank zhang 121 Reputation points
commented 2025-01-30T03:49:13.0633333+00:00
Mike Petrichenko 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to sideload app on Windows Phone 8.1 now?

The Store app seems to have stopped working on Windows Phone 8.1 devices. In this case, how to sideload an app built with WinRT (.appxupload) on Windows Phone 8.1 devices?

Universal Windows Platform (UWP)
asked 2019-12-24T13:08:39.437+00:00
Hong 1,221 Reputation points
commented 2025-01-28T18:38:18.2866667+00:00
Mikael Riuttamäki 0 Reputation points
1 answer One of the answers was accepted by the question author.

Windows Community Toolkit AdaptiveGridView incorrect behavior

Hi, has anyone had this problem when using AdaptiveGridView (Win UI platform). The elements do not want to expand to occupy the full width available for them in the row (I attach a photo). I'll leave you the code for setting the AdaptiveGridView so that…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
12,066 questions
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,297 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,753 questions
asked 2025-01-24T13:00:01.3166667+00:00
123244 120 Reputation points
commented 2025-01-28T10:12:02.8333333+00:00
123244 120 Reputation points