Click here to Skip to main content
15,891,316 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 Title

Universal Windows Platform 

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
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...
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:
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...
15 Mar 2018 by neoxxxooo
I am trying to start an exe that is located in C:/Program Files (x86)/App/ from UWP app. The UWP app is located in different directory C:/Program Files (x86)/UWPApp/. Is it possible to do that? What I have tried: I can start exe file by using Windows Desktop extension for UWP, add ...
8 Mar 2018 by mvdk72
Only solution that I see now is that you search for the .exe and start it when you find it. It is not possible to just start an executable and not telling where it can be found. The file system has folders for a good reason
27 Sep 2018 by Georgeutc
A very simple Resizable SplitView
18 Jul 2016 by Mohan Rajesh Komatlapalli
Hello all,In my application iam having a search functionality , and i implemented it like belowplacelist = placelist.Where(i => i.category_name.Contains(postData)).Union(placelist.Where(i => i.category_address.Contains(postData))).Union(placelist.Where(i =>...
15 Jul 2016 by Patrice T
Quote:when iam Entering the postData as "bamb", it is returning nothing , But when i enter the same thing like "Bamb", It is showing the results.The problem is rather classical and easy to solve.You have some data (whatever is the the organization).For performance considerations, you have...
18 Jul 2016 by Mohan Rajesh Komatlapalli
I have modified the code as below referred from StackOverflowindexlist = (from item in indexlist where ContainsIgnoreCase(item.restaurant_location,searchtext) || ContainsIgnoreCase(item.restaurant_name, searchtext) ...
7 Jul 2016 by Mohan Rajesh Komatlapalli
Iam having a list which contains data like a startdate , end date, name, location etc..Now i want to write a condition like i want to get data if, the datetime.Today is between event startdate and end date then it should get the data to Ongoing events list for that true condition also...
6 Jul 2016 by vijeshkumarvijayan
i am not exactly sure whether this will resolve your problem,from my understanding the following solution may help you to resolve the current situation* Only for Ongoing Eventshad you try this instead of your existing Code : indexlist = saveList.Where(i =...
7 Jul 2016 by Mohan Rajesh Komatlapalli
HI @vijeshkumarvijayanThank You that worked for OnGoing Eventsbut for Past Events i wrote like this indexlist = saveList.Where(i => Convert.ToDateTime(i.event_startdate) Convert.ToDateTime(i.event_endDate)
7 Jul 2016 by vijeshkumarvijayan
you can reuse same code and change condition indexlist = saveList.Where(i = Convert.ToDateTime(i.event_startdate)
1 Aug 2016 by Mohan Rajesh Komatlapalli
Hi, Everyone.Iam trying to submit my newer version of my application to store(Windows 10 Phone app), I tested my .APPXBUNDLE with Windows app Cert Kit and it showed successfull or Passed, So that i uploaded that file on to store and when i click on Submit to StoreIt is giving me an error...
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.
7 Feb 2021 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.
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()...
19 Jan 2016 by Leisvan Cordero
Adobe Illustrator script for UWP Assets
15 Apr 2015 by Juan Pablo G.C.
StateTriggers with multiple properties and initialization, setters for attached properties, deep property path, set values to null,custom attached properties, visual state group as resource and trigger inside datatemplates workaround
27 Aug 2021 by Mohamed Z Osman
UWP app submission, The following Test fails on the Windows App Certification Kit: Quote: Supported APIs · Error Found: The supported APIs test detected the following errors: o API IsTokenRestricted in advapi32.dll is not supported...
27 Aug 2021 by Mohamed Z Osman
Loopback flags were indicated as a possible issue. After deactivation, tests still failed. One of the following references was the real culprit: Microsoft.VisualStudio.Services.Client Microsoft.AspNetCore.Mvc.Core...
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,...
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.
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.
29 Dec 2016 by visnuS
Toast notification have a "close button" in the upper right corner.I want to record the time-stamp and the title of thee toast when user click that "close button" in the UWP application.Is it possible to achieve?What I have tried:public class MyBackgroundTask : IBackgroundTask{ ...
16 May 2017 by Rodimus74
I'm trying to show an image within a button (UWP). When I step through the code, the objects are all created properly and the Raise event is being called to update the XAML page - however no image is displayed. In this example the TEXT content is set on the first button - so I know binding to...
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...
16 May 2017 by Rodimus74
Finally got this working.... MainPage.xaml
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 :-)
25 Oct 2015 by Abhilash Raja
Building adaptive layout in a windows 10 app with relative panel and adaptive triggers
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 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...
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 Mar 2016 by Member 12416797
Hi guys, i'm trying to develop call reorder app for windows 10 using UWP platform. But i stucked on audio capture. Tell me plz using what technology i can figure it out.What I have tried:I read about Naudio, but it semms that it doesn't work well with UWP. Also i tryed to use...
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 Mar 2016 by TimWallace
My client wants a Windows 10 kisok application written in WPF. This app needs to communicate to a RESTful API hosted on AWS. In my service layer, I am trying to use HttpClient to perform a simple GET with no parameters, no body. The call never works, and, to make matters worse, I get the...
1 Aug 2017 by Member 13340628
I heard that Windows 8 Phone apps must be type-safe MSIL to be placed in the Windows App Store. Is this right? And what about Windows 10 UWP? I need to use fast unsafe code with pointers in my UWP app, but I don't know if there any limitations for Windows Store programs. What I have tried: ...
14 Jun 2016 by koolprasad2003
How to convert our existing lassic Windows/WPF/Win32 desktop apps to UWA? Project Centennial.
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...
3 Jan 2019 by Sauro Abbondanzieri
UWP, COM, C++/WinRT, OOP in plain C. What else?
29 Mar 2019 by Daniel Vaughan
Create a dynamic settings screen for your UWP app. Add a setting with a single line of code.
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
18 Apr 2020 by Member 14805662
I have a video URL link which is encrypted using CryptoJS on a server and my job in my Universal Windows App in c# is to decrypt the sent content and get the original video URL link. I have tried to use AES Decryption but still getting errors....
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.[^]
29 Jun 2016 by Joel Ivory Johnson
The storage APIs available to UWP applications are a little different than those in other .Net environments. This article will introduce you to the storage concepts specific to UWP with examples of how to use many of them.
30 Jun 2021 by Philosopheur
I have a GridView which display an image in a Grid. This App is based on PhotoLab Sample. ImageGridView_ContainerContentChanging is called when GridWiew is populated. When it's done, I would like to use RightTapped on the grid (which contains an...
2 Aug 2019 by ketan Ram Patil
hello friends currently i am working on Data grid in uwp i have created the grid view but i don't know how to add the selcect all checkbox as header in uwp xamarin the code which i have tried it display datagrid perfectly but i don't know how to add the checkbox at header for select all check...
21 Feb 2019 by Gerry Schmitz
Use the columns' "Header" object to put "stuff" in the header. The header is / was typically used to show an up or down glyph when sorting a column "after clicking the header". Some other convention was to simply "select all" when you "clicked" the header. You have a new "pattern".
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.
18 Jun 2020 by SoundersFan
How to edit templates in VS XAML without the bloat
27 Feb 2017 by Member 11272589
Equaliy Operator == is not working in Universal WindowsWhat I have tried:Am trying to compare two objects of value as keyvaluepair using equality operator . The condition was set true in WPF and get false in Universal Windows.But using equal() get true in both WPF and UWP. Is the...
27 Feb 2017 by Member 11272589
Hi All,This below code is my actual requirement. public partial class MainWindow : Window { public List> Collection { get; set; } public MainWindow() { InitializeComponent(); ...
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.
2 Sep 2017 by Member 13390259
have a circle (Ellipse) in my windows phone app
2 Sep 2017 by Graeme_Grant
Where are you stuck? Is it the WPF VisualBrush? According to the documentation[^]: Quote: Paints an area with a Visual. Now, Google Search is the first place to look. Here is the search that I used: uwp visualbrush - Google Search[^] First search result was this: Composition brushes - UWP app...
30 Mar 2016 by Haechtsuppe
Hey mates,normally I am using a MS SQL Server to store/load information but now I am playing with UWP on my Lumia and it is great. But now I want to load content from a local file and display it in a Textblock.I have not worked for years with XML, so here's the file: ...