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

Sort by: Updated
0 answers

How to use Shadow effect in the border of Flip view item.

i have a flipview item , i tried to use drop shadow but it cover in whole grid.

Universal Windows Platform (UWP)
asked 2024-10-04T09:42:43.39+00:00
Deepak Patel 20 Reputation points
edited a comment 2024-10-04T10:11:12.0133333+00:00
Deepak Patel 20 Reputation points
1 answer

BadgeUpdateManager::CreateBadgeUpdaterForApplication() crashes with WinRT originate error - 0x80070490 : 'Element not found.'

Hello, I'm trying to show badge icon in the taskbar for my WinUI2 application (WinRT/C++). Below is the code snippet: // winrt::init_apartment(apartment_type::single_threaded); XmlDocument badgeXml =…

Universal Windows Platform (UWP)
asked 2024-10-04T06:40:08.6566667+00:00
Shyam Butani 190 Reputation points
commented 2024-10-04T09:38:08.5233333+00:00
Shyam Butani 190 Reputation points
0 answers

UWP App communication with another process (*.exe)

UWP Experts, We have a UWP app where we use a third party process (*.exe) and get the updates for file conversions. We call the process using .NET Process class and get the conversion updates and based on the process exit code it is decided that the…

Universal Windows Platform (UWP)
asked 2024-10-04T03:20:43.5166667+00:00
DotNET Fan 211 Reputation points
edited a comment 2024-10-04T09:22:53.2933333+00:00
DotNET Fan 211 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,905 questions
asked 2024-09-11T21:45:09.99+00:00
tim 180 Reputation points
commented 2024-10-04T05:20:59.5433333+00:00
Roy Li - MSFT 33,166 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,905 questions
asked 2024-09-12T14:45:36.5366667+00:00
Paul Ryan 321 Reputation points
commented 2024-10-04T05:19:47.27+00:00
Roy Li - MSFT 33,166 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 Driver Kit (WDK)
Windows Driver Kit (WDK)
A set of Microsoft tools that are used to develop, test, and deploy Windows drivers.
99 questions
asked 2024-09-26T03:54:08.91+00:00
Pegasus Admin 0 Reputation points
edited the question 2024-10-04T02:20:16.58+00:00
Roy Li - MSFT 33,166 Reputation points Microsoft Vendor
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)
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,905 questions
asked 2024-09-18T08:01:19.84+00:00
BitSmithy 2,061 Reputation points
edited the question 2024-10-03T09:38:12.7833333+00:00
Jack J Jun 24,491 Reputation points Microsoft Vendor
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,380 questions
Universal Windows Platform (UWP)
asked 2024-09-30T17:52:54.3966667+00:00
Brian Henning 0 Reputation points
commented 2024-10-03T09:24:37.32+00:00
Junjie Zhu - MSFT 17,816 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

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 100 Reputation points
commented 2024-10-03T07:26:05.2+00:00
Jay 100 Reputation points
2 answers

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
answered 2024-10-03T06:52:49.44+00:00
Junjie Zhu - MSFT 17,816 Reputation points Microsoft Vendor
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,816 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,101 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,816 Reputation points Microsoft Vendor
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,905 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,816 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,816 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,905 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 85,126 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,101 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,720 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