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

Sort by: Updated
1 answer

How do I know when a binding is complete?

I have a CombBox like below: <ComboBox x:Name="fileTypeListBox" ItemsSource="{x:Bind local:App.fileCategories}" SelectedValuePath="Code" …

Universal Windows Platform (UWP)
asked 2024-04-16T13:20:44.6766667+00:00
杨岑 101 Reputation points
edited a comment 2024-04-19T15:46:27.65+00:00
杨岑 101 Reputation points
0 answers

How to remove Bottom Border Textbox | UWP

Hello. I have a native TextBox and I'd like to remove this blue border-bottom in Light and Dark: Focus State: Rest: I'd like to remove all these bottom borders. However, if my SO is in High Contrast mode, I'd like to keep these native borders: …

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,201 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
762 questions
asked 2024-04-19T14:49:44.9933333+00:00
Anderson Rodrigues Cavalcante 251 Reputation points
0 answers

How implement a XAML control that is similar with WIN32 listview?

In traditional WIN32 SDK, we have a ListView control with column headers (like the one we have in file Explorer). How to implement similar control using XAML? I did some research and GridView seems very promising. The official UWP samples repo on GitHub…

Universal Windows Platform (UWP)
asked 2024-04-19T14:27:50.19+00:00
杨岑 101 Reputation points
0 answers

Do you know of any forum sites that except questions about uwp making apps & coding, from visual studio 2022

Do you know of any forum sites that except questions about making uwp apps & coding, from visual studio 2022

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,570 questions
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.
4,577 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,103 questions
asked 2024-04-19T11:34:06.13+00:00
Luke Ferguson 41 Reputation points
0 answers

I’ve made a uwp app like google earth I need help with some code for putting into app Functions like changing map appearances Eg: Dark, Animation, satellite AerialWithRoads, Traffic Flow I want to keep my Search Bar on visual studio 2022

I’ve made a uwp app like google earth I need help with some code for putting into app Functions like changing map appearances Eg: Dark, Animation, satellite AerialWithRoads, Traffic Flow I want to keep my Search Bar on visual studio 2022

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,570 questions
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.
4,577 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,103 questions
asked 2024-04-19T11:03:22.1966667+00:00
Luke Ferguson 41 Reputation points
edited the question 2024-04-19T11:10:39.3033333+00:00
Luke Ferguson 41 Reputation points
2 answers

How I get 300 DPI with 648 X 1016 Using SKBitmap

