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

Sort by: Updated
0 answers

How to get current memory usage by OS/device in a UWP Windows10 app programmatically?

Hi Everyone, I am working on a Windows 10 UWP app and I am trying to get to current memory usage by OS in an app like we see the memory in task manager. I am unable to find a solution. Did anyone come across such a requirement or worked on it? Please…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,649 questions
Universal Windows Platform (UWP)
asked 2024-05-02T14:09:20.57+00:00
ANURAG24 0 Reputation points
1 answer

I'm trying to release this uwp app on visual studio 2022 but it won't run I get this problem as shown from screenshot

I'm trying to release this uwp app on visual studio 2022 but it won't run I get this problem as shown from screenshot

Universal Windows Platform (UWP)
asked 2024-05-01T09:10:21.9+00:00
Luke Ferguson 46 Reputation points
edited an answer 2024-05-02T09:05:07.1533333+00:00
Luke Ferguson 46 Reputation points
0 answers

How do I make a list of button functions to Choose Default Search Engine uwp app made on visual studio 2022

How do I make a list of button functions to Choose Default Search Engine uwp app made on visual studio 2022

Universal Windows Platform (UWP)
asked 2024-05-02T04:45:13.0833333+00:00
Luke Ferguson 46 Reputation points
commented 2024-05-02T07:06:14.88+00:00
Junjie Zhu - MSFT 15,056 Reputation points Microsoft Vendor
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
杨岑 121 Reputation points
commented 2024-05-02T03:37:46.72+00:00
Junjie Zhu - MSFT 15,056 Reputation points Microsoft Vendor
1 answer

How get shell icon of a file in UWP?

In WIN32 SDK, I can call SHGetFileInfo to get the shell icon of a file used by system (used in File Explorer). Is there any equivelant API for this purpose in UWP?

Universal Windows Platform (UWP)
asked 2024-04-28T16:40:31.0933333+00:00
杨岑 121 Reputation points
commented 2024-05-02T01:53:07.6733333+00:00
Junjie Zhu - MSFT 15,056 Reputation points Microsoft Vendor
0 answers

How do I make a add new tab button for a uwp web browser app made on visual studio 2022

How do I make a add new tab button for a uwp web browser app made on visual studio 2022

Universal Windows Platform (UWP)
asked 2024-05-01T06:31:05.5966667+00:00
Luke Ferguson 46 Reputation points
commented 2024-05-01T09:21:32.03+00:00
Junjie Zhu - MSFT 15,056 Reputation points Microsoft Vendor
0 answers

How do I make a home button for a uwp web browser app made on visual studio 2022

How do I make a home button for a uwp web browser app made on visual studio 2022

Universal Windows Platform (UWP)
asked 2024-04-26T09:31:02.4866667+00:00
Luke Ferguson 46 Reputation points
commented 2024-05-01T06:38:16.7833333+00:00
Junjie Zhu - MSFT 15,056 Reputation points Microsoft Vendor
0 answers

Problem with XAMLReader

Hello, I have a xaml file in my Assets folder "MainPage1.xaml" defined as below. <StackPanel xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:local="using:Label" > <Grid…

Universal Windows Platform (UWP)
asked 2024-04-30T10:27:51.93+00:00
BitSmithy 1,751 Reputation points
commented 2024-05-01T06:36:47.92+00:00
Junjie Zhu - MSFT 15,056 Reputation points Microsoft Vendor
2 answers

TextBlock and TextAlignment=TextAlignment.Justify

Hello, I have such issue: When I set TextBlock.TextAlignment as TextAlignment.Center, the TextBlock's mouse events arent fired. If I set other TextAllignment all works Code below: XAML <Canvas x:Name="cnv"> …

Universal Windows Platform (UWP)
asked 2024-04-30T11:26:15.7066667+00:00
BitSmithy 1,751 Reputation points
answered 2024-05-01T03:30:06.96+00:00
Junjie Zhu - MSFT 15,056 Reputation points Microsoft Vendor
0 answers

On visual studio community 2022 These numbers circled in blue is that what you call Lines

On visual studio community 2022 These numbers circled in blue is that what you call Lines

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,676 questions
asked 2024-04-30T10:01:02.8633333+00:00
Luke Ferguson 46 Reputation points
commented 2024-05-01T02:52:05.6033333+00:00
Hui Liu-MSFT 38,866 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
commented 2024-04-30T10:32:10.9533333+00:00
BitSmithy 1,751 Reputation points
2 answers One of the answers was accepted by the question author.

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 20 Reputation points
accepted 2024-04-30T09:06:03.4033333+00:00
IndiaMachinemart.in 20 Reputation points
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 231 Reputation points Microsoft Employee
answered 2024-04-30T06:08:25.3+00:00
Fei Han - MSFT 306 Reputation points Microsoft Vendor
1 answer

Any way to specify binding source datatype?

I have Microsoft.Toolkit.Uwp.UI.Controls.DataGrid package in my project. Given the following XAML: <toolkit:DataGrid x:Name="resultDataGrid" <!-- How specify datatype of ItemsSource without specifying ItemsSource? --> …

Universal Windows Platform (UWP)
asked 2024-04-29T12:16:51.65+00:00
杨岑 121 Reputation points
answered 2024-04-30T02:17:52.49+00:00
Junjie Zhu - MSFT 15,056 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,621 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,270 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.
970 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 27,356 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.
10,649 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
2 answers 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,390 questions
Universal Windows Platform (UWP)
asked 2024-04-24T13:23:16.3+00:00
Joe Babb 60 Reputation points
commented 2024-04-28T16:21:03.9766667+00:00
Joe Babb 60 Reputation points
0 answers

How to use C++/WinRt API like as part of DLL without user interface(UI)

Hi, I am attempting to utilize the C++/WinRT code provided in the sample of LampArray, cppwinrt to create a DLL. However due to the tight coupling of this sample with the UI, I am not able to use below API independently within my DLL code, without…

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.
726 questions
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,424 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,535 questions
asked 2024-04-23T06:41:57.05+00:00
sunil maurya 21 Reputation points
commented 2024-04-25T09:42:43.74+00:00
Junjie Zhu - MSFT 15,056 Reputation points Microsoft Vendor
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,270 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
杨岑 121 Reputation points
commented 2024-04-25T02:45:21.46+00:00
Roy Li - MSFT 32,051 Reputation points Microsoft Vendor