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

Sort by: Updated
1 answer One of the answers was accepted by the question author.

[UWP][C++] winrt How to copy file from assets folder to local folder.

I want to copy a file from the Assets folder to the local folder. For this example lets use the LockScreenLogo.scale-200.png file as it commes with the default template. The docs give an example of file access here,…

Universal Windows Platform (UWP)
asked 2019-12-10T19:23:54.137+00:00
Kai 81 Reputation points
accepted 2019-12-11T14:26:40.523+00:00
Kai 81 Reputation points
1 answer

How to switch from Trial to In App Purchases in UWP?

My app has currently only Trial and Full License. I want to remove having trial and make the app free but handle full license features with in app purchases and as well having some other in app purchases. That means I created an in app purchase called…

Universal Windows Platform (UWP)
asked 2019-11-18T12:09:12.19+00:00
Global Delight 1 Reputation point
commented 2019-12-11T08:55:55.88+00:00
Roy Li - MSFT 32,091 Reputation points Microsoft Vendor
1 answer

Dispose Stream socket listener in UWP

I have implemented two apps to run as server and client using stream sockets. It shares files from server app to multiple client apps when user is clicked on sharing option in Server app. I need to close sockets and socket listener when each operation is…

Universal Windows Platform (UWP)
asked 2019-12-09T07:00:09.217+00:00
Subazzz 1 Reputation point
commented 2019-12-11T07:34:20.043+00:00
Nico Zhu (Shanghai Wicresoft Co,.Ltd.) 12,856 Reputation points
2 answers One of the answers was accepted by the question author.

Binding data calculated from DependencyProperty value

Hi all, I am attempting to create a custom Templated Control in at UWP app that automatically generates binding data for its child controls based on a provided DependencyProperty specified in the XAML. For example, imagine I have a Templated…

Universal Windows Platform (UWP)
asked 2019-12-10T04:41:08.26+00:00
Thomas Lu 21 Reputation points
answered 2019-12-10T20:35:08.707+00:00
Thomas Lu 21 Reputation points
4 answers

Desktop-Bridge app: Remove from Task Scheduler when uninstalled

I have a UWP - Desktop Bridge app (published on the Windows Store) which I want to extend with the possibility to run the win32 process through the Windows Task Scheduler (at a configurable time). To add and modifying an entry in the task scheduler I…

Universal Windows Platform (UWP)
asked 2019-12-09T09:50:37.507+00:00
Jos Huybrighs 336 Reputation points
answered 2019-12-10T20:01:03.427+00:00
Jos Huybrighs 336 Reputation points
1 answer

Targeted Offers page doesn't show anything to create new offer.

Universal Windows Platform (UWP)
asked 2019-11-29T05:39:04.377+00:00
Global Delight 1 Reputation point
commented 2019-12-09T05:52:06.74+00:00
Roy Li - MSFT 32,091 Reputation points Microsoft Vendor
1 answer

The problem Recognition shape with ToggleSwitch

