Microsoft Q&A

Universal Windows Platform (UWP)

2,695 questions

A Microsoft platform for building and publishing apps for Windows desktop devices.

Browse all Windows tags

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

Sort by: Updated
0 answers

CameraCaptureUI.CaptureFileAsync() is returning a corrupt StorageFile if user selects "Save as a copy" option on the OS dialog

When using CameraCaptureUI in a UWP app, if cropping is allowed as follows: CameraCaptureUI captureUI = new CameraCaptureUI(); captureUI.PhotoSettings.Format = CameraCaptureUIPhotoFormat.Jpeg; captureUI.PhotoSettings.CroppedSizeInPixels = new Size(200,…

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.
9,439 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
6,721 questions
asked 2023-11-30T16:16:10.9333333+00:00
Imtiaz, Maham 0 Reputation points
0 answers

[UWP] WebView height gets wrong height randomly

Hi, I have loaded html content on a web view and tried to set the webview height using "ScriptNotify" and "NavigationCompleted" events. I need to do some UI related stuff depending on webview height like showing a button,…

Universal Windows Platform (UWP)
asked 2021-08-17T09:49:40.297+00:00
SudhaSub 1 Reputation point
commented 2023-11-30T14:37:26.0133333+00:00
Maroš Dziak 0 Reputation points
0 answers

I'm after code for a home button function for a uwp web browser app made on visual studio 2022

I'm after code for a home button function for a uwp web browser app made on visual studio 2022

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
9,463 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,081 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
6,721 questions
asked 2023-11-17T09:47:46.9366667+00:00
Luke Ferguson 11 Reputation points
edited the question 2023-11-30T07:43:08.24+00:00
Luke Ferguson 11 Reputation points
16 answers

How do i make a uwp app like google earth on visual studio 2022

How do i make a uwp app like google earth on visual studio 2022 https://earth.google.com/web/@0,-3.12830005,0a,22251752.77375655d,35y,0h,0t,0r

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
9,463 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,081 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
6,721 questions
asked 2023-11-20T04:36:17.7333333+00:00
Luke Ferguson 11 Reputation points
edited an answer 2023-11-30T07:08:55.7633333+00:00
Luke Ferguson 11 Reputation points
2 answers

Full screen mode for C++/CX application on startup

Hi, I'm working on a Windows UWP (Universal Windows Platform) C++/CX Application. I would like for this application to be full-screen from the moment that it launches, rather than briefly not full-screen and then changed to full-screen later. Does anyone…

Universal Windows Platform (UWP)
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,312 questions
asked 2023-11-29T18:43:22.4866667+00:00
James Pedersen 5 Reputation points
edited an answer 2023-11-29T20:16:30.4266667+00:00
James Pedersen 5 Reputation points
1 answer

Can I use desktop6:UninstallAction restricted capability in a UWP app through Microsoft Store or sideloading?

Is it possible to use the desktop6:UninstallAction capability to display a custom toast message or confirmation message when a user tries to uninstall the app, either through Microsoft Store or sideloading as MSIXBundle? Additionally, is it possible to…

Universal Windows Platform (UWP)
asked 2023-11-21T05:24:47.8733333+00:00
Nikhil Trikutam 0 Reputation points
edited an answer 2023-11-29T03:08:53.12+00:00
Junjie Zhu - MSFT 10,786 Reputation points Microsoft Vendor
0 answers

What do I describe code of UWP dll without imporoting solution by C++?

Hello! I use VS 2022. I'm leadrning UWP dll. I am describing test code of it. I have a problem. That code cannot refer UWP class,for example Text Box,out of solution of VS project. How to solve solve this problem?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,297 questions
Universal Windows Platform (UWP)
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,312 questions
asked 2023-11-26T23:30:40.0633333+00:00
nippy 25 Reputation points
commented 2023-11-28T19:05:08.2933333+00:00
nippy 25 Reputation points
0 answers

How to enable HDCP content protection through UWP Miracast API?

Greetings! I am developing a Miracast sink app following the UWP Miracast API documentation. Currently, standard projection of unprotected content works fine. However, the API does not seem to enable HDCP (for Netflix, Prime etc) in the Miracast Session…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,297 questions
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.
9,439 questions
asked 2023-11-21T15:22:03.3833333+00:00
Gabriel Remus Linck Duarte 0 Reputation points
commented 2023-11-27T17:57:09.58+00:00
Gabriel Remus Linck Duarte 0 Reputation points
1 answer

How to enable UIBC Mouse through UWP Miracast API?

Hello! I am developing a Miracast sink app following the UWP Miracast API documentation and managed to get projection with User Input Back Channel (UIBC) Keyboard working. However, the API does not seem to implement mouse, only keyboard and game…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,297 questions
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.
9,439 questions
asked 2023-11-21T17:10:39.3433333+00:00
Gabriel Remus Linck Duarte 0 Reputation points
commented 2023-11-27T17:50:42.13+00:00
Gabriel Remus Linck Duarte 0 Reputation points
2 answers One of the answers was accepted by the question author.

UWP UIElement to XAML

Hello, Is there in UWP any fine inbuild method to get XAML definition from UIElement? I can use reflection or I can build string on my own, but maybe this problem is already solved?

Universal Windows Platform (UWP)
asked 2023-11-23T15:44:26.5+00:00
BitSmithy 1,486 Reputation points
accepted 2023-11-26T14:58:35.9466667+00:00
BitSmithy 1,486 Reputation points
1 answer

What do I describe dynamic linking of UWP dll by C++?

Hello! I use VS2022. I don't know how to describe dynamic linking of UWP dll by C++. Please describe sample it's code.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,297 questions
Universal Windows Platform (UWP)
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,312 questions
asked 2023-09-19T23:11:28.37+00:00
nippy 25 Reputation points
commented 2023-11-26T03:52:14.75+00:00
nippy 25 Reputation points
1 answer One of the answers was accepted by the question author.

[WinUI3] VisualStateManager "PonterOver" not working on StackPanel

Hi, I want to make a mouse hover effect on a StackPanel but didn't manage to make it work using VisualStateManager, here is the code <VisualStateManager.VisualStateGroups> <VisualStateGroup x:Name="CommonStates"> …

Universal Windows Platform (UWP)
asked 2023-11-21T00:15:09.9933333+00:00
Jonathan SERRA 20 Reputation points
accepted 2023-11-24T22:38:42.97+00:00
Jonathan SERRA 20 Reputation points
0 answers

Failed to create a 'Windows.Media.Playback.IMediaPlaybackSource' from the text 'ms-appx:///Assets/my-foo-click.wav'

The following works flawlessly 99+% of the time: <MediaPlayerElement x:Name="mediaPlayerElement" Width="0" Height="0" …

Universal Windows Platform (UWP)
asked 2023-11-04T00:47:11.5+00:00
Hong 821 Reputation points
commented 2023-11-23T09:59:32.88+00:00
Junjie Zhu - MSFT 10,786 Reputation points Microsoft Vendor
0 answers

UWP VpnPlugin Troubleshooting

I am trying to add a VpnPlugin to my existing React Native Windows UWP app. The app works great so far. I've added another project for the background task to handle the VpnPlugin and CANNOT get it to launch (as far as I can tell). How can I debug if the…

Universal Windows Platform (UWP)
asked 2023-11-22T17:00:13.34+00:00
johnsoncreative 0 Reputation points
commented 2023-11-23T02:04:26.6+00:00
Junjie Zhu - MSFT 10,786 Reputation points Microsoft Vendor
1 answer

recently users are getting "Warning map service token not specified."

Hi, Recently, about 6 weeks ago, some of our users are saying that after a few hours of running our app, they are getting the "Warning map service token not specified." message at the bottom of map. Our app has been in use for over 8 years and…

Universal Windows Platform (UWP)
Windows Maps
Windows Maps
A Microsoft app that provides voice navigation and turn-by-turn driving, transit, and walking directions.
229 questions
asked 2023-11-03T18:59:40.9966667+00:00
Karhu Koti 16 Reputation points
edited an answer 2023-11-22T18:44:14.78+00:00
IoTGirl 2,871 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

How to put .bmp file to .cur file in VS

Hello, I am traing to make a custom cursor for my UWP app. I created a dll project in c++, and next added curor file to the project. I opened this cursor file in Visual Studio inbuild editor. But this VS editor is very poor and dificult to use. I want 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,081 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,312 questions
asked 2023-11-20T16:29:28.9766667+00:00
BitSmithy 1,486 Reputation points
accepted 2023-11-22T11:06:33.9366667+00:00
BitSmithy 1,486 Reputation points
1 answer

On my visual studio community 2022 I have this error on my uwp app on Design on MainPage.xaml

On my visual studio community 2022 I have this error on my uwp app on Design on MainPage.xaml System.Exception The app didn't start. (Exception from HRESULT: 0x8027025B) at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
9,463 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,081 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
6,721 questions
asked 2023-11-21T12:21:49.9766667+00:00
Luke Ferguson 11 Reputation points
answered 2023-11-22T02:04:46.56+00:00
Junjie Zhu - MSFT 10,786 Reputation points Microsoft Vendor
0 answers

Trying to open a device using HidDevice FromIdAsync in UWP always returns null unless using FileAccessMode.Read

I can confirm that my HID device can have read and write capabilities, because this has been verified in WPF application, where one Endpoint can read and the other can read and write. I thought it might be a permissions issue, but I defined almost…

Universal Windows Platform (UWP)
asked 2022-12-06T12:36:23.19+00:00
Victor Chen 106 Reputation points
commented 2023-11-21T09:27:03.6766667+00:00
Kjetil Kristoffer Solberg 1 Reputation point
1 answer One of the answers was accepted by the question author.

Why does SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility cause

SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = AppViewBackButtonVisibility.Collapsed; The above code worked fine for a UWP app. After I migrated the app to WinUI, it throws: System.AccessViolationException HResult=0x80004003 …

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.
650 questions
asked 2023-11-19T23:44:24.86+00:00
Hong 821 Reputation points
edited a comment 2023-11-21T02:13:47.99+00:00
Hong 821 Reputation points
1 answer

How do i make a uwp web browser from webview on visual studio 2022

How do i make a uwp web browser from webview on visual studio 2022

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
9,463 questions
Universal Windows Platform (UWP)
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
6,721 questions
asked 2023-11-20T12:05:12.4466667+00:00
Luke Ferguson 11 Reputation points
edited the question 2023-11-21T01:22:18.5266667+00:00
Anna Xiu-MSFT 20,101 Reputation points Microsoft Vendor