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

Sort by: Updated
1 answer

Uninstalling optional package also uninstalls main app

I'm testing the usage of the optional package using this UWP sample. With this sample I just deploy the main app and it's optional package. In the Windows "Settings/Apps/Installed apps" I see the optional package and I uninstall it, and the…

Universal Windows Platform (UWP)
asked 2024-09-11T10:37:47.9266667+00:00
Bruno Lima 1 Reputation point
commented 2024-10-02T17:05:08.9233333+00:00
Bruno Lima 1 Reputation point
1 answer

Attachment not attached in Outlook mail system in C# UWP

Hi, I am trying to attach a file in the Outlook mail system using C# UWP, but it's not working. It works fine in the old Mail app. Could you please help? Code: EmailMessage emailMessage = new EmailMessage(); StorageFile attachmentFile = await…

Universal Windows Platform (UWP)
asked 2024-10-02T13:02:10.9666667+00:00
Jay 80 Reputation points
edited an answer 2024-10-02T16:53:47.6166667+00:00
Viorel 117K Reputation points
0 answers

BackgroundTaskBuilder.Register throws HRESULT: 0x00700B7 on multiple task registration

A bit of background: I am working in an ecosystem where independent devices on a network ask a central server for things to do. Lately I've been working on a new kind of device that itself does not have a network connection, and connects to a PC with…

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.
5,376 questions
Universal Windows Platform (UWP)
asked 2024-09-30T17:52:54.3966667+00:00
Brian Henning 0 Reputation points
commented 2024-10-02T15:02:08.6566667+00:00
Brian Henning 0 Reputation points
2 answers

UWP app stays suspended after maximize

My UWP stays suspended even after user brings it to foreground. According to Microsoft docs it should resume from the suspension, but it doesn't. What can be the reason of such a weird behavior? https://imgur.com/a/knguaEV

Universal Windows Platform (UWP)
asked 2024-09-24T22:33:54.8066667+00:00
60856927 46 Reputation points
commented 2024-10-02T08:57:24.22+00:00
Junjie Zhu - MSFT 17,801 Reputation points Microsoft Vendor
1 answer

How come I keep geting the errors when I use the simple shooter sample?