Hi: the problem with ToggleSwitch, when I activate the ToggleSwitch does not do shape recognition but when I put it off it does shape recognitionlink text private async void RecoShape_Toggled(object sender, RoutedEventArgs e) { var…

Universal Windows Platform (UWP)
asked 2019-11-29T15:25:16.03+00:00
Javier R 211 Reputation points
commented 2019-12-09T03:06:59.367+00:00
Roy Li - MSFT 32,091 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

await codecQuery.FindAllAsync(CodecKind.Audio, CodecCategory.Decoder, ""); causes Win32 Exception

await codecQuery.FindAllAsync(CodecKind.Audio, CodecCategory.Decoder, ""); Causes a Win32 Exception every time for me. All other CodecKind and CodecCategory combinations work fine. repo: …

Universal Windows Platform (UWP)
asked 2019-11-29T23:45:10.393+00:00
Groovykool 236 Reputation points
accepted 2019-12-07T07:18:42.24+00:00
Groovykool 236 Reputation points
1 answer

UWP XAML is throwing an unhandled exception when a collection is empty

I have two ObservableCollection and its bonded with two different ListView UI. ObservableCollection deptList = new ObservableCollection(); ObservableCollection teacherList = new ObservableCollection(); User can add or remove items from the…

Universal Windows Platform (UWP)
asked 2019-12-06T06:31:54.917+00:00
Mahmudul Hasan 1 Reputation point
answered 2019-12-06T07:10:39.55+00:00
Xiaodi Yan 876 Reputation points MVP
2 answers One of the answers was accepted by the question author.

[UWP][C#] Font size in UI controls - datagrid and listbox

How can I change the font size of the header column of the datagrid? Microsoft.Toolkit.Uwp.UI.Controls.DataGrid I also find that I cannot change the font size of the contents of a listbox either. I need to do both in code...not xaml. Thanks, Paula

Universal Windows Platform (UWP)
asked 2019-12-03T13:08:05.27+00:00
Paula Morgan 276 Reputation points
accepted 2019-12-05T23:17:17.293+00:00
Paula Morgan 276 Reputation points
1 answer

Data reader LoadAsync() throws "System.InvalidOperationException: A method was called at an unexpected time"

I have created two UWP apps to share files from server app to client app using Stream Sockets. In server app, it will add new data to the database and create StreamSocketListener to listen incoming connection to a button click. In client app, it is…

Universal Windows Platform (UWP)
asked 2019-12-04T06:44:04.57+00:00
Subazzz 1 Reputation point
commented 2019-12-04T10:12:46.107+00:00
Subazzz 1 Reputation point
2 answers One of the answers was accepted by the question author.

[uwp][c#] is there a way to load a bitmap, NOT on the main thread?

I have a .png file, and want to load it as a WriteableBitmap. However, if I don't do this on the main thread, I get an exception. var file = ...path_to_some_png_file...; Task.Run(async () => { using (var stream = new…

Universal Windows Platform (UWP)
asked 2019-12-02T20:48:23.267+00:00
John Torjo 861 Reputation points
commented 2019-12-04T01:40:59.443+00:00
Richard Zhang-MSFT 6,936 Reputation points
2 answers

I love UWP Platform

Hi, this is original message from App Certification Kit Name: ……. App ID: 9N43VPZH82F7 Publisher name: …… Test ID: fa473b92-6984-4e38-b8bf-ab3671f5804e Review completed: 11/29/2019 01:48PM Hello, Thank you for…

Universal Windows Platform (UWP)
asked 2019-11-30T10:57:35.243+00:00
Gianfranco Percopo 16 Reputation points
commented 2019-12-03T02:21:53.177+00:00
Roy Li - MSFT 32,091 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

[UWP][cpp] c++ winrt uwp show loading during long operations.

given a ProgressRing in the xaml such as, ProgressRing x:Name="MyLoadingRing" What is the recommended way to set this value to true, update the UI and then do a long running operation. For example a sqlite query. I've tried …

Universal Windows Platform (UWP)
asked 2019-12-01T18:51:37.667+00:00
Kai 81 Reputation points
accepted 2019-12-02T13:01:33.687+00:00
Kai 81 Reputation points
0 answers

Unhandled Exception: System.TypeLoadException Working with UWP in Xamarin.Forms

Here is my error. Things I've done: Clean solution Restart IDE Build solution Close IDE Delete obj & bin folders Restart IDE .... ... Unfortunately, these methods did not work at all. Only UWP Local Machine could…

Universal Windows Platform (UWP)
asked 2019-11-29T22:39:39.483+00:00
Yusuf Ahmet Uzundeveli 1 Reputation point
commented 2019-12-02T11:43:28.19+00:00
Nico Zhu (Shanghai Wicresoft Co,.Ltd.) 12,856 Reputation points
1 answer

[UWP][C#] How to check updates of a side-loaded app in code?

One can set up auto-updates for a side-loaded UWP app . This means the update checking function is already there. How can this update checking function be called in code? I do not plan to use auto-updates and would like to have a button for users to…

Universal Windows Platform (UWP)
asked 2019-11-27T14:26:07.997+00:00
Hong 1,051 Reputation points
commented 2019-12-02T03:21:16.627+00:00
Roy Li - MSFT 32,091 Reputation points Microsoft Vendor
1 answer

UWP - Switch Usercontrol depending on Property

i'm trying to implement an Widget, that consists of two UserControls. So basic idea to have ViewModel for Page, and switch usercontrol depending on the Property: public class SearchViewModel : Observable { private…

Universal Windows Platform (UWP)
asked 2019-11-29T09:05:58.827+00:00
antokhio 1 Reputation point
answered 2019-12-02T02:28:55.827+00:00
Richard Zhang-MSFT 6,936 Reputation points
1 answer One of the answers was accepted by the question author.

UWP Windows Cert Kit

Greeting, Trying to certify my UWP app. Runs fine on PC and tablet. Creates package. All tests pass except 2 "stupid" ones: 1) Image reference "logo.png": The image "logo.png" failed the size restrictions of 50 X 50. Of…

Universal Windows Platform (UWP)
asked 2019-11-28T19:56:51.003+00:00
Gerry H Schmitz 101 Reputation points
accepted 2019-11-28T21:16:06.767+00:00
Gerry H Schmitz 101 Reputation points
1 answer

Can Routes list be modified when Vpn is already connected using VpnNativeProfile?

Hi, This question is regarding , VPN Client (UWP App) development for Windows - 10S. I am trying to implement split tunneling and using VpnNativeProfile(Windows.networking.vpn). I want to modify the Routes list when the VPN is already connected. …

Universal Windows Platform (UWP)
asked 2019-11-28T05:02:06.717+00:00
Raja Sinha 1 Reputation point
answered 2019-11-28T08:07:16.38+00:00
Roy Li - MSFT 32,091 Reputation points Microsoft Vendor
1 answer

UWP - Webview with borders

Hi, In our UWP app, we show data using web views. We have added a border around the web view. Now when the data loads, we see the empty borders before the text loads. Please check this. Can you please let us know how to solve this issue. …

Universal Windows Platform (UWP)
asked 2019-11-23T15:13:35.103+00:00
Madhu 96 Reputation points
commented 2019-11-28T03:24:26.617+00:00
Nico Zhu (Shanghai Wicresoft Co,.Ltd.) 12,856 Reputation points