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

Sort by: Updated
1 answer One of the answers was accepted by the question author.

Is it mandatory to put images in Assets folder?

All samples in the offical docs have images put in Assets folder. Is it an absolute requirement to put images in Assets folder? For my tests, I can actually put images in another folder say Images that is parallel to Assets.

Universal Windows Platform (UWP)
asked 2024-04-17T06:07:18.55+00:00
杨岑 171 Reputation points
accepted 2024-04-17T14:23:30.1766667+00:00
杨岑 171 Reputation points
2 answers One of the answers was accepted by the question author.

Solve Transparent/Black background BMP image file generate via C# code

I create to design membership card with data(memebership ID, member photo, Firstname,lastnema, expire dateand level) via using CanvasDevice to draw all text with position declaration. after i generate to save (BMP) image to local storage, the stored…

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.
10,590 questions
asked 2024-04-15T09:56:10.5566667+00:00
Saranya Karthik 40 Reputation points
answered 2024-04-16T07:39:49.98+00:00
Junjie Zhu - MSFT 16,391 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How organize UWP image resources based on theme

According to this article (https://video2.skills-academy.com/en-us/windows/uwp/app-resources/images-tailored-for-scale-theme-contrast), I organized images like below in my…

Universal Windows Platform (UWP)
asked 2024-04-13T08:00:10.4566667+00:00
杨岑 171 Reputation points
accepted 2024-04-15T11:45:40.1866667+00:00
杨岑 171 Reputation points
0 answers

how to send data to the pre-printed template card in Evolis card printer

I generate BMP image file to send the Evolis card printer with transparent/no background settings only I send Memeber ID, Name, Expire date,member photo, for pre-printed template card on feeder, but my result is set black shade on back of the data to be…

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.
10,590 questions
asked 2024-04-15T08:16:29.13+00:00
Saranya Karthik 40 Reputation points
commented 2024-04-15T09:09:06.65+00:00
Junjie Zhu - MSFT 16,391 Reputation points Microsoft Vendor
1 answer

My Own Developed UWP App Crashes on Launch while Microsoft Store Tested for Me but Works Fine Locally

Hello, I’m experiencing an issue with my developed UWP application. The application works perfectly on my local machines, but it crashes on launch during Microsoft Store’s certification testing. Here are the details: Local Environment: The first…

Universal Windows Platform (UWP)
asked 2024-04-02T15:09:37.13+00:00
BEAS Soon 10 Reputation points
commented 2024-04-15T02:21:18.5666667+00:00
Junjie Zhu - MSFT 16,391 Reputation points Microsoft Vendor
0 answers

Dropped file/folder is readonly

I want to enable user drag & drop folders onto a listbox based on this example (https://www.c-sharpcorner.com/UploadFile/6d1860/implementing-file-drag-drop-in-your-windows-10-uwp-applica/). But it seems the dropped folder has Attributes set to…

Universal Windows Platform (UWP)
asked 2024-04-10T10:44:14.04+00:00
杨岑 171 Reputation points
commented 2024-04-11T04:34:37.0466667+00:00
Junjie Zhu - MSFT 16,391 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to get DependencyProperty from PropertyName in Runtime

Hello, How to get DependencyProperty from PropertyName in Runtime. I want to write such code: TextBox tbx = new TextBox(); tbx.SetValue(TextBox.TextProperty, "ssss"); more gerneral. I want to do something like that: TextBox tbx;…

Universal Windows Platform (UWP)
asked 2024-03-28T16:03:13.4033333+00:00
BitSmithy 1,956 Reputation points
accepted 2024-04-09T14:45:46.63+00:00
BitSmithy 1,956 Reputation points
1 answer One of the answers was accepted by the question author.

How to create simple UWP application using windows-rs crate from rust?

Trying to use a capture object picker which requires to have a main processor loop which is only run in a window so the uwp unlike win32 requires a window to be created from. How am I supposed to instantiate that window using windows-rs/the windows…

Universal Windows Platform (UWP)
asked 2024-04-04T15:44:47.1+00:00
Timothy M. Heath 20 Reputation points
accepted 2024-04-05T15:38:32.89+00:00
Timothy M. Heath 20 Reputation points
0 answers

Xamarin.UWP: Release build failed when solution has many class and generic types

I have two solutions base on the same framework, has the same NuGet packages, and all can run in debug model and be release to android. The bigger one failed on release build, but the other one build success. The build log shows: …

Universal Windows Platform (UWP)
asked 2021-08-15T17:04:45.697+00:00
Volcano 56 Reputation points
commented 2024-04-05T07:29:42.8133333+00:00
Yann Zahringer Ferrando 0 Reputation points
0 answers

error : RHBIND : error RHB0002: Failed to write PDB.

A UWP app has been in the store a quite a few years and working well. I am trying to publish an update. The code change is minor. The major change is probably that target Windows 11. I also updated some NuGet packages. Everything still works fine with…

Universal Windows Platform (UWP)
asked 2022-12-19T03:13:40.867+00:00
Hong 1,211 Reputation points
commented 2024-04-05T07:28:52.5033333+00:00
Yann Zahringer Ferrando 0 Reputation points
0 answers

How to sign Console App inside Windows Application Packaging Project

I have a Windows Application Packaging Project that contains UWP and Console App. UWP app is set as entry point and in defined condition it starts Console App with FullTrustProcessLauncher. When this happens - Console requests admin rights and user…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,581 questions
Universal Windows Platform (UWP)
asked 2024-04-01T08:56:25.7966667+00:00
Vladyslav Tereschuk 0 Reputation points
commented 2024-04-04T09:58:09.7266667+00:00
Junjie Zhu - MSFT 16,391 Reputation points Microsoft Vendor
2 answers

UWP: Get content type from file extension

In .NET Core I have FileExtensionContentTypeProvider which maps file extension to content type. What do I have in UWP? Though I can use StorageFile.ContentType after StorageFile.GetFolderFromPathAsync but it's an overkill.

Universal Windows Platform (UWP)
asked 2024-04-03T08:28:39.4+00:00
杨岑 171 Reputation points
answered 2024-04-04T04:57:27.2733333+00:00
杨岑 171 Reputation points
2 answers One of the answers was accepted by the question author.

Bluetooth low energy API improvement request - managing and reading peripheral bonds

We work with BLE programmers that as part of their API provide the ability to serialize, deserialize, and read the bond keys exchanged with a BLE peripheral when paired. This includes things like EDIV/RAND/LTK/CSRK/IRK. I would like to request an API in…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,090 questions
Universal Windows Platform (UWP)
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,828 questions
asked 2024-02-27T19:44:57.5566667+00:00
EricP-8687 80 Reputation points
answered 2024-03-30T03:29:16.68+00:00
index source 0 Reputation points
1 answer

UWP App thumbnail preview custom title

I have an UWP app and i have option to open different pages in separate window and i want to each window with different title and i achieve it using "ApplicationView.GetForCurrentView()". But for the thumbnail preview it shows the display name…

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.
10,590 questions
asked 2024-03-13T07:26:14.83+00:00
shriram 90 Reputation points
commented 2024-03-29T06:32:51.72+00:00
Junjie Zhu - MSFT 16,391 Reputation points Microsoft Vendor
0 answers

UWP Blank app throws error code: The app didn't start.. Activation phase: COM ActivateExtension

I'm trying to integrate a native DLL project (has huge code with 3rd party dependencies) to Blank UWP. The Blank App project build fine but throws error when it is lauched. In Event Viewer, log suggests Error code: The app didn't start.. Activation…

Universal Windows Platform (UWP)
asked 2024-03-28T10:53:21.83+00:00
MUDIDE Goutham 0 Reputation points
commented 2024-03-29T02:53:48.99+00:00
Junjie Zhu - MSFT 16,391 Reputation points Microsoft Vendor
0 answers

How to know which WiFi adapter will be used with a "WiFiDirectAdvertisementPublisher" when multiple WiFi adapters are available

I am using the WiFiDirectAdvertisementPublisher to provide a hotspot functionality that prevents internet access, if 2 WiFi adapters are connected how can I tell/define which one will/should be used? This is the API I am referring…

Universal Windows Platform (UWP)
asked 2024-03-22T11:19:48.97+00:00
AW-8090 0 Reputation points
commented 2024-03-27T08:27:40.8633333+00:00
Roy Li - MSFT 32,731 Reputation points Microsoft Vendor
1 answer

How to convert a UWP app to an .exe or .msi file.

How to convert a UWP app to an .exe or .msi file.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,322 questions
Universal Windows Platform (UWP)
asked 2024-03-26T11:08:05+00:00
Ziya 0 Reputation points
answered 2024-03-27T06:59:14.4433333+00:00
Junjie Zhu - MSFT 16,391 Reputation points Microsoft Vendor
0 answers

I get error AuthHost disallowed UrlAction: 0x2101 for URL: https://challenges.cloudflare.com/turnstile/v0/g/dc6b543c1346/api.js

I have UWP app. Recently I have moved from google captcha to cloudflare turnstile for one website. In the application I use WebAuthenticationBroker to perform oauth2 like this: WebAuthenticationResult webAuthenticationResult = await…

Universal Windows Platform (UWP)
asked 2024-03-25T11:24:34.53+00:00
BackNot 46 Reputation points
commented 2024-03-26T03:13:37.54+00:00
Junjie Zhu - MSFT 16,391 Reputation points Microsoft Vendor
0 answers

How to determine Original BLE device from ScanResponse packet

Hello, I am trying to filter for a certain list of devices based on Service UUIDs available from the BLE advertising data. From what I understand, this is possible to do by enabling a watcher's scanner mode to be Active. By doing this, I am able to see…

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.
10,590 questions
asked 2024-03-22T04:45:11.07+00:00
PizzaCake-0876 0 Reputation points
commented 2024-03-25T03:27:58.4633333+00:00
Roy Li - MSFT 32,731 Reputation points Microsoft Vendor
1 answer

How to know if a WiFi adapter can be used with a "WiFiDirectAdvertisementPublisher"

I am using the WiFiDirectAdvertisementPublisher to provide a hotspot functionality that prevents internet access, how can I tell if a WiFi adapter supports this API or not? This is the API I am referring…

Universal Windows Platform (UWP)
asked 2024-03-22T11:30:23.59+00:00
AW-8090 0 Reputation points
answered 2024-03-25T02:54:16.6466667+00:00
Roy Li - MSFT 32,731 Reputation points Microsoft Vendor