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

Sort by: Updated
2 answers

Microsoft store UWP App

Hello UWP experts, How can we identify from the UWP code that the user has installed from the Microsoft store or from the sideload packages or dev build process from VS? Thanks

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,619 questions
Universal Windows Platform (UWP)
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,168 questions
asked 2024-03-04T13:40:27.6733333+00:00
DotNET Fan 191 Reputation points
commented 2024-03-08T08:49:16.6066667+00:00
Junjie Zhu - MSFT 14,831 Reputation points Microsoft Vendor
1 answer

Trouble Using Latest Universal Windows Application Runtime

I rebuilding an older C++ application with Visual Studio Community Edition. I haven't worked on in a few years. I'm using the latest version of Visual Studio which I installed today. I'm running Windows 10. I ran Windows Update and it told me I was up to…

Universal Windows Platform (UWP)
asked 2022-12-17T22:55:29.617+00:00
Craig Podczerwinski 26 Reputation points
answered 2024-03-08T08:14:27.4866667+00:00
AK KOWSALYADEVI 0 Reputation points
1 answer One of the answers was accepted by the question author.

Narrator can't read Textblock in UWP app

I have a popup that contains some control. Now I want the narrator to read "Save Settings(1/6) please name your favorite setting". Because these are TextBlock, can't focus, so the narrator doesn't work. What can I do?

Universal Windows Platform (UWP)
asked 2022-12-13T03:08:13.337+00:00
华 张 136 Reputation points
edited an answer 2024-03-07T02:18:33.1766667+00:00
Roy Li - MSFT 31,826 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Binding columns and rows width in ListView

Hello, I am trying to bind ListView items columns heights to ListView Header columns heights. I typed such XAML, but it doesnt work. Is there any way to do my task? I prefer x:Bind but Binding is acceptable too. <ListView x:Name="lvLinks"…

Universal Windows Platform (UWP)
asked 2024-03-05T12:58:56.26+00:00
BitSmithy 1,751 Reputation points
accepted 2024-03-06T10:58:10.9733333+00:00
BitSmithy 1,751 Reputation points
0 answers

Keyboard navigation between Panels

I have such XAML: <StackPanel TabFocusNavigation="Cycle" XYFocusKeyboardNavigation="Enabled" > <StackPanel> <TextBox x:Name="H" …

Universal Windows Platform (UWP)
asked 2024-02-26T11:37:16.1866667+00:00
BitSmithy 1,751 Reputation points
commented 2024-03-06T10:06:23.6866667+00:00
Junjie Zhu - MSFT 14,831 Reputation points Microsoft Vendor
0 answers

UWP VPN Plugin Issue: RasDialA Error (ERROR_PORT_NOT_AVAILABLE)

Overview: We have developed a UWP VPN Plugin, based on the samples We connect to the VPN from a Win32 application using the RasDialA/RasHangUpA APIs (not using the VpnManagementAgent WinRT API because it isn't fully functional from non-packaged…

Universal Windows Platform (UWP)
asked 2024-02-06T12:16:11.6466667+00:00
Yiftach Karkason 0 Reputation points
edited a comment 2024-03-04T20:04:16.9333333+00:00
Peter Smith 581 Reputation points Microsoft Employee
0 answers

PrintTaskOptions throws Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))

Hi Team, We are trying to invoke a print preview from the stream of PDF documents. While invoking the print preview we are receiving Catastrophic failure from the PrintTaskOptions while creating print preview pages. We have tried the following methods…

Universal Windows Platform (UWP)
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.
764 questions
asked 2024-02-15T13:13:31.89+00:00
ManojKumar 0 Reputation points
edited a comment 2024-03-04T02:56:56.59+00:00
Roy Li - MSFT 31,826 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

How to find out that StackPanel is overflowed with his content

Hello, I have a StackPanel which is sized (for example Height=600), next I add UIElements to them. How to find out that StackPanel is overflowed (oversized) with his content?

Universal Windows Platform (UWP)
asked 2024-02-14T12:42:24.8533333+00:00
BitSmithy 1,751 Reputation points
accepted 2024-03-01T14:58:06.8+00:00
BitSmithy 1,751 Reputation points
1 answer One of the answers was accepted by the question author.

Analysing html document

Hello, I need to analyse web document. Is there any function to do this in UWP. For example I need to find all images on web page or all tables, or all links. I need to iterate throught other html blocks too. I found in net that there is something like…

Universal Windows Platform (UWP)
asked 2024-02-29T10:30:08.4133333+00:00
BitSmithy 1,751 Reputation points
accepted 2024-03-01T14:56:29.47+00:00
BitSmithy 1,751 Reputation points
1 answer One of the answers was accepted by the question author.

Can we use UWP APIs for WinUI3 desktop Applications?

Hi, I am building a WinUI3 desktop application where I am looking for notifications. I have tried out the App Notifications which are part of Windows App SDK but I am currently looking into Badge Notifications. So, I found this Badge Notification…

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.
725 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,527 questions
asked 2024-02-16T09:34:58.17+00:00
Rohan Pande 265 Reputation points
edited the question 2024-03-01T06:07:38.5+00:00
Roy Li - MSFT 31,826 Reputation points Microsoft Vendor
0 answers

