Microsoft Q&A

Universal Windows Platform (UWP)

2,470 questions

A Microsoft platform for building and publishing apps for any Windows device.

Browse all Windows tags

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

Sort by: Updated
2 answers

How can I customize inkToolBar with its own design

As I can customize inkToolBar with own design and included the menuflyout where the colors are, the thickness for example of the pen.

Universal Windows Platform (UWP)
asked 2023-01-20T19:03:14.2366667+00:00
Javier R 166 Reputation points
commented 2023-02-03T06:18:44.98+00:00
Roy Li - MSFT 26,476 Reputation points Microsoft Employee
0 answers

UWP XBOX Live Creators app and Store app URI scheme

Hi, I have an UWP Xbox Live Creators app in which I try to use the Store app URI schemes as explained here: https://learn.microsoft.com/en-us/windows/uwp/launch-resume/launch-store-app I implement the store detailed page as follows: …

Universal Windows Platform (UWP)
asked 2023-01-30T13:23:01.2933333+00:00
TS 0 Reputation points
commented 2023-02-03T06:14:54.8733333+00:00
Roy Li - MSFT 26,476 Reputation points Microsoft Employee
0 answers

UWP CreateOutputReport failed to create report ID

The following code has an error, System. Exception: "The data is invalid. The specified report type is not present. What is the reason? Error statement: var outputReport = hiddevice.CreateOutputReport(0);  The handle was opened, but the output…

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.
6,984 questions
Universal Windows Platform (UWP)
asked 2023-01-13T03:54:22.5666667+00:00
yu chen 0 Reputation points
commented 2023-02-02T08:32:37.1833333+00:00
yu chen 0 Reputation points
1 answer

Change InkDrawingAttributes Opacity for Pen brush

I using a color picker to draw with a pen, but using this code I can't change de opacity of the pen color: InkDrawingAttributes inkDrawingAttributes = InkCanvas.InkPresenter.CopyDefaultDrawingAttributes(); inkDrawingAttributes.Color =…

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.
6,984 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.
559 questions
asked 2023-01-26T14:51:19.3+00:00
Anderson Cavalcante 21 Reputation points
answered 2023-02-02T02:59:58.07+00:00
Roy Li - MSFT 26,476 Reputation points Microsoft Employee
0 answers

UWP shows wrong MIDI device names

Hey there! UWP shows wrong names for most MIDI devices! Many ports are just called "MIDI" - which makes this library almost completely usable in any App. For example, loading output device information is done like…

Universal Windows Platform (UWP)
asked 2023-01-17T10:38:31.89+00:00
Max Meier 0 Reputation points
commented 2023-02-02T02:03:53.43+00:00
Roy Li - MSFT 26,476 Reputation points Microsoft Employee
1 answer

How do I download files created by my own application deployed on HoloLens2 to my PC?

I am a beginner in this field. I want to download a file generated by an application deployed on HoloLens2 to my PC. I found this URL1. I tried to execute the source code of this URL1, but I could not figure out how to use the Windows.Storage class.…

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.
6,984 questions
HoloLens Development
HoloLens Development
HoloLens: A family of Microsoft self-contained, holographic devices that enable engagement with digital content and interaction with holograms in the surrounding environment.Development: The process of researching, productizing, and refining new or existing technologies.
232 questions
asked 2023-01-17T12:27:15.7733333+00:00
ymd._.ksyR 0 Reputation points
commented 2023-02-01T19:13:20.27+00:00
Rob Van Schooneveld 186 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

[UWP] Payload contains two or more files with the same destination path

Hello, I have a fairly simple app that I would like to publish. When I try to create an app package for x86, x64 and ARM, the process returns 163 errors which all say "Payload contains two or more files with the same destination path" Here are…

Universal Windows Platform (UWP)
asked 2023-01-31T21:12:20.7933333+00:00
Aria Rad 51 Reputation points
commented 2023-02-01T18:57:32.91+00:00
Aria Rad 51 Reputation points
0 answers

Operation aborted (Exception from HRESULT: 0x80004004)

myMediaPlayerElement.MediaPlayer.IsMuted = true; The above code occasionally throws the following exception: System.Exception: Operation aborted (Exception from HRESULT: 0x80004004) Stack Trace: at…

Universal Windows Platform (UWP)
asked 2023-01-19T04:46:36.76+00:00
Hong 711 Reputation points
commented 2023-02-01T09:42:44.7+00:00
Junjie Zhu - MSFT 6,111 Reputation points Microsoft Employee
0 answers

How to play protected content with clear lead and HW DRM (SL3000)

Hello, I am developing media player using C#/UWP. We do utilize PlayReady DRM to play protected content. Our content format is MPEG-DASH with clear lead (meaning that first small part of the video is not encrypted - mostly it's around 10 seconds). The…

Universal Windows Platform (UWP)
asked 2023-01-18T18:52:40.9933333+00:00
Jan Drozd 106 Reputation points
commented 2023-02-01T01:40:28.2133333+00:00
Junjie Zhu - MSFT 6,111 Reputation points Microsoft Employee
2 answers One of the answers was accepted by the question author.

Listen to two (or more) properties

