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

Sort by: Updated
2 answers

test a question

test test test test

Universal Windows Platform (UWP)
asked 2024-04-30T06:06:05.95+00:00
Amy Peng-MSFT 251 Reputation points Microsoft Employee
answered 2024-04-30T06:08:25.3+00:00
Fei Han - MSFT 306 Reputation points Microsoft Vendor
1 answer

UWP Designer not showing in Windows 10 22h2

I am using Windows 10 22h2 (19045.4170) and have the latest Windows 11 SDK (22621.0) and Windows 10 SDK (20348.0). In Visual Studio (UWP Project), my target version is Windows 10 version 2104, but I am unable to view the designer and it tells me to…

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,821 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.
10,574 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
999 questions
asked 2024-04-08T12:41:37.9933333+00:00
Emmanuel James 20 Reputation points
edited the question 2024-04-30T01:41:51.2066667+00:00
Tianyu Sun-MSFT 28,941 Reputation points Microsoft Vendor
2 answers

UWP, c++\cx, Memory leak with file and folder management

UWP application, c++\cx language, 10.0.17763.0 target platform: if I create a loop that creates and then destroys a directory then the committed memory of the process grows indefinitely. On a machine with 32GB of RAM and 1T of disk I got up to 5GB of…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,068 questions
Universal Windows Platform (UWP)
asked 2024-04-02T08:29:06.1166667+00:00
Stefano Rosini 0 Reputation points
commented 2024-04-29T06:26:38.2+00:00
Stefano Rosini 0 Reputation points
1 answer One of the answers was accepted by the question author.

how do I find the working area of my uwp app in .net using C#

This is a simple question but I'm having a rough time finding an answer. What I want to find is the working area of my application. I'm working in Visual Studio 2022 and have created the basic project. Searches on the internet result in many answers…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,574 questions
Universal Windows Platform (UWP)
asked 2024-04-24T13:23:16.3+00:00
Joe Babb 60 Reputation points
commented 2024-04-25T11:50:53.4333333+00:00
lunchtiemre 0 Reputation points
1 answer One of the answers was accepted by the question author.

Draw rectangle with corner radius and fit an image bytes to that rectangle with same corne radius

Below I attached my code I need an image with a border and corner radius, please correct my code, and give any other guidelines CanvasRenderTarget renderTarget = new CanvasRenderTarget(device, cardWidth, cardHeight, dpi); using…

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,574 questions
asked 2024-04-23T07:21:58.97+00:00
Saranya Karthik 40 Reputation points
commented 2024-04-25T05:25:19.1933333+00:00
Saranya Karthik 40 Reputation points
1 answer

Is it possible to have a floating panel on top of main window?

I see that creating a another window in UWP is extremely difficult. Is it possible to let a panel or something floating like a tool window on top of main window?

Universal Windows Platform (UWP)
asked 2024-04-21T16:49:28.2933333+00:00
杨岑 171 Reputation points
commented 2024-04-25T02:45:21.46+00:00
Roy Li - MSFT 32,721 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Is Microsoft.Toolkit.Uwp.UI.Controls.DataGrid still alive?

I think I need this wonderful control. The official package (https://www.nuget.org/packages/Microsoft.Toolkit.Uwp.UI.Controls.DataGrid) shows last update is more than one year ago. Is it still alive? Can I still use it in my new UWP projects?

Universal Windows Platform (UWP)
asked 2024-04-20T12:26:00.24+00:00
杨岑 171 Reputation points
accepted 2024-04-23T03:52:12.4766667+00:00
杨岑 171 Reputation points
1 answer One of the answers was accepted by the question author.

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,574 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.
786 questions
asked 2024-04-19T14:49:44.9933333+00:00
Anderson Rodrigues Cavalcante 291 Reputation points
commented 2024-04-22T23:14:41.38+00:00
Anderson Rodrigues Cavalcante 291 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
杨岑 171 Reputation points
commented 2024-04-22T07:18:36.7833333+00:00
Junjie Zhu - MSFT 16,391 Reputation points Microsoft Vendor
0 answers

Not working as expected web to app Uri Handlers?

Hi, I was trying to launch my application by associating my own website to it. Was following the instructions mentioned in the document, by building a packaged application. Reference:…

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.
4,999 questions
Universal Windows Platform (UWP)
asked 2024-03-21T10:45:45.8+00:00
Rohan Pande 375 Reputation points
edited a comment 2024-04-22T05:23:44.72+00:00
Rohan Pande 375 Reputation points
1 answer One of the answers was accepted by the question author.

New to coding, looking for direction in what needs to be installed to code Windows Apps

Good evening everyone. So my last experience with programming was QBasic for my VIC-20, since it had very limited RAM and CPU was limited, some programs I had to code in binary, some is rudimentary assembly and my favourite back then was QBasic, it was…

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,821 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,792 questions
asked 2023-06-03T00:30:39.2866667+00:00
Roger Hanna 21 Reputation points
edited a comment 2024-04-20T06:49:09.6066667+00:00
Supravo Biswas 0 Reputation points
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
杨岑 171 Reputation points
edited a comment 2024-04-19T15:46:27.65+00:00
杨岑 171 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,574 questions
asked 2024-04-16T07:17:48.06+00:00
Saranya Karthik 40 Reputation points
commented 2024-04-19T10:07:37.5233333+00:00
Junjie Zhu - MSFT 16,391 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 16,391 Reputation points Microsoft Vendor
1 answer

How get visual items of a ComboBox using databinding?

It's a followup question of https://video2.skills-academy.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
杨岑 171 Reputation points
answered 2024-04-18T12:43:31.8233333+00:00
杨岑 171 Reputation points
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,574 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
杨岑 171 Reputation points
accepted 2024-04-18T07:47:23.38+00:00
杨岑 171 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
杨岑 171 Reputation points
accepted 2024-04-17T14:24:15.1266667+00:00
杨岑 171 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
杨岑 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,574 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