Theres a problem with this code: GameplayScreen.cpp `// Create a sphere primitive to represent the player.` ` // The sphere will be used to handle collisions and constrain the player in the world.` ` // It is not rendered so it is not added to the…

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.
5,096 questions
asked 2024-10-01T20:26:45.3933333+00:00
Garrett Tiller 6 Reputation points
answered 2024-10-02T04:51:10.2566667+00:00
Junjie Zhu - MSFT 17,801 Reputation points Microsoft Vendor
0 answers

Do we need to Register the background tasks in Print Support App.?

Do we need to register the background tasks .? https://learn.microsoft.com/en-us/windows/uwp/launch-resume/register-a-background-task I am using "Extension Category="windows.printSupportWorkflow" " for the Print Support app. Because…

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.
784 questions
Windows Driver Kit (WDK)
Windows Driver Kit (WDK)
A set of Microsoft tools that are used to develop, test, and deploy Windows drivers.
98 questions
asked 2024-09-26T03:54:08.91+00:00
Pegasus Admin 0 Reputation points
commented 2024-10-02T01:41:07.97+00:00
Pegasus Admin 0 Reputation points
1 answer One of the answers was accepted by the question author.

Loading data and splash screen time

Hello, I am loading data to the app using such code now: private async void Page_Loaded(object sender, RoutedEventArgs e) { await CreateDataBaseIfNotExists(); //creates database if it doesn't already exists. await LoadData(); //loads data to…

Universal Windows Platform (UWP)
asked 2024-09-18T08:01:19.84+00:00
BitSmithy 2,061 Reputation points
accepted 2024-10-01T19:40:55.5233333+00:00
BitSmithy 2,061 Reputation points
3 answers

MediaStreamSource is not applying Bitrate Assigned to Media Encoding Profile

I am Using Media Composition To Preview Video and to Generate Stream I pass a MediaEncoding Profile wherein video Container I am assigning the bitrate that has to Apply when previewing but it's not working. MediaEncodingProfile profile =…

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,900 questions
asked 2020-12-24T05:13:20.907+00:00
Abhishek sharma 136 Reputation points
commented 2024-10-01T17:43:13.94+00:00
LOSTMSU 1 Reputation point
1 answer

GridView - item remove from source collation not shown on Windows 11

I am using GridView to implement list of games with cover arts. All grid items are binded to ObservableCollection by ItemsSource="{x:Bind StoreInfo.GameInfos}" I added an option to update the game cover art. To show updated item in live I…

Universal Windows Platform (UWP)
asked 2024-09-11T10:18:06.42+00:00
60856927 46 Reputation points
commented 2024-10-01T08:38:22.1766667+00:00
Junjie Zhu - MSFT 17,801 Reputation points Microsoft Vendor
0 answers

How to customize a caret of TextBox in UWP?

I want to make customized TextBox and I don't know how to customize the caret in UWP. I thought of these ways to make it: Change the style of the original caret directly Use a rectangle and let it blink, but how to hide the original caret or how to…

Universal Windows Platform (UWP)
asked 2024-09-28T15:26:26.3066667+00:00
水 知 125 Reputation points
commented 2024-10-01T08:01:41.41+00:00
Junjie Zhu - MSFT 17,801 Reputation points Microsoft Vendor
0 answers

[UWP] Change Lottie Animation Color / Theme Dynamically

I have used lottie json animation in xaml uwp using "CommunityToolkit.WinUI.Lottie" and "AnimatedVisualPlayer". But for dark theme I can not see the lottie animation as the color is fixed. How can we dynamically change color of…

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,900 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.
808 questions
asked 2024-09-30T07:38:02.08+00:00
Md. Niaz Mahmud 111 Reputation points
commented 2024-09-30T12:36:22.28+00:00
Castorix31 84,956 Reputation points
0 answers

GridView - no frame at item selection on Windows 11

I am using GridView control in my UWP app. The grid shows games cover arts gallery. On Windows 10 i see the grid item gets a frame at item selection, but on Windows 11 no frame appears. How to make it working the same way like on Windows 10?

Universal Windows Platform (UWP)
asked 2024-09-11T09:26:09.9766667+00:00
60856927 46 Reputation points
commented 2024-09-30T09:34:45.1233333+00:00
60856927 46 Reputation points
1 answer One of the answers was accepted by the question author.

Adding ContentDialog item to UWP Blank App (C++/WinRT) fails to generate .g.h file?

I am trying to add a ContentDialog item to UWP Blank App (C++/WinRT) project. With a fresh project of this type I choose Add New Item > XAML > ContentDialog. Once the item is added to the project it no long builds successfully - a error 'C1083:…

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.
5,096 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,717 questions
asked 2024-09-27T01:52:32.4733333+00:00
Matthew Armshaw 41 Reputation points
accepted 2024-09-27T15:44:24.6366667+00:00
Matthew Armshaw 41 Reputation points
1 answer One of the answers was accepted by the question author.

inquiry about shimmer effect in uwp app

I am developing a UWP application and would like to inquire whether there are any built-in controls or effects in UWP (or any associated libraries) that can be used directly to implement shimmer effect in my app.

Universal Windows Platform (UWP)
asked 2024-09-27T05:58:18.2233333+00:00
Deepak Patel 20 Reputation points
commented 2024-09-27T11:35:56.51+00:00
Deepak Patel 20 Reputation points
1 answer One of the answers was accepted by the question author.

Custom themes and dynamic UI styles for UWP app

Hello UWP experts , We have 6 resource dictionaries having different themes , particulary app background, button colors etc... And initially from the application resources it loads the default one if user didn't select any other theme.…

Universal Windows Platform (UWP)
asked 2024-09-02T06:01:10.4966667+00:00
DotNET Fan 211 Reputation points
accepted 2024-09-27T11:32:59.6066667+00:00
DotNET Fan 211 Reputation points
1 answer

UWP Windows.System.Launcher.LaunchUriAsync is not opening correctly in browser when the URI supports opening the link in other uwp app and browser.

Hi I'm using Windows.System.Launcher.LaunchUriAsync to open a URI, I'm prompted with a dialogue when the URI can be opened in other uwp app and browser. If chosen browser, it opens the local path - AppData/Local/Microsoft/Windows/INetCache instead of…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,833 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.
10,900 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.
808 questions
asked 2024-09-16T05:48:47.1033333+00:00
Harsini 0 Reputation points
commented 2024-09-27T07:02:16.2266667+00:00
Harsini 0 Reputation points
1 answer

UWP How to cancel a file search

I have a code to search for files in a user's selected folder, the file search takes some time and I need to be able to cancel it if the user changes the folder QueryOptions options = new QueryOptions(CommonFileQuery.OrderByName, filesExtensions) {…

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,900 questions
asked 2024-09-10T15:14:33.9233333+00:00
Arsen Kovalchuk 0 Reputation points
answered 2024-09-27T06:43:09.5233333+00:00
youzeliang 735 Reputation points
1 answer

using readAllBytes throws "file not accessible error"

I trying to read an encrypted file using the following: and getting access not allowed error. // would prefer to use the following instead of picker" // AuthFile = @"C:\vbscripts\pid.txt"; // if…

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,900 questions
asked 2024-09-11T21:45:09.99+00:00
tim 160 Reputation points
commented 2024-09-27T06:36:38.3633333+00:00
Roy Li - MSFT 33,091 Reputation points Microsoft Vendor
1 answer

c# UWP resource directory DataTemplate with x:DataType not working

HI, using VS2022 UWP c# I am trying to put a DataTemplate into a ResourceDictionary using a x:DataType I get a compile error Severity Code Description Project File Line Suppression State Error The XAML Binary Format (XBF) generator reported syntax…

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,900 questions
asked 2024-09-12T14:45:36.5366667+00:00
Paul Ryan 321 Reputation points
commented 2024-09-27T06:36:08.5366667+00:00
Roy Li - MSFT 33,091 Reputation points Microsoft Vendor
1 answer

Multiple Instances of App

Hi UWP experts, So i have enabled multiple instances of my app through the package manifest desktop4:SupportsMultipleInstances="true" and it works perfectly fine when the app is selected from the windows start menu and opens up multiple…

Universal Windows Platform (UWP)
asked 2024-09-19T08:19:31+00:00
DotNET Fan 211 Reputation points
commented 2024-09-27T06:34:41.67+00:00
Roy Li - MSFT 33,091 Reputation points Microsoft Vendor