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

Sort by: Updated
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-09-19T12:25:12.6733333+00:00
60856927 46 Reputation points
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 191 Reputation points
edited a comment 2024-09-19T11:22:19.29+00:00
DotNET Fan 191 Reputation points
1 answer

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 191 Reputation points
commented 2024-09-19T09:11:53.4566667+00:00
DotNET Fan 191 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,858 questions
asked 2024-09-11T21:45:09.99+00:00
tim 160 Reputation points
commented 2024-09-19T08:30:42.84+00:00
Roy Li - MSFT 33,001 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,858 questions
asked 2024-09-12T14:45:36.5366667+00:00
Paul Ryan 321 Reputation points
commented 2024-09-19T08:28:47.2766667+00:00
Roy Li - MSFT 33,001 Reputation points Microsoft Vendor
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-09-19T08:25:47.9466667+00:00
Roy Li - MSFT 33,001 Reputation points Microsoft Vendor
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-19T08:23:41.62+00:00
Roy Li - MSFT 33,001 Reputation points Microsoft Vendor
0 answers

Secure Storage of Data in a WinUI Application

How can I securely store data in Windows App SDK when other applications can access it? DPAPI doesn't offer sufficient protection and adding entropy is not enough. Where can I store the entropy? Can someone explain the mechanism for secure data storage…

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.
780 questions
asked 2024-09-06T12:29:39.2033333+00:00
Kirthick Raj S 0 Reputation points
commented 2024-09-19T08:23:16.7733333+00:00
Roy Li - MSFT 33,001 Reputation points Microsoft Vendor
0 answers

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,041 Reputation points
commented 2024-09-18T09:50:57.5566667+00:00
Junjie Zhu - MSFT 17,396 Reputation points Microsoft Vendor
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,808 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,858 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.
805 questions
asked 2024-09-16T05:48:47.1033333+00:00
Harsini 0 Reputation points
answered 2024-09-17T02:23:38.9433333+00:00
Roy Li - MSFT 33,001 Reputation points Microsoft Vendor
0 answers

UWP DataGrid Scrollbar Issue: Unable to Scroll Using Touch on Touch Screen Devices

I'm developing a UWP app and I'm utilizing the DataGrid control from Microsoft.Toolkit.Uwp.UI.Controls to display data. While I can scroll using the mouse using both the scrollbar and its buttons, on a touch screen device, I can only scroll via finger…

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.
805 questions
asked 2024-05-11T10:28:59+00:00
Hardik Rathod 20 Reputation points
commented 2024-09-16T22:39:32.1066667+00:00
Rathod, Bhavikkumar 0 Reputation points
3 answers

In a UWP application using WebView2, the CoreWebView2 method returns null after changing the region at runtime in C#

The CoreWebView2 method works fine the first time, but after changing the app region, the CoreWebView2 method returns null after initialization. Please help to fix this issue. Code: XAML <muxc:WebView2 x:Name="PDFViewer"…

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,858 questions
asked 2024-09-03T12:56:53.57+00:00
Jay 60 Reputation points
answered 2024-09-16T06:54:26.4933333+00:00
Jay 60 Reputation points
0 answers

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,858 questions
asked 2024-09-10T15:14:33.9233333+00:00
Arsen Kovalchuk 0 Reputation points
commented 2024-09-13T09:33:56.8033333+00:00
Junjie Zhu - MSFT 17,396 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

How to resolve "MSFLXGRD.OCX" or one of its dependencies not correctly registered a file is missing or invalid issue?

Im trying to run an application developed using VB6. When trying to run the .exe I am getting Run time error code "339" with the "Component "MSFLXGRD.OCX" or one of its dependencies not correctly registered a file is missing or…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,500 questions
Universal Windows Platform (UWP)
asked 2021-03-09T17:01:33.39+00:00
Dutch171 31 Reputation points
answered 2024-09-12T10:59:41.4733333+00:00
twinBASIC programming 0 Reputation points
3 answers One of the answers was accepted by the question author.

Wi-Fi 2.4Ghz interference, when BlueTooth is working

Hello, I want to know, if there's any way to make bluetooth not interfere with Wi-Fi of 2.4 Ghz frequency, when using Windows.Media.Casting CastingDevicePicker in UWP application via C# Code? P.S. Without changing frequency to 5Ghz on Wi-Fi

Universal Windows Platform (UWP)
Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,342 questions
Windows Network
Windows Network
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.Network: A group of devices that communicate either wirelessly or via a physical connection.
741 questions
asked 2024-08-20T09:47:27.47+00:00
Jacob Mordon 225 Reputation points
accepted 2024-09-10T14:30:41.4033333+00:00
Jacob Mordon 225 Reputation points
1 answer One of the answers was accepted by the question author.

ProgressRing is not visible on Windows 11 inside the ContentDialog

In my UWP app I have a ContentDialog where I show ProgressRing while loading data. On Windows 10 the ProgressRing shown as expected but on Windows 11 the ProgressRing is not shown. Any way to make it working?

Universal Windows Platform (UWP)
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,478 questions
asked 2024-09-04T15:23:03.1933333+00:00
60856927 46 Reputation points
commented 2024-09-10T07:06:06.3433333+00:00
60856927 46 Reputation points
2 answers

What are the steps to create an exe from UWP WinRT code that will not be added to the Windows Store

I did this once, but I having difficulty remembering or finding the web page that gives the steps on how to perform this. Could someone help me. I remember that I had to create a certificate to do this, but beyond that, I don't remember much. Thanks for…

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,693 questions
asked 2022-03-14T16:19:52.773+00:00
David Hoffman 41 Reputation points
edited an answer 2024-09-10T06:07:46.63+00:00
BryceSor 240 Reputation points
0 answers

How to convert an IOutputStream object to an ISequentialStream?

I want to convert an IOutputStream object to an ISequentialStream, the following is my sample code: ComPtr<ISequentialStream> ConvertOutputStreamToSequentialStream(_In_ IOutputStream^ outputStream) { ComPtr<ISequentialStream>…

Universal Windows Platform (UWP)
Windows Server Printing
Windows Server Printing
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Printing: Printer centralized deployment and management, scan and fax resources management, and document services
674 questions
asked 2024-09-04T08:36:02.8833333+00:00
Woods Sea 5 Reputation points
edited a comment 2024-09-06T07:30:44.2966667+00:00
Junjie Zhu - MSFT 17,396 Reputation points Microsoft Vendor
0 answers

GetAppAndOptionalStorePackageUpdatesAsync 0x80070002 "The system cannot find the file specified."

GetAppAndOptionalStorePackageUpdatesAsync now causing an error 0x80070002 "The system cannot find the file specified." on a UWP app I have in the Store. I've had similar problems with a LOB app, and gave up on that. Now, it seems the same issue…

Universal Windows Platform (UWP)
asked 2024-08-10T18:34:23.8166667+00:00
Carlo Mendoza 151 Reputation points
edited a comment 2024-09-05T07:57:41.09+00:00
Junjie Zhu - MSFT 17,396 Reputation points Microsoft Vendor
3 answers

WebView2 - Payload contains two or more files with the same destination path but they are different sizes

After updating WebView2 to 1.0.2651.64 in my solution I started to get following error when trying to build the package for publish. Tried a lot of things to solve it, but nothing helps. Package build fails because of this. Payload contains two or more…

Universal Windows Platform (UWP)
asked 2024-08-30T16:37:46.35+00:00
60856927 46 Reputation points
answered 2024-09-04T10:00:41.1566667+00:00
Hbakaja Ahajajnaha 0 Reputation points