Click here to Skip to main content
15,885,366 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 Score

Universal Windows Platform 

26 May 2018 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
29 Nov 2017 by raddevus
Get Started in UWP (moving away from WinForm) Chapter 7 Saving journal entries in the file system
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
27 Nov 2017 by raddevus
Get Started in UWP (moving away from WinForm) Chapter 4 Adding Windows Controls (Building the DailyJournal app)
28 Nov 2017 by raddevus
Get Started in UWP (moving away from WinForm) Chapter 6 Programmatically Adding Tabs (Pivot) for Multiple entries in DailyJournal (includes CommandBar and Menu concepts)
31 May 2019 by Michael Chourdakis
Replace GetOpenFileName/GetSaveFileName with a new cloud API!
21 Aug 2016 by Keerat Singh
Get Bing Image of the Day using different methods for JSON parsing
22 Jan 2017 by Daniel Vaughan
Implementing synchronous and asynchronous form validation for XAML based apps.
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.
12 Feb 2016 by Tom Chantler
In this article you will learn how to write a simple application for the Microsoft Band. It'll only take about half an hour. All of the code is in GitHub.
28 Nov 2017 by raddevus
Get Started in UWP (moving away from WinForm) Chapter 5 Adding Tabs (Pivot) For Multiple Journal Entries
12 Dec 2017 by raddevus
Get Started in UWP (moving away from WinForm) Chapter 12 Working with the ListView - Setting up ListView style via XAML, using data binding and anonymous types in C#.
20 Mar 2016 by Sumit Samediya
In this article we will learn how to generate Barcode and QR code in Windows Universal App.
28 Mar 2017 by Eidorff
Simple software MIDI keyboard using Microsoft GS Wavetable Synth
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.
1 Feb 2016 by Kashif-Sohail
Want to develop apps for Microsoft Band, while having no band device? It is now possible. Test out your app with Band on the Run.
6 Dec 2017 by raddevus
Get Started in UWP (moving away from WinForm) Chapter 10 Refactoring sometimes means fixing bugs -- Getting the DailyJournal FileName format working.
7 Dec 2017 by raddevus
Get Started in UWP (moving away from WinForm) Chapter 11 LoadFileFromStorage - When changes from this chapter are complete you'll have an app which saves all entries and loads them from files.
5 Feb 2018 by Lee P Richardson
This blog entry looks at what certificate pinning is, why you'd want it, and how to implement it.
29 Mar 2019 by Daniel Vaughan
Create a dynamic settings screen for your UWP app. Add a setting with a single line of code.
8 Feb 2024 by Sander Rossel
Adding to the already plenty solutions, I've asked myself this question recently. For a customer, I need to replace old VB6 applications throughout a factory. Web isn't an option as I need to communicate with hardware on the machines (although...
30 Mar 2016 by Richard Deeming
Your code is trying to load the literal string data\stations.xml as an XML document. It's clearly not XML.I suspect you wanted to load an XML file from disk; in which case, you just need to pass the path of the file to the Load method:doc.Load(@"data\stations.xml");If you're going to...
4 May 2016 by Pete O'Hanlon
If you want to save the file without using a 3rd party tool, you are going to have to write code that matches the PDF specification[^]. This is not a trivial task - as you can see, the 1.7 spec runs to 756 pages. If you are just trying to avoid the cost of purchasing a PDF generation tool,...
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.
27 Sep 2018 by Georgeutc
A very simple Resizable SplitView
18 Jun 2020 by SoundersFan
How to edit templates in VS XAML without the bloat
14 Nov 2016 by Simon Jackson
    For my sins, I was asked back to FutureDecoded again this year to give a talk on the Microsoft UWP platform, specifically about bringing games to the XboxOne using UWP.  By all accounts the session went well (especially as there was standing room only by the time the …
15 Jun 2017 by Vinothkumar Arputharaj
This article will show how to create a mixed dimension (2d+3D) application on HoloLens and switch between 2D and 3D views
28 Oct 2017 by webmaster442
How to format your XAML documents for effective version handling & maximum maintainability
12 Dec 2017 by raddevus
Apparently ListItems will not stretch to fill a space, but the Header item will. To fix the problem you have to add the following to your ListView ...
25 Mar 2018 by Matej Pavlů
Creating a replacement for missing TileBrush known from WPF
27 May 2018 by Lee P Richardson
How to push updates to Raspberry Pi UWP apps in prod
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.
14 Jan 2019 by Graeme_Grant
From what I can see from the limited code provided, You're creating multiple Connections to the DB. For SQLite, this can cause what you are experiencing. Try setting Pragma journal mode=Wal to allow multiple operations on the DB. You can read more here: Write-Ahead Logging[^]
28 May 2020 by OriginalGriff
You can't "replace" the Windows login - even an overlay app would require the user logged in before it was run, as only services can run before a user logs in - and they cannot interact with the user in any way, form or manner. If you think...
24 Jul 2020 by twhall
[Full disclosure: I've posted a similar question (same subject line) on "another developer forum" and received an answer there that isn't wholly satisfactory. I'm slightly rephrasing the question here in the hopes of maybe getting something...
26 Jul 2022 by Richard Deeming
You're trying to set both the Content property and the content of the element. You can't set both at the same time. Try:
21 Aug 2018 by Gene Cole (CFSW)
Integrating Sqlite into your Visual Studio/C# application.
7 Feb 2024 by honey the codewitch
I'm used to being able to whip up a simple to moderately complicated windows application using Windows Forms, and being able to get it to lay out everything without too much fuss. I can spend most of my time on the logic. This is good. Now, with...
29 Oct 2015 by Irina Pykhova
MS changed scrolling direction to vertical intentionally in UWP. If you need horizontal scrolling, you should define own style with control template. Take default style: https://msdn.microsoft.com/en-us/library/windows/apps/mt299128.aspx and change all things about orientation
30 Dec 2015 by Sergey Alexandrovich Kryukov
I can answer in detail just on WPF. I hope you can use these ideas for Universal Application as well.For the game field control, use Canvas. This control allows to position UI elements at arbitrary positions, so they can overlap. You can simply put 8x8 elements of the type Rectangle to...
7 Jan 2016 by Jochen Arndt
I don't know UWP but I will try to help.While you are using drag and drop inside one control type you should still differentiate between source and destination. DragEventHandler is for drag events on the destination only.Source (UIElement events)UIElement.DragStarting...
10 Jan 2016 by Jochen Arndt
I did not know UWP. But I know about Drag & Drop with Windows and think that this answers your questions.You are missing that you must also handle the DragOver event and that the handlers must set the DragEventArgs Class[^] Effect Property[^] to indicate what is allowed.The effect...
26 Mar 2016 by Sergey Alexandrovich Kryukov
Please see my article Practical Sound Recorder with Sound Activation[^].It is not a UWP but is in WPF, but it doesn't matter, because its audio part is tiny, clearly written in a separate file and class and can be used anywhere where you can use legacy Windows API. Actually, this part of API...
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...
7 Apr 2016 by Luiey Ichigo
Hi,I'm having problem to appearing the account user name. Can someone specify what's problem that I'm facing right now? Just first day of UWP and C#.XAML:
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 :-)
6 May 2016 by Simon Jackson
A break down on the different modes of Xbox One development and clear direction of what is possible with the new UWP Retail unlock mode. Enable all devs to sideload and develop on the Xbox One UWP Platform
10 May 2016 by Richard MacCutchan
See Cryptography for UWP apps on Windows 10[^].
21 May 2016 by OriginalGriff
You need to provide the protocol in the request. Try:HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Get, "http://api.openweathermap.org/data/2.5/weather?q=" + cityName + "," + countryName);
1 Jun 2016 by rlprakash
ImageBrush ib = new ImageBrush();ib.ImageSource = new BitmapImage(new Uri(selecteditem.Imageurl, UriKind.RelativeOrAbsolute));My_canvas..Background = ib;
17 Jun 2016 by Sergey Alexandrovich Kryukov
Your speculations are invalid. Nothing is forgotten, by one simple reason: you are the one who make the keyboard event data "remembered". The basic architectural paradigm of proper processing is called "dispatching". That's right, you can handle KeyDown and may sometimes need KeyUp, and you...
18 Jun 2016 by OriginalGriff
You can't run code "after" the event handler finishes, and there isn't anything which occurs automatically once the event handler is finished - unless you have added extra handlers to the same event, in which case they will be executed in turn. So check the event and make sure that you haven't...
29 Dec 2016 by Richard MacCutchan
See keyboard uwp - Google Search[^].
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...
19 Aug 2017 by Richard MacCutchan
See Introduction to Hyper-V on Windows 10 | Microsoft Docs[^].
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...
14 Jan 2018 by Matej Pavlů
ActionCommand variant that tracks changes of properties and raises CanExecuteChange event on its own.
19 Feb 2018 by Scolo
Hi All, I am having a lot of trouble with this and been investigating many many hours, so I am completely stuck. I followed the tutorial in the page: Getting Started on UWP - New Database - EF Core | Microsoft Docs This is to create a SQLite database and be able to use it in UWP with...
16 Feb 2018 by Scolo
Hi all, I am working in UWP with EntityFrameWorkCore and SQLite. I am trying to bind to my DbSet, but it doesn't update. I could make my binding work when I change the property Name, it gets updated. But the ListView doesn't update when I add/remove items to/from my DbSet. Here is my code: ...
8 Mar 2018 by Richard MacCutchan
See c# - How to call a function from DLL in UWP? - Stack Overflow[^].
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: ...
5 Jul 2018 by Gene Cole (CFSW)
Using HTTP with Bing Maps to get Elevation Data
14 Jan 2019 by #realJSOP
Google is your friend: How to Fix SQLite Error Database is Locked - Error Code 5[^]
14 Jan 2019 by Member 11334477
Thank you guys.... problem solved modifing a previous SELECT command as follows: using (SqliteConnection db = new SqliteConnection("Filename=" + CommonVars.filePath)) { using (SqliteCommand SQLcmd = new SqliteCommand()) { ...
3 Aug 2019 by Member 13674745
HEIF is not so new container format that allows the compression of multiple images, their colour profiles and thumbnails. Microsoft has recently added support to Windows 10 with HEIF Image Extensions that only decodes the master image in the container. Other C++ libraries exist online like ...
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...
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...
26 Jul 2022 by Le lance Flamer 2022
Sorry if the name of the question is too long, I don't really know how to make it smaller because English isn't my native language. NOTE: It is UWP C#, not C# alone (XAML + C#). Also, the icon is from the font "Segoe MDL2 Assets". My goal is to...
29 Sep 2022 by Gerry Schmitz
public int total => mark + mark1 + mark2;
5 Oct 2022 by Richard MacCutchan
This is a common question, and one that is impossible to answer. If you want to know what opportunities are available then you need to look at the local trade press to see which companies are recruiting and what skills they are looking for.
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.
7 Feb 2024 by Richard MacCutchan
Roger Deutsch wrote a series of articles on the subject: Programming Windows 10: UWP Focus (1 of N)[^]. I worked through it all and built the examples successfully. But as all my programming is just for fun I don't think I will use it much in future.
7 Feb 2024 by Pete O'Hanlon
My answer, cross posted from the lounge[^]. If I were still using XAML, I would use Blend with it. It takes a little bit of getting used to, but it's far superior to working with the layout designers in VS. When I do have to write a pure desktop...
8 Feb 2024 by logica
Try Flutter, You Won't Be Disappointed I faced the same dilemma as you - choosing the right framework for my next project. I evaluated numerous options, finally deciding on Flutter: it was a game-changer! The development speed and stunning...
8 Feb 2024 by Mitchell J.
It's been agessss since I posted here but I came here on a whim this morning and saw this question & it caught my attention As others above have said, Avalonia, .NET MAUI, and WinUI 3 are all decent options. I also find (found?) writing XAML to...