I am trying to PNG image to BMP image via using SKBitmap, the BMP image not set in 300 DPI why? below i mentioned my code, if there is any mistakes please correct my code using (SKBitmap pngBitmap = SKBitmap.Decode(inputFilePath)) { …

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,201 questions
asked 2024-04-16T07:17:48.06+00:00
Saranya Karthik 20 Reputation points
commented 2024-04-19T10:07:37.5233333+00:00
Junjie Zhu - MSFT 14,366 Reputation points Microsoft Vendor
1 answer

Enable FrameworkElements reflection using rd.xml file

Hello, Reading Microsoft docs I found informations about rd.xml file. Can I set in that file that metadata from FrameworkElements or Shapes wont be removed during compilation? And I will be able to fully using reflection after release type…

Universal Windows Platform (UWP)
asked 2024-04-09T15:01:04.1+00:00
BitSmithy 1,751 Reputation points
edited a comment 2024-04-19T08:26:11.6166667+00:00
Junjie Zhu - MSFT 14,366 Reputation points Microsoft Vendor
0 answers

while i use the API : var PDevice = PhoneLineTransportDevice.FromId, it return null

I use the below codes, try to get the PhoneLineTransportDevice, but the API FromID returns null //this API works well, can get the DeviceInformation DeviceInformationCollection devices = await…

Universal Windows Platform (UWP)
asked 2024-04-18T15:10:46.03+00:00
Mingping1 Zhang 0 Reputation points
commented 2024-04-19T07:47:47.6366667+00:00
Junjie Zhu - MSFT 14,366 Reputation points Microsoft Vendor
1 answer

How get visual items of a ComboBox using databinding?

It's a followup question of https://learn.microsoft.com/en-us/answers/questions/1656636/how-do-i-know-when-a-binding-is-complete. The ComboBox is databound using ItemsSource, now I don't have control of the Items property because it's a simply set to…

Universal Windows Platform (UWP)
asked 2024-04-17T12:48:02.6533333+00:00
杨岑 101 Reputation points
answered 2024-04-18T12:43:31.8233333+00:00
杨岑 101 Reputation points
1 answer

Need help on XAML syntax for ThemeResource and binding in DataTemplate

I have the following code and XAML: class FileCategory { public string Code { get; set; } public string Name { get; set; } } <!-- <Page.Resources> section contains theme resources --> <ComboBox.ItemTemplate> …

Universal Windows Platform (UWP)
asked 2024-04-16T10:06:26.62+00:00
杨岑 101 Reputation points
answered 2024-04-18T10:20:54.0966667+00:00
Junjie Zhu - MSFT 14,366 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

The functionality of ms-screenclip is the same as ms-screensktech on Windows 11.

In my C# uwp project I want to make the state of the snipping tool appear when the combination windows + shift + s is pressed. I have the same implementation as the official documentation says: bool result = await Launcher.LaunchUriAsync(new…

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,201 questions
asked 2024-04-17T08:48:03.8766667+00:00
Tamás Bitó 20 Reputation points
accepted 2024-04-18T08:51:46.48+00:00
Tamás Bitó 20 Reputation points
1 answer One of the answers was accepted by the question author.

Data binding auto update question

I cannot get it working. I bind a list of FileCategory to a ComboBox.ItemsSource (OneWay mode), but when I add new items to the list, the ComboBox won't get update accordingly. class FileCategory { public string Name { get; set; } public string…

Universal Windows Platform (UWP)
asked 2024-04-18T02:13:17.27+00:00
杨岑 101 Reputation points
accepted 2024-04-18T07:47:23.38+00:00
杨岑 101 Reputation points
1 answer One of the answers was accepted by the question author.

How set ThemeResource using code?

My XAML code: <Page.Resources> <ResourceDictionary> <ResourceDictionary.ThemeDictionaries> <ResourceDictionary x:Key="Light"> <ImageSource…

Universal Windows Platform (UWP)
asked 2024-04-16T16:41:56.0833333+00:00
杨岑 101 Reputation points
accepted 2024-04-17T14:24:15.1266667+00:00
杨岑 101 Reputation points
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
杨岑 101 Reputation points
accepted 2024-04-17T14:23:30.1766667+00:00
杨岑 101 Reputation points
1 answer

Communication channel between a windows app and UWP app

I have a UWP project and a Windows app (.NET 5) both installed on the same machine, which will also be the case in production. However, the UWP app is sideloaded and not installed via the Windows Store. The Windows app retrieves data by listening to a…

Universal Windows Platform (UWP)
asked 2024-04-03T10:28:43.14+00:00
IndiaMachinemart.in 0 Reputation points
commented 2024-04-16T09:12:59.49+00:00
Roy Li - MSFT 31,551 Reputation points Microsoft Vendor
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,201 questions
asked 2024-04-15T09:56:10.5566667+00:00
Saranya Karthik 20 Reputation points
answered 2024-04-16T07:39:49.98+00:00
Junjie Zhu - MSFT 14,366 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://learn.microsoft.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
杨岑 101 Reputation points
accepted 2024-04-15T11:45:40.1866667+00:00
杨岑 101 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,201 questions
asked 2024-04-15T08:16:29.13+00:00
Saranya Karthik 20 Reputation points
commented 2024-04-15T09:09:06.65+00:00
Junjie Zhu - MSFT 14,366 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 5 Reputation points
commented 2024-04-15T02:21:18.5666667+00:00
Junjie Zhu - MSFT 14,366 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
杨岑 101 Reputation points
commented 2024-04-11T04:34:37.0466667+00:00
Junjie Zhu - MSFT 14,366 Reputation points Microsoft Vendor