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

Sort by: Updated
0 answers

Occasional "System.Exception: OpenClipboard Failed (Exception from HRESULT: 0x800401D0)"

An app occasionally throws the following exception: System.Exception: OpenClipboard Failed (Exception from HRESULT: 0x800401D0) Stack Trace: at System.Runtime.InteropServices.McgMarshal.ThrowOnExternalCallFailed(Int32, RuntimeTypeHandle) + 0x21 at…

Universal Windows Platform (UWP)
asked 2024-06-13T08:40:09.66+00:00
Hong 1,186 Reputation points
commented 2024-06-13T13:02:01.18+00:00
David Lowndes 2,450 Reputation points MVP
0 answers

How to disconnect a BLE device after successful connection

I have successfully connected to BLE device by using BluetoothLEDevice.FromIdAsync(deviceInfo.Id) and bluetoothLeDevice.GetGattServicesAsync(BluetoothCacheMode.Cached) API's in unpaired mode over Windows 10 with .NET Framework 4.7.2 but I was…

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,467 questions
asked 2024-06-13T10:31:14.1533333+00:00
Prajnith Kumar 0 Reputation points
1 answer

RenderTargetBitmap renders low quality image of the UIElement

Hi, I have a Xamarin.Forms application deployed in UWP, in which I have added Xamarin.Forms.Image to the page and trying to convert the UIElement to image using RenderTargetBitmap, the converted image quality is reduced. Again I have added the converted…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,312 questions
Universal Windows Platform (UWP)
asked 2023-01-17T14:53:16.2+00:00
Imman Kumar 6 Reputation points
commented 2024-06-13T08:12:21.0333333+00:00
Castorix31 82,316 Reputation points
1 answer

Change Grid Margin Using Visual State | UWP, WinUI3

I have a grid inside a Style. If this grid has a width > 640 I'd like to change its background for red. If the grid width <= 640 I'd like to change the background for yellow. How can I do it only using xaml, without code behind? Obs: It is the grid…

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.
778 questions
asked 2024-06-12T19:09:25.5566667+00:00
Anderson Rodrigues Cavalcante 271 Reputation points
answered 2024-06-13T02:44:56.7733333+00:00
Junjie Zhu - MSFT 16,146 Reputation points Microsoft Vendor
0 answers

Use same VisualStateGroup in all different ListViewItem style

Hello everyone. I'd like to make my VisualStateGroup unique for all ListViewItem, so that any ListViewItem style, even different, can use the same VisualStateGroup, without repeating in the ListViewItem style. Declare the VisualStateGroup once and all…

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,467 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.
778 questions
asked 2024-06-07T09:38:18.44+00:00
Anderson Rodrigues Cavalcante 271 Reputation points
edited a comment 2024-06-12T19:02:20.54+00:00
Anderson Rodrigues Cavalcante 271 Reputation points
0 answers

Queue.Enqueue and IndexOutOfRangeException

I have been chasing a strange occasional IndexOutOfRangeException for a while and pinned it on the following line: myQueue.Enqueue(myObject) where: protected Queue<MyObject> myQueue{ get; set; } I don't know how this is possible. The stack…

Universal Windows Platform (UWP)
asked 2024-06-12T09:24:45.5533333+00:00
Hong 1,186 Reputation points
commented 2024-06-12T13:51:44.3633333+00:00
Hong 1,186 Reputation points
1 answer

VirtualizingStackPanel Scrollviewer height

I am working a uwp app where i used ListView with VirtualizingStackPanel . In my case i am trying create an alternatives for CVS ListView so each item has a ItemsControl (choosen this because it consume less memory and ScrollViewer). Now if i want…

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,467 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.
778 questions
asked 2024-05-22T06:12:58.1066667+00:00
shriram 90 Reputation points
commented 2024-06-12T08:04:29.65+00:00
shriram 90 Reputation points
2 answers One of the answers was accepted by the question author.

How to launch Microsoft default Calendar & Calculator with selected date / calculation from UWP ?

I need to launch Microsoft default app Calendar(outlookcal:) with selected date ( ex. 01/01/2020) and Calculator(ms-calculator:) with expression/calculation (2*3=) from UWP. I am using Windows.System.Launcher.LaunchUriAsync(new Uri()) for app launch…

Universal Windows Platform (UWP)
asked 2020-08-20T11:59:44.617+00:00
Abu Raihan 21 Reputation points
answered 2024-06-11T21:41:02.1666667+00:00
Jennifer Lobo 0 Reputation points
0 answers

Using Nuget Package in runtime library

Hello, I have a runtime library, where I have some classes which I use in my apps. One class in the library uses nuget package. I compile the library and attach to my app. Next I try to use the class in the app in Page Loadded event which such…

Universal Windows Platform (UWP)
asked 2024-06-04T08:46:13.94+00:00
BitSmithy 1,951 Reputation points
commented 2024-06-11T08:43:03.1033333+00:00
Junjie Zhu - MSFT 16,146 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Opening app from app

Hello, I want to open app from other app. Function should work in this way If app is found as installed, open the app, but if app isnt found open it's page in Windows Store I use such code: private async void btnOpenApp_Click(object sender,…

