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

Sort by: Updated
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,011 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,011 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,011 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
1 answer

Painting on UWP app

Hi, We are building a UWP app which needs the user to write on top of the content of our app using touch. For e.g it is similar to some teaching app on a big screen, and while teaching he wants to mark on some content etc.. The features related…

Universal Windows Platform (UWP)
asked 2019-11-19T08:42:33.077+00:00
Madhu 96 Reputation points
commented 2019-11-26T13:03:23.757+00:00
Madhu 96 Reputation points
1 answer

When Frame control navigate to other page encounter a crash

Because of UWP application limit too much, I try to use WPF with XAML Island. When I try to navigate to other page, I encounter a crash. May be it's a bug? I upload my project on cloud: https://share.weiyun.com/5cGsibY

Universal Windows Platform (UWP)
asked 2019-11-06T07:59:05.307+00:00
Hell 36 Reputation points
answered 2019-11-26T11:49:27.15+00:00
Vincent Sky 1 Reputation point
1 answer One of the answers was accepted by the question author.

UWP Web view get blinks one time after loading

How can we fix web view blink issue? XAML code util:WebViewCustomProperties.HtmlContent="{Binding CourseDescription}" WebViewCustomProperties Class // "HtmlContent" attached property for a WebView         public static readonly…

Universal Windows Platform (UWP)
asked 2019-11-22T09:58:32.06+00:00
Nimalika 21 Reputation points
commented 2019-11-25T06:57:10.277+00:00
Nimalika 21 Reputation points
2 answers

Visual studio 2017: Debugging a UWP app works in debug mode, but not in release mode

Hello, I am developing a UWP application with Visual Studio 2017. When I run this application in Debug - x86 mode, it runs correctly from VS, and also from the start menu. On the other hand, when I run it in Release - x86 mode, sometimes it runs,…

Universal Windows Platform (UWP)
asked 2019-11-15T18:16:50.867+00:00
Marcel Delhaye 26 Reputation points
commented 2019-11-21T07:59:20.127+00:00
Roy Li - MSFT 32,011 Reputation points Microsoft Vendor
2 answers

Stream Sockets

Hi, We have two different UWP apps used in our project. From one App to the other we need to send some notification for a particular event. The 2 apps will always be running in 2 devices. App1 will be used by certain set of users in some devices and…

Universal Windows Platform (UWP)
asked 2019-11-19T08:52:00.937+00:00
Madhu 96 Reputation points
answered 2019-11-19T22:15:23.96+00:00
Xiaodi Yan 876 Reputation points MVP
1 answer

Declared package dependency unavailable: Microsoft.VCLibs.140.00.UWPDesktop, Neutral, Universal,Universal

Hi, I have a wpf app and I have converted it to uwp app using Windows application packaging project from Visual Studio. I am trying to submit appxupload package on store but at last when validation happens I am getting the error like : Declared…

Universal Windows Platform (UWP)
asked 2019-11-14T09:57:29.277+00:00
Akshay Verma 6 Reputation points
commented 2019-11-18T07:37:28.277+00:00
Roy Li - MSFT 32,011 Reputation points Microsoft Vendor
2 answers

[UWP] Serialize app local settings

I want to be able to take the settings for my app and copy them so that they can be shared by different users on different machines. Is there a way to serialize or some how copy the app settings to a different location?

Universal Windows Platform (UWP)
asked 2019-11-12T16:42:02.05+00:00
Jim Young 1 Reputation point
commented 2019-11-14T01:40:56.47+00:00
Xiaodi Yan 876 Reputation points MVP