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

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...
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...
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...
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...
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...
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...
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 Graeme_Grant
If you want to rant, shoot the breeze, etc, then use The Lounge[^] forum. This is for those who are stuck or stumped and need help with code.
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...
14 Aug 2023 by Member 16071191
I tried that too. MS Store now accepts EXE installers. There are a few requirements: * The program EXE and the installer EXE must be signed with a Authenticode EV certificate ( those that require USB security stick when signing ) This EV...
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...
25 Apr 2023 by Aryaveer Chaudhary
DeviceInformationCollection devices = await DeviceInformation.FindAllAsync(PhoneLineTransportDevice.GetDeviceSelector(PhoneLineTransport.Bluetooth)); for (int i = 0; i
4 Mar 2023 by Member 15925018
How to make UWP Apps show controls? Hi, When I create a UWP App and put controls, they doesn't show! What I have tried: I've tried: A) Putting controls inside the "Page" of MainPage.xaml but it didn't work B) Making them bigger, but no avail C)...
28 Feb 2023 by Member 11343363
This is for the purpose of Loading screen in WinUi3. I tried loading it as gif and mp4. On both scenarios I got the video lagging in different machines. Now I have a 40 frame in png of the video file. I need to have the png images loading in...
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...
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...
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...
30 Nov 2022 by Graeme_Grant
This should help: Use a SQLite database in a UWP app - UWP applications | Microsoft Learn[^] If the above link is not suitable, then here is the google search used: uwp sqlite - Google Search[^]
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...
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 =...
27 Nov 2022 by OriginalGriff
THe only practical way to add data to a JSON file is to add it to the objects(s) you read from the file into your application, then write a new file that includes the old data. JSON is not a database, it's a data transfer format - and it isn't...
17 Nov 2022 by OriginalGriff
Start with the debugger: put a breakpoint on the first line in the method and step through to find out which instruction throws the exception. Then look at the Exception object to get the error message, stack trace, and any other info it can give...
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: ...
6 Nov 2022 by OriginalGriff
Read the error message: it's pretty explicit. Your JSON does not match the class you are trying to deserialize into. So use the debugger to look at exactly what the JSON in response contains, and if necessary use an online class constructor ( I...
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...
27 Oct 2022 by RickZeeland
You did not specify what database you want to use, if you need only one data file per user you can use LiteDB[^] An example from Getting Started - LiteDB :: A .NET embedded NoSQL database[^]: // Create your POCO class entity public class...
27 Oct 2022 by OriginalGriff
UWP has nothing specific to do with database tables: it's a presentation format that isn't data related. That doesn't mean "you can't use a DB in a UWP app", just that it's irrelevant whether this is a UWP app or not - the DB code is the same. ...
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, " ...
17 Oct 2022 by Richard MacCutchan
I have followed the article (link in the question), added the code and the button click handlers. The SQLite installation details are incorrect so I had to install the correct package and change the code to reflect that. My tests run to...
14 Oct 2022 by Venki Vky
i have created a local data base but i don't know how to call it by clicking on the button.
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.
10 Oct 2022 by Venki Vky
I was given a project to store a data in localdatabase I don't know how to create and store the data in local. eg: if I type a name in a textbox the the name must be store in local database I can't figure it out anyone know about it What I have...
10 Oct 2022 by Richard MacCutchan
You need to decide which database to use. For local you can choose from SQL Express (https://www.microsoft.com/en-gb/sql-server/sql-server-downloads[^]) or SQLite Home Page[^].
5 Oct 2022 by Venki Vky
I am learning how to develop a uwp software is there is any scope for it .now a days. which company will select me ? is there is any idea guys What I have tried: if any one know about it please let me know . which platform can i learn android...
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.
3 Oct 2022 by Venki Vky
I NEED TO CREATE A SEARCH BAR IN MY UWP APP ...
3 Oct 2022 by Venki Vky
I GOT THE ANSWER private void content_SelectionChanged(object sender, SelectionChangedEventArgs e) { Customer selectedItem = content.SelectedItem as Customer; Frame.Navigate(typeof(BlankPage2), selectedItem); ...
29 Sep 2022 by Gerry Schmitz
public int total => mark + mark1 + mark2;
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...
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:
11 Mar 2022 by Ramesh K 2022
Dear Friends , I need a help from you all expert , I could not find answer in google and other forum Question : How do I see the calls request response in case of Windows Application (not web) Pls read this objective , So you can help me if...
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.
6 Mar 2022 by RickZeeland
Maybe you can use the prefix[^] profiler tool.
17 Dec 2021 by Member 15471479
In my Scrollview, Its width is thin by default, When hovering it, its width becomes normal. But I want a customorized scrollview with a fixed width in xamarin or always default scroll Both vertical and horizontal scroll Any Suggestion Please ...
7 Dec 2021 by javier ramos lopez
I want to insert image into the database, the Button that opens the Filepicker converts bitmapImage as I can make the image save to the database through the save button. Also read the database for image in the part of showing the data a...
7 Dec 2021 by OriginalGriff
Photo is not "raw data" - it's a class which contains image data. So when you try to pass the class to SQL, what gets passed is not the image data - it's class information. SQL doesn't know what to do with that as it basically expects raw bytes. ...
7 Dec 2021 by javier ramos lopez
I have an accept button that is the one that saves the data for the database. I wanted to know how I can insert the ComboBox options private async void BTAccept_Click(object sender, RoutedEventArgs e) { string...
7 Dec 2021 by javier ramos lopez
at the end I have focused on the combobox theme by removing the Textblock and leaving: now the code to insert the Content of the ComBoboItem into the database: cmd.Parameters.Add("@category", SqlDbType.VarChar,...
28 Nov 2021 by Richard Deeming
You're doing it wrong. You've already got a view-model, and the controls are bound to properties on that view-model. Rather than extracting values directly from the controls to insert into your database, use the properties on the view-model...
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()...
27 Aug 2021 by Mohammad Nawaz
Hi I have created a MAUI project in VS 2022 preview, which is working fine initially with emulator, but now Emulator is not showing. When I create Xamarin project Emulator is showing and application is running on that Emulator. Please help me...
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...
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 Aug 2021 by Richard Deeming
You're using a preview product, so there are bound to still be bugs in it. After all, there are still plenty bugs in the non-preview versions! You should report the problem to Microsoft so that they can investigate: Visual Studio Feedback[^] ...
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...
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.
4 Feb 2021 by Mauro Fantina
Hello. I'm developing a UWP application that opens a "SerialDevice" that is a CYPRESS ARM micrcontroller with "Azure RTOS" and "USBX" library. The "USBX" library instantiates CDC ACM connection. The micrcontroller send every second a USB packet...
28 Oct 2020 by Member 14977494
SpeechRecognitionEngine s = new SpeechRecognitionEngine(); Grammar words = new DictationGrammar(); s.LoadGrammar(words); try { s.SetInputToDefaultAudioDevice(); ...
28 Oct 2020 by Member 13231064
I tried using this code SpeechRecognitionResult speechRecognitionResult = await speechRecognizer.RecognizeAsync(); textBox1.Text = speechRecognitionResult.Text; But it provide output only 1 time but i want to get output continuous till i close it myself. Please help me...
26 Aug 2020 by Gerry Schmitz
Use a SQLite database in a UWP app - UWP applications | Microsoft Docs[^]
26 Aug 2020 by Member 14616529
Hi! Im having a bit of difficulty figuring out how to bind my SQLite database to my datagrid. Ive tried a few different ways as I'm sure you will see in the code below, but, seem to have just lost my way with it. Can anybody see where I am...
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...