Universal Windows Platform (UWP)
asked 2024-06-08T20:16:31.6733333+00:00
BitSmithy 1,951 Reputation points
accepted 2024-06-10T08:36:18.2633333+00:00
BitSmithy 1,951 Reputation points
1 answer One of the answers was accepted by the question author.

Checking for TPM 2.0 module in a UWP app

Is it possible to check if a device contains a TPM 2.0 module from a UWP app? If so, how can I implement this check in my app?

Universal Windows Platform (UWP)
asked 2024-06-05T10:39:17.0966667+00:00
Nikhil Trikutam 20 Reputation points
commented 2024-06-06T17:18:50.4166667+00:00
Nikhil Trikutam 20 Reputation points
2 answers

How do I make a uwp app like FatMap on visual studio 2022

How do I make a uwp app like FatMap on visual studio 2022 https://fatmap.com/

Universal Windows Platform (UWP)
Azure Maps
Azure Maps
An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.
627 questions
asked 2024-06-06T00:58:37.15+00:00
Luke Ferguson 41 Reputation points
answered 2024-06-06T15:00:16.44+00:00
rbrundritt 16,051 Reputation points Microsoft Employee
2 answers

winrt::create_instance<IDesktopWallpaper> error

I am completely new to C++/WinRT. I read some articles on winrt::capture and tried the following code: #include "pch.h" #include <Shobjidl.h> // EDIT: use winrt::guid_of<IDesktopWallpaper>. // Previously I used…

Universal Windows Platform (UWP)
asked 2023-07-15T02:21:47.8466667+00:00
Neo 421 Reputation points
answered 2024-06-06T07:44:22.09+00:00
peter li 1 Reputation point
2 answers

Impact of Bing Maps for Enterprise retirement to UWP

We received an email about the retirement of Bing Maps for Enterprise, which will affect all applications using Bing Maps. Does retirement also affect UWP apps that include map feature? Any migration procedures can be followed? Thanks.

Universal Windows Platform (UWP)
Azure Maps
Azure Maps
An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.
627 questions
Windows Maps
Windows Maps
A Microsoft app that provides voice navigation and turn-by-turn driving, transit, and walking directions.
253 questions
asked 2024-05-23T02:20:53.77+00:00
forline Spaceac 0 Reputation points
commented 2024-06-05T15:41:03.8566667+00:00
rbrundritt 16,051 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

How to get complete list of theme colors

Hello, I want to style my app in Light and Dark themes. I need a list off all system theme resources with its settings. For example: SystemControlBackgroundAltHighBrush and its color How to get such list?

Universal Windows Platform (UWP)
asked 2024-06-04T13:40:08.9033333+00:00
BitSmithy 1,951 Reputation points
accepted 2024-06-05T11:29:41.6933333+00:00
BitSmithy 1,951 Reputation points
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 a comment 2024-06-05T07:53:10.13+00:00
Xiaojie Ma 0 Reputation points
0 answers

The focus should shift systematically to enable narrators to read the content displayed on the screen when user click the tab.

Universal Windows Platform (UWP)
asked 2024-06-03T12:16:54.19+00:00
Abid Md 0 Reputation points
edited the question 2024-06-05T07:22:23.74+00:00
Junjie Zhu - MSFT 16,146 Reputation points Microsoft Vendor
0 answers

UWP When user click the tab, the focus should shift systematically to enable narrators to read the content displayed on the screen.

<Grid Grid.Row="1"> <TextBlock Height="auto" Style="{StaticResource PageHeadText}" Text="Candidate Test Affidavit" FontSize="{Binding Source={StaticResource…

Universal Windows Platform (UWP)
asked 2024-06-03T08:03:20.6533333+00:00
Abid Md 0 Reputation points
edited the question 2024-06-05T07:20:55.68+00:00
Junjie Zhu - MSFT 16,146 Reputation points Microsoft Vendor
1 answer

Integrating a new child UWP exe/app in an existing parent UWP app

How can I integrate a new status updater app, which should be part of an existing parent UWP app project and package? The new status updater app will use WinUI libs and UWP xaml libs and be part of the UWP app store app. The parent UWP app should…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,932 questions
Universal Windows Platform (UWP)
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,602 questions
asked 2024-06-01T08:02:20.1466667+00:00
DotNET Fan 191 Reputation points
commented 2024-06-05T03:34:50.7266667+00:00
Junjie Zhu - MSFT 16,146 Reputation points Microsoft Vendor
0 answers

Can't install UWP app, fails with codes 0x800701c5 / 800700B7

Hello everybody. We want to publish our app, that is made with Xamarin Forms, to the Microsoft Store. WACK does not report any problems with the uploaded app. Installation fails for all betatesters, the store app reports error 0x800701c5. So I tried…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,312 questions
Universal Windows Platform (UWP)
asked 2024-06-04T12:30:12.4366667+00:00
M. Bäurle 0 Reputation points
edited the question 2024-06-05T01:07:58.2766667+00:00
Roy Li - MSFT 32,721 Reputation points Microsoft Vendor