Click here to Skip to main content
15,891,905 members
Everything / Desktop Programming / Universal Windows Platform

Universal Windows Platform

UWP

Great Reads

by Victor Dashevsky
Processing the positioning information of visual objects detected by Pixy camera and received on Raspberry Pi via I2C, and using common design patterns in a C# program parsing robotics sensor data
by raddevus
Get Started in UWP (moving away from WinForm) Chapter 7 Saving journal entries in the file system
by Daniel Vaughan
A fun UWP implementation of the game Sokoban, demonstrating some new features of XAML and C# 6.0. Part 3
by raddevus
Get Started in UWP (moving away from WinForm) Chapter 4 Adding Windows Controls (Building the DailyJournal app)

Latest Articles

by g96b10
Win2D provides a neat API interface, but how do you render complex sprites for your game? I provide a library and editor to make this a streamlined process.
by SoundersFan
How to edit templates in VS XAML without the bloat
by Michael Chourdakis
Replace GetOpenFileName/GetSaveFileName with a new cloud API!
by Daniel Vaughan
Create a dynamic settings screen for your UWP app. Add a setting with a single line of code.

All Articles

Sort by Updated

Universal Windows Platform 

16 Feb 2018 by #realJSOP
Collections in Entity Framework are exposed as DbSet collections.
28 Mar 2018 by #realJSOP
Desktop applications cannot be started unless a user is logged in. Configure your app to start at log-in - Windows Developer BlogWindows Developer Blog[^] If you want an app to start at windows reboot/start, it must be a Windows service (which cannot be a UWP app because a Windows service...
14 Jan 2019 by #realJSOP
Google is your friend: How to Fix SQLite Error Database is Locked - Error Code 5[^]
18 Apr 2020 by #realJSOP
Have you looked at this link? Google Groups - Crypto JS[^] If that doesn't help, I googled "decrypt cryptojs with c#, and got these results: DuckDuckGo — Privacy, simplified.[^]
25 Oct 2015 by Abhilash Raja
Building adaptive layout in a windows 10 app with relative panel and adaptive triggers
21 Jan 2017 by Afzaal Ahmad Zeeshan
Microsoft developed a lot of samples for UWP and published them for others to download and use on GitHub: Windows-universal-samples/Samples/SpeechRecognitionAndSynthesis at master · Microsoft/Windows-universal-samples · GitHub[^].In future, please do yourself a favor and search the online...
21 Jan 2017 by Afzaal Ahmad Zeeshan
WebView uses the Internet Explorer engine to render the web pages (or Edge in UWP), to get started you can download the sample provided by Microsoft on GitHub: Windows-universal-samples/Samples/WebView at master · Microsoft/Windows-universal-samples · GitHub[^]. You can also learn more about...
26 May 2019 by ahmed walid
AppBarButton lost function (doesn't execute it's code) after changing it's Label and Icon (the code work only for first click on button but doesn't work any more(after the change)) for example : In this code mediaPlayer.Pause(); works private async void AppBarButton_Click_1(object sender,...
11 Jun 2019 by ahmed walid
(C#)(UWP) How to parse musixmatch synced lyrics from JSON/XML this is the json response {"message":{"header":{"status_code":200,"execute_time":0.0088448524475098},"body":{"subtitle":{"subtitle_id":26648877,"restricted":0,"subtitle_body":"[{\"text\":\"You give me love now...
2 Nov 2022 by Ailiseu Brigitta
hii i am working with uwp project and i don't know how to connect with webservice with parameter in uwp if any one know please teach me What I have tried: i have my web server link which is used to AuthenticateUser { in that link i have xml...
6 Nov 2022 by Ailiseu Brigitta
i am working with uwp i can't able to find the what mistake i have done in the program when i debug the code is running prety well but i am getting exception error . the error i got i have written in // (error) What I have tried: ...
28 Nov 2022 by Ailiseu Brigitta
i have read the text file i need to insert a new data in the text file this is the method i have read the text file try { var path = @"text file\\GetAllEmp.txt"; string rawJson =...
30 Nov 2022 by Ailiseu Brigitta
i have created add and get function for sqlite server i don't know to call the function i have given the add function in database class i need to call in blanck page 1 the add function is public static void AddEmployee(EmployeeItem...
6 Dec 2022 by Ailiseu Brigitta
I have to create a list of students and I need to create a search bar using text box. The student details are in {studentABC}. I need to filter the students by first name and display in a list. It's not working. What am I doing wrong? What I...
12 Dec 2022 by Ailiseu Brigitta
hii guys i have created a treeview but i can't print the content in the tree view and i can't set the background i have used xmlns:muxc="using:Microsoft.UI.Xaml.Controls" but no use of it can any one find what mistake i have done What I have...
27 Oct 2022 by Ailiseu Brigitta
hii i need help to create a table in uwp with these item to store a data String CREATE_SITEINFO_TABLE = "CREATE TABLE IF NOT EXISTS " + TABLE_SITEINFO + "(" + data_0 + " INTEGER, " + data_1 + " INTEGER, " ...
23 Oct 2021 by ajburge
I am developing an App that utilizes the UWP DataGrid control from the Windows Community Toolkit. The control handles validation by turning the background red for scenarios where I have implemented INotifyDataErrorInfo, GetErrors(), HasErrors()...
5 Aug 2018 by Ajcek84
Strongly typed dependency property registration implemented for WPF and UWP
20 Dec 2015 by Akash Gutha
This tip is aimed at providing a simple solution for simple page to page navigation system for your UWP apps.
6 Mar 2018 by Ali NGame
In this article, I will show you how easy it is to use Google maps in Universal Windows platform
8 Jan 2023 by alisa brigita
1. i have a textblock in the list which 2. i need to change the forground of text 3. i need to change the background image of the textblock my problem is i can,t change both text and image if anyone know about this please help...
21 May 2016 by Ammar Shaukat
I'm very new to consuming APIs. I'm calling a weather API in C#.Currently I'm making weather Application in UWP ( Universal Windows Platform ). When I run the following code . var client = new HttpClient(); HttpRequestMessage request = new...
1 Aug 2018 by Ammar Shaukat
I'm trying to learn XAML in order to build UWP apps. I found different places where I can learn it but everywhere, there is a different order of topics in XAML, like someone teaching data binding first and someone teaching " how to enable adds in UWP apps", so I'm confused what should be the way...
29 Aug 2017 by Ammar Shaukat
I’m currently working on a UWP app to work with scanners. This application is a POS app and reads barcodes. Windows 10 Provides its built in barcode scanner class. That is used for UWP apps but it is limited in functionalities. you can check it here. Window 10 barcode Scanner for UWP
3 Jul 2018 by Ammar Shaukat
I'm working on a C# .NET Framework Application. I've to get Information about Wifi like Wifi SSID Wifi SSID Mac Wifi Local IP Wifi DNS1 and DNS2 Wifi External IP Wifi DHCP Server Wifi Gateway Wifi Link Speed etc Is there any modern C# API available for windows? What I have tried: ...
3 Jul 2018 by Ammar Shaukat
I've found the solution. using WifiAdapter class in UWP, you can get all the necessary information using C# in UWP. here is the complete guide to use this class.
10 Apr 2016 by Andrea@Favero
I need to write an application on Windows 10 desktop, to test and develop some embedded products with BLE. I know that BLE is more mature on iOS and Android (and even on Windows Phone), but we are used to Windows Desktop applications, developed in Visual Studio 2015, in c#.I already...
10 Apr 2016 by Andrea@Favero
Update: I found the way to include the Windows 10 runtime.Add a reference to C:\Program Files (x86)\Windows Kits\10\UnionMetadata\Windows.winmdThanks the same :-)
28 Jul 2016 by AndrewCharlz
Hi,Actually i have a website hosted online and which has a webservice. Now what i want to do is i want to utilise the hosted webservice.I added new service reference to the project and created an object of the webservice reference.Sref_HomeService.HomeServiceSoapClient obj_ = new...
25 Apr 2023 by Aryaveer Chaudhary
DeviceInformationCollection devices = await DeviceInformation.FindAllAsync(PhoneLineTransportDevice.GetDeviceSelector(PhoneLineTransport.Bluetooth)); for (int i = 0; i
8 May 2023 by Aryaveer Chaudhary
this is my code i am trying to setup a rfcomm connection with a mobile device and after that i wanna setup hfp service level connection so that i can call frommy windows pc and it gives Failed to get Bluetooth device from ID...
21 Feb 2016 by ATDHEKURTESHI
I am developing windows application.I want to switch from Front Camera to Back Camera with a Combobox in Windows Universal App or in WPF.I have coded something but I don't get where I made a mistake.Here is my code:What I have tried:private async void...
17 Nov 2015 by BC3Tech
Your UWP Push Notifications are now Toast
12 Aug 2017 by BillWoodruff
You need to use the 'RectHelper Class [^] in Windows.UI.Xaml which provides 'Intersect(Rect,Rect) and other useful methods.
19 Apr 2020 by BillWoodruff
By doing this, you would violate Windows user interface guidelines, and confuse users. If you want to "turn off" the behavior you have defined for a Control, here's an example: btnRender.Click -= btnRender_Click; This removes a specific...
10 Oct 2017 by canard29
Hi, I created a Cross platform App "MaintenanceApp" with Xamarin with Visual 2017 Community. The solution has a project for Android, iOS and UWP. I didn't change the code yet. Everything is compiling. The iOS project is starting well (I'm using a Virtual Machine with Windows on a Macbook...
10 Oct 2017 by canard29
I found the solution. The problem is due to the virtual machine. It's sharing the folders with Windows. Instead trying to deploy on the local machine, I have to deploy on localhost.
30 Apr 2020 by canard29
Hi, I want to create a textbox and combobox for an optional parameter. the header contains a checkbox to check and the control is enabled to fill the value if the checkbox is not checked, the parameter won{t be used What I have tried: ...
30 Apr 2020 by canard29
I found a solution by myselves. Just switch checkbox and Textbox
14 Oct 2022 by CHill60
You need to call the code that is provided in the blog i.e. private void button_Click(object sender, RoutedEventArgs e) { CreateDatabase(); } I advise you rename the event handler to something more meaningful e.g.
15 Apr 2017 by Chrisstone07
Im developing an Http proxy server for a UWP application(C#) but face issues with requests sent and received by a creating a socket.I first create a socket stream object and then listen for Http requests sent by send-async to socket stream listener.However i face Http exceptions and sockets...
13 May 2018 by Christian Graus
Mocking the Create method does not test the Create method. You mock your interface in order to test code that USES your interface, typically because your interface accesses a data store and you're writing unit tests, not integration tests
4 May 2016 by CodeAsp
Is it possible to have multiple service locator on the app startup? What I have...
28 Aug 2015 by Daniel Vaughan
When submitting a UWP or WinRT app to the Windows Store, you must increase the Version number of the package or the submission will fail. It can be a chore to manually update the version number.
1 Oct 2015 by Daniel Vaughan
IntroductionWith UWP and WinRT, Microsoft introduced a new means for localizability, which differs significantly from the method employed in Silverlight and .NET desktop apps.
13 Oct 2016 by Daniel Vaughan
A fun UWP implementation of the game Sokoban, demonstrating some new features of XAML and C# 6.0. Part 1
26 Oct 2016 by Daniel Vaughan
A fun UWP implementation of the game Sokoban, demonstrating some new features of XAML and C# 6.0. Part 3
1 Apr 2018 by Daniel Vaughan
Learn how to leverage the asynchronous ICommand implementation in Codon FX to support commands that kick-off long-running operations.
29 Mar 2019 by Daniel Vaughan
Create a dynamic settings screen for your UWP app. Add a setting with a single line of code.
18 Oct 2016 by Daniel Vaughan
A fun UWP implementation of the game Sokoban, demonstrating some new features of XAML and C# 6.0. Part 2
22 Jan 2017 by Daniel Vaughan
Implementing synchronous and asynchronous form validation for XAML based apps.
19 Aug 2017 by Dave Kreskowiak
If you want to run the emulator, you have no choice but to upgrade Windows 10 to Pro or above.
29 Aug 2017 by Dave Kreskowiak
Some COM components work in UWP apps, most don't. Why? UWP applications run in a "sandbox" where the application needs permissions to do just about anything. They are restricted to using a limited subset of the Win32 and COM API's. Most existing COM components, unless they are explicitly...
24 Sep 2018 by Dave Kreskowiak
The .NET Framework does not block any of that stuff. UWP apps do, for security reasons. You can, however, put appropriate commands in your app manifest to tell UWP your app requires network access. Read Networking basics - UWP app developer | Microsoft Docs[^]
28 May 2020 by Dave Kreskowiak
You cannot replace the logon screen. Doing so would be a MASSIVE security risk. Also, if you could do it, you would need a disposable machine just to test it. Get ANYTHING wrong and you'll cause the code to crash, rendering the machine...
27 Aug 2021 by Dave Kreskowiak
You should NOT be using a preview product to develop a production application. If you're running into problems with using VS2022, you need to report this problem to Microsoft so they can fix it. THERE IS NO FIX FOR YOUR PROBLEM UNLESS YOU...
19 Oct 2016 by Dev nagar (Systematix)
Solution 1: Install-Package HtmlAgilityPack[ Nuget package Link ]Solution 2: Parsing Htmlprivate async void Parsing(string website) { try { HttpClient http = new HttpClient(); var response = await...
31 Jan 2017 by dexi lin
You can add or remove the ListView item by ObservableCollection.Make the ListView item source to ObservableCollection that can update when you add or remove the item.If you want to click the item and the item show more,you can make the Item'content visibility is hide and when you click ,make...
26 Jun 2018 by Dirk Bahle
Maybe drag & drop is not supported for a UWP TreeView? Drag and drop between treeview in uwp - Stack Overflow[^]
15 Dec 2015 by DL001
Does anybody know of any example code that is using CoreTextEditContext. I have googled this up and down to no avail, and the msdn docs are anorexic at best.In particular I am struggling to understand how to use the CompositionStarted and CompositionCompleted events.Any help or link...
23 Jun 2020 by Duong Dieu Phap
Hi, I'm using ScrollViewer UWP control to zoom an image, I manage to set ZoomMode="Enabled" to enable the zooming function. But the problem is, it only works by holding Ctrl key and mouse wheel! Is there any way to just using mouse wheel? Or...
10 Jan 2018 by Dylan Green
Put simply, I need help creating an algorithm that places the images in a larger image in a grid. Currently, I'm working on a system that can be used to generate infinite random maps based on the x and y coordinates of a panel. A core piece of functionality is the ability to subdivide this...
13 Jan 2019 by e.leaf
string _fileName = ""; _fileName = GetSaveDialogFileName(defFileName, ".pdf", "Pdf documents (.pdf)|*.pdf"); if (_fileName == "") return; public static string GetSaveDialogFileName(string defaultFileName, string defaultExt, string filter) ...
11 May 2017 by Eddie Han
Hi, I don't know exactly that Image.Source can bind with BitmapImage. But I did it using character sequence. char[] can bind with the Image.Source. here is the example. XAML : CS: public bool...
28 Mar 2017 by Eidorff
Simple software MIDI keyboard using Microsoft GS Wavetable Synth
10 Jun 2016 by El_Codero
A great Article about Zoom/Pan/Move Images exists here on CP:A WPF Custom Control for Zooming and Panning[^]
15 Feb 2024 by Emil12345687
Hello, i use ToastNotifications in my C# Application. Using the Microsoft.Toolkit.Uwp.Notifications NuGet Package. Content is build with ToastContentBuilder. I added the ToastNotificationManagerCompat.OnActivated event in my Application_Startup...
19 Feb 2024 by Emil12345687
Thank you - very good thoughts... You're completely right, it seems that it works like it should - it really would be a security issue if the behaviour clicking on "x" could be modified...
11 Mar 2022 by englebart
If it uses a database to store info, most DB engines have a way to trace calls to the DB and see the results returned. Ask one of developers about the DB.
5 May 2019 by Er.RajeshKumar
i need to transfer data into xaml page, but i don't understand how can do it?? What I have tried: Frame frame = new Frame(); frame.Navigate(typeof(demoProject.pageName), listofdata); Window.Current.Content = frame; ...