Hello, I am binding TextBox to UserControl myUserControl.DataContext = myTextBox; myUserControl.Height should be calculated and changed every time when myTextBox.FontSize or myTextBox.FontFamily changes. How to do such behavior. I dont…

Universal Windows Platform (UWP)
asked 2023-01-06T20:44:00.14+00:00
BitSmithy 1,256 Reputation points
accepted 2023-01-31T20:04:49.2833333+00:00
BitSmithy 1,256 Reputation points
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 101 Reputation points
commented 2023-01-31T03:03:30.8166667+00:00
Victor Chen 101 Reputation points
1 answer

CastingDevicePicker doesn't find the emulator

I want to stream video to the remote device in UWP C#. I use a MediaElement and CastDevicePicker. I did everything following the article - https://learn.microsoft.com/en-us/windows/uwp/audio-video-camera/media-casting. CastDevicePciker doesn't find the…

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.
6,984 questions
asked 2023-01-30T11:48:52.72+00:00
Denys Huska 0 Reputation points
answered 2023-01-31T02:12:21.67+00:00
Roy Li - MSFT 26,476 Reputation points Microsoft Employee
0 answers

Missing AddPackageByAppInstallerOptions.ForceTargetAppRestart flag

why there is no flag such as : AddPackageByAppInstallerOptions.ForceTargetAppRestart and only AddPackageByAppInstallerOptions.ForceTargetAppShutdown ? that is not nice UX. I want to programmatically apply updates but the app should restart automatically…

Universal Windows Platform (UWP)
asked 2023-01-27T11:34:40.87+00:00
Karol W 0 Reputation points
commented 2023-01-30T02:26:59.2366667+00:00
Roy Li - MSFT 26,476 Reputation points Microsoft Employee
2 answers One of the answers was accepted by the question author.

Is it possible to launch command to execute commands in UWP?

Hi, I want to launch the windows command to execute the specific command with arguments in my UWP app. Is it possible? Thanks, Steven

Universal Windows Platform (UWP)
asked 2023-01-26T09:17:47.82+00:00
Xie Steven 656 Reputation points
accepted 2023-01-30T01:14:47.9966667+00:00
Xie Steven 656 Reputation points
3 answers One of the answers was accepted by the question author.

Unable to add printSupportSettingsUI Extensions for Print Support applications (PSA)

I am getting errors and unable to use windows.printSupportSettingsUI extension is required for the Print support settings UI. I tried the below sample code provided by Microsoft's Print-support-app-design-guide documentation. …

Universal Windows Platform (UWP)
asked 2022-12-19T23:05:33.79+00:00
Amitha K 21 Reputation points
edited a comment 2023-01-27T22:14:30.3333333+00:00
Amitha K 21 Reputation points
0 answers

Does XAML (UWP) Visual Designer in Blend for Visual Studio 2022 work on Windows 10?

I am trying to design a C# Maui UI in XAML. I read that you can use Blend for Visual Studio to visually program XAML code. So, I loaded a new C# Class project in Blend to attempt an XAML visual edit, though the "Design" tab says "Visual…

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.
559 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
903 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,431 questions
asked 2023-01-26T20:24:50.2266667+00:00
Eli Blankenship 0 Reputation points
commented 2023-01-27T16:05:16.8666667+00:00
Eli Blankenship 0 Reputation points
2 answers

Win Device Geolocation

Hi there, I was reading on API guide on Windows.Devices.Geolocation https://learn.microsoft.com/en-us/uwp/api/Windows.Devices.Geolocation?view=winrt-22621. It mentioned that device will estimate a position from beacons like Wi-Fi access points…

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.
1,897 questions
asked 2022-11-16T20:06:40.663+00:00
rawcy 1 Reputation point
commented 2023-01-26T22:52:54.3466667+00:00
rawcy 1 Reputation point
0 answers

What are the available option/alternative to perform Bluetooth Publish with ServiceUUID and other general parameters

I have looked below document which says about allowed advertisement types and only Manufacturer Data (0xFF) is only available, this makes difficult to find & proceed to write Bluetooth application and also creates compatibility limitation how can we…

Universal Windows Platform (UWP)
asked 2023-01-25T13:09:20.1433333+00:00
Sk2508 0 Reputation points
commented 2023-01-26T02:46:08.7366667+00:00
Roy Li - MSFT 26,476 Reputation points Microsoft Employee
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…

Universal Windows Platform (UWP)
Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,813 questions
asked 2023-01-17T14:53:16.2+00:00
Imman Kumar 6 Reputation points
commented 2023-01-25T11:55:16.8066667+00:00
Imman Kumar 6 Reputation points
1 answer One of the answers was accepted by the question author.

C# UWP Page, trigger a routine when leaving or returning to a Page

Hi, I am fairly new to UWP, XAML. I have a Pivot Menu with a few pages. In each page I have two Buttons (Mic on, Mic Off) used at least three times in each page I use a tag to figure out which Button to Collapse and make Visible when…

Universal Windows Platform (UWP)
asked 2022-08-21T15:52:02.093+00:00
Paul Ryan 316 Reputation points
accepted 2023-01-25T00:58:59.6433333+00:00
Paul Ryan 316 Reputation points