how to specify WiFiDirect band

I want to create a WiFi Direct go in 5G band using WinRT WifiDirect API with 5G band, but i can't find related api to specify the Wifi Direct Band. I notice that the Mobile hotspot function which provided by window 11(Settings->Network &…

Universal Windows Platform (UWP)
asked 2024-02-27T08:36:39.0433333+00:00
Xiaojie Ma 0 Reputation points
edited the question 2024-03-01T05:47:24.2433333+00:00
Roy Li - MSFT 31,826 Reputation points Microsoft Vendor
1 answer

Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"

What is the purpose of this property? It seems I can remove it without any problems when runing an UWP app.

Universal Windows Platform (UWP)
asked 2024-02-16T15:53:34.36+00:00
Neo 421 Reputation points
edited a comment 2024-03-01T02:18:26.8766667+00:00
Roy Li - MSFT 31,826 Reputation points Microsoft Vendor
1 answer

Memory Leak and Increased Process Memory in UWP App Load the ListBox Items when Opening the Popups with Custom ListBox View

Issue: The application's process memory exhibits a continuous increase, particularly noticeable when frequently opening and closing popups containing a custom ListBox view. This behavior suggests a potential memory leak within the UWP platform.…

Universal Windows Platform (UWP)
asked 2024-02-12T12:59:24.1133333+00:00
Anandhan Rajagopal 1 Reputation point
commented 2024-03-01T01:52:42.0033333+00:00
Roy Li - MSFT 31,826 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Cause of System.Exception: The device does not support the command feature. (Exception from HRESULT: 0x8007013C)

WARNING! There was an error parsing the document Hello, I implemented a Gatt server in my UWP application using this documentation: https://learn.microsoft.com/de-de/windows/uwp/devices-sensors/gatt-server This allows me to use the Windows PC as a…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,619 questions
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,748 questions
Universal Windows Platform (UWP)
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,168 questions
asked 2024-01-20T23:06:13.5133333+00:00
WorldOfBasti 136 Reputation points
accepted 2024-02-29T13:32:37.5+00:00
WorldOfBasti 136 Reputation points
1 answer

How do I make a uwp web browser app on visual studio 2022

How do I make a uwp web browser on app visual studio 2022

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,619 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,607 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,168 questions
asked 2024-02-28T11:57:11.1366667+00:00
Luke Ferguson 46 Reputation points
answered 2024-02-28T21:25:06.6366667+00:00
Reza-Ameri 16,831 Reputation points
1 answer

How to submit a request to Microsoft to authorize use of a specific Limited Access Feature?

I want to use the LimitedAccess Features class. According to this article: https://learn.microsoft.com/en-us/uwp/api/windows.applicationmodel.limitedaccessfeatures?view=winrt-22621, I need to apply for a feature ID and use token, but I don't know where…

Universal Windows Platform (UWP)
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,422 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,168 questions
asked 2024-01-25T07:34:39.03+00:00
charles yu 1 Reputation point
commented 2024-02-28T09:56:09.9966667+00:00
Junjie Zhu - MSFT 14,831 Reputation points Microsoft Vendor
0 answers

How to improve latency for MiracastReceiver?

I've got a working implementation of a Miracast Sink app using the MiracastReceiver class provided by Microsoft APIs but the latency is of about 250ms, which is fairly high comparing to other devices I tested. Is there any way to reduce this…

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,249 questions
asked 2024-02-20T12:15:15.7733333+00:00
Gabriel Remus Linck Duarte 0 Reputation points
commented 2024-02-28T08:35:18.09+00:00
Junjie Zhu - MSFT 14,831 Reputation points Microsoft Vendor
0 answers

How to optimize MediaElement for live streaming?

Greetings, Currently I’m attempting to stream a H264 encoded video from another device in a local network using MediaElement XAML for the UI and MediaStreamSource as its source. This works fine but offers a noticeable delay (150-300ms). All options…

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,249 questions
asked 2024-02-14T19:07:24.1066667+00:00
Gabriel Remus Linck Duarte 0 Reputation points
commented 2024-02-28T06:19:46.0266667+00:00
Roy Li - MSFT 31,826 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

UWP and WinUI - How to check my OS version through C#

Hello. I'd like to check the user Operational System through C# in UWP and WinUI. In my case, I'd like a method to return if the OS is Windows 10 or 11. I've tried: var os = Environment.OSVersion; OperatingSystem opSys = 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,249 questions
asked 2024-02-22T00:06:54.7766667+00:00
Anderson Rodrigues Cavalcante 271 Reputation points
accepted 2024-02-27T13:16:39.85+00:00
Anderson Rodrigues Cavalcante 271 Reputation points
1 answer

Will background task run on battery when system condition BackgroundWorkCostNotHigh is added

Hi team, I'm trying to check if background task will run on battery when system condition BackgroundWorkCostNotHigh is added, but it seems there're inconsistencies from two articles on what is the exact condition for BackgroundWorkCostNotHigh: Use the…

Universal Windows Platform (UWP)
asked 2024-02-18T14:21:38.4566667+00:00
LCY 0 Reputation points Microsoft Employee
commented 2024-02-27T03:29:05.75+00:00
Roy Li - MSFT 31,826 Reputation points Microsoft Vendor