Click here to Skip to main content
15,887,244 members
Everything / WinRT

WinRT

WinRT

Great Reads

by Bernardo Castilho
The article presents an ICollectionView class that supports filtering and sorting.
by Graham Odds
Toob is a Windows 8 London Underground travel information app.
by ljw1004
How to use UPnP on Windows 8
by Joel Ivory Johnson
In this article I take a look at setting up a system for HoloLens development, the compatibility of the applications with other UWP platforms, and introduce Unity for making a 3D application

Latest Articles

by Michael Chourdakis
Easily migrate to WinUI3 from plain Win32 while keeping all Win32 features intact
by Michael Chourdakis
A set of tools to create a new VCXPROJ file automatically
by Michael Chourdakis
How to use the WinUI3 controls in a plain Win32 application without packaging
by Giuseppe Pischedda
Introduction to C++/WinRT

All Articles

Sort by Title

WinRT 

11 Sep 2012 by Super Lloyd
Yesterday I was practicing my rusty C++ and trying to learn DirectX on Windows 8.One of the (WinRT, C++/CX) sample had a class like thatref class A{private protected: int num;}Now I'm confused.. what is this 'private protected' thing?I know protected (only accessible to...
11 Sep 2012 by Jochen Arndt
See Member Visibility[^] in the MSDN.
2 Feb 2014 by AnobikDey
A description of how images and other controls can be rotated and used to give 3d Effect in Windows Store Apps
18 Feb 2014 by LLLLGGGG
Hi everybody,This is a very quick question: I'm using VS13 Express for Windows Store and I'm experimenting something strange: if I edit a XAML file, the .cs file "loses the link" with the XAML one. It means that it does not recognize InitializeComponent and none of the controls in the page....
18 Apr 2013 by Yvan Rodrigues
A simple but effective way for format bound data in XAML with the Windows Runtime
30 Sep 2014 by Bernardo Castilho
The article presents an ICollectionView class that supports filtering and sorting.
6 Oct 2015 by James M Croft
This post covers getting your Windows apps connected to a Microsoft Band for an indefinite period of time.
1 Nov 2011 by mbcrump
A look at how to add an Application Bar to your XAML Metro applications.
19 Dec 2013 by AghaKhan
I have a created control in code behind and would like to add a Grid element. How this can be done!
11 Feb 2013 by Alex Großmann
Hello :-)I hope you can help me out again.So I´m about to writing a WinRT App with C# and XAML.Let me make an example what it should doing:We see 3 Labels, 3 Textboxes and a Addbutton: Name | Surname | Birthday TB1 | TB2 | TB3 | AddbuttonNow I type in my...
11 Feb 2013 by Pete O'Hanlon
Alex - the approach I would take would be to use an ObservableCollection that holds a collection of the class you are using to wrap the name, surname and birthday in. This collection will be the ItemsSource in your GridView - when you add an item to it, the application will automatically display...
20 Jul 2016 by Joel Ivory Johnson
Windows IoT on Raspberry Pi doesn't yet have native support for a hardware real time clock. I've created a solution for getting Windows IoT to initialize its clock from RTC at bootup so that other solutions don't need to be modified to read from the RTC directly.
19 Jan 2016 by Leisvan Cordero
Adobe Illustrator script for UWP Assets
16 Aug 2012 by Juan Pablo G.C.
Using MVVM with Windows 8 Modern UI.
23 Mar 2015 by Sacha Barber
Showcase of how to use a sort of Attached Behaviours for ViewModels, and how to build BIG XAML apps
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.
24 Jun 2014 by mayankkarki
I have a url for a file something like "http://my.domai.com/myfile.doc" and if I open this in browser, a popup opens to enter username and password, after that I can view or download file. Now I have to do this download in my win 8.1 app. I used code below:BackgroundDownloader...
24 Jun 2014 by Sergey Alexandrovich Kryukov
This is not a valid URL. Valid URL should start with the URI Scheme "http://" or perhaps "https://". You domain should be known to the DNS, prescribed in the DNS data.Please see:http://en.wikipedia.org/wiki/URI_scheme[^],http://en.wikipedia.org/wiki/DNS[^].—SA
1 May 2015 by Intel
This article covers design considerations for tablet apps, including UI design, session length, accommodating user differences, and localization.
25 Aug 2015 by Afzaal Ahmad Zeeshan
In this article I will explain Windows.Media.Capture namespace's MediaCapture element and how it can be used in Windows Runtime to create applications that make use of camera, for capturing photos and videos. Plus, the article shows how to capture the list of photos or videos that are recorded for p
14 Dec 2012 by orouit
This article demonstrates how to implement interfaces defined for a WinRT component in a C# Windows store DLL or a C# Windows store application.
3 Dec 2012 by orouit
This article demonstrates how to create different versions of WinRT components implementing a set of common interfaces.
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...
25 Dec 2013 by AghaKhan
I have a store application where I am using a control from DLL (Based on Window Runtime component). My all View Models are in that DLL. In that DLL there is timer which updates the view (UI) and get exception "Called from different thread". I am not sure how to resolve this proble.
25 Dec 2013 by Sergey Alexandrovich Kryukov
The problem is totally unrelated to DLL, it is related to the use of the threading with UI. The timer even is not guaranteed to be invoked on the same thread, that's the problem.You cannot call any method or property of the currently executing UI from any thread other then UI thread. For...
26 Dec 2013 by AghaKhan
private CoreDispatcher _dispatcher = null; public event PropertyChangedEventHandler PropertyChanged; private async Task UIThreadAction(Action act) { await _dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => act.Invoke()); } ...
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...
18 Apr 2012 by Joel Ivory Johnson
Download Code (1.14 MB)I was thinking about how to write code that will work on both Windows Phone 7 and Windows 8 (Metro). In theory some of the techniques that could be used are well known. But I wanted to try them out. So I decided to try some things out in a piece of throw away code.
12 Jan 2022 by Giuseppe Pischedda
Introduction to C++/WinRT
24 Mar 2016 by Sumit Samediya
In this article, we will learn how to consume Webservice in Windows Universal App
20 Jan 2024 by Michael Chourdakis
A set of tools to create a new VCXPROJ file automatically
5 Dec 2012 by PrabhuMuthusamy
i want to develop a new application which can support Windows 7, WinRT, Win8 and Windows Mobile.please suggest me the technology to develop the same which is compatible in all environments.
7 Dec 2012 by Jeff Brand
You will want to use a XAML-based technology.There is not a single stack that crosses all of those platforms, so you will not have a write once-run everywhere solution.The best approach is to use the Portable Class Library to create re-usable logic, then create different XAML interface...
11 Jan 2013 by Doris Chen
Hi,You may want to consider to develop your application in HTML5/JavaScript and use App Frameworks like AppMobi(appmobi.com) or PhoneGap(phonegap.com) to deploy to multiple platforms, like Windows 8, Windows 8 Phone, and Windows 7 Phone. These frameworks are supporting apps to be cross...
14 Jan 2013 by FrankLavigne
Alternatively, you may want to think about moving as much logic as possible to the cloud. Each client app would just "paint the glass" on the specific platform, leaving you with just a presentation layer to run across all the platforms.In terms of richness, you do lose out in HTML, as...
27 Feb 2016 by Gregory Morse
Deriving VirtualizingPanel and OrientedVirtualizingPanel is not possible in WinRT but using some calculation strategies, an efficient emulation is possible
11 Jun 2015 by Lance Contreras
Create an easily resusable IconBlock (TextBlock that display's an icon)
25 Oct 2012 by niklabh
jQuery customised version to be used with Windows 8.
26 Dec 2015 by Gregory Morse
Custom Media Sink for use with Media Foundation Topologies and WinRT/WRL MediaCapture
15 May 2014 by Samuel Cragg
DataTemplates in WinRT
3 Jan 2013 by Carlos Henrique Rodrigues Araújo
This article aims to supply a need for more detailed information on how to deploy a Windows Runtime component project as a Visual Studio Extension SDK.
19 Nov 2014 by Omrd
Hi All,I am developing a desktop wpf application which connects windows 8 tablet with BLE device over Bluetooth. Win8 metro app supports apis for Bluetooth via Windows.Devices.Bluetooth.Rfcomm namespace as given in the link...
6 Nov 2014 by praveen_kundurthy
This paper presents four guidelines that can help guide software developers as they design applications that encourage touch interaction and deliver a memorable user experience on Intel® processor-based pAIOs.
2 Sep 2014 by LEADTOOLS Support
LEADTOOLS includes comprehensive support for DICOM in each of its programming interfaces including .NET (used in the examples below), CDLL, C++ Class Library, HTML5 / JavaScript, WinRT, iOS, Android and more.
26 Mar 2013 by Jawahar Suresh Babu
The article explains how to add variable sized tile items into WinRT GridView.
6 Jan 2013 by Super Lloyd
DirectX made simple
10 Jun 2014 by luan_luna
public class Contact : BindableBase { private int id; private string name; private string address; private int number; [PrimaryKey] [AutoIncrement] public int Id { get { ...
17 Feb 2014 by hitech_s
In my windows 8 app we are using WCF service to fetch the data, in the app images are displaying with the image urls like "http://mysite.com/images/sample.png".In the xaml i am using image tag to display the image like this.
17 Feb 2014 by Krunal Rohit
See this link[^].From this, you can get Resolution of your Image. Now what you have to do is, once you get the particular resolution, put a check and within it write some logic to change the image.Hope this info will help you. Give it a try.Good Luck :)-KR
28 Mar 2016 by Member 11823120
My custom control is deriving from itemscontrol but it will not work.when use below code works fine.public new string DisplayMemberPath { get { return (string)GetValue(DisplayMemberPathProperty); } set { SetValue(DisplayMemberPathProperty, value); } } ...
30 Oct 2012 by KarthikVadla
Hi All, Scenario:I'm building a Windows 8 App which is outside of Windows Store. Here I wish to receive notifications using WNS. I have a Publisher which will generate events based on the user action on UI (Ex: Like Uploading a file, Once file upload is completed the event will be...
5 Mar 2013 by FrankLavigne
Yes, in order to get a GUID for the app that WNS will recognize, you'll need to have the app in the Store.I can ask around inside of Microsoft.Thanks,Frankhttp://bit.ly/30ToLaunchWin8[^]
16 Jul 2012 by Farhan Ghumra
Does iTextSharp support Windows Metro Apps?I am trying to create PDFs from a C# Metro App, but PdfWriter.GetInstance requires some arguments which is not available in WinRT.Any help would be EXTREMELY appreciated!
10 Dec 2012 by FoolGuy007
I have a grouped gridview, I want to drag item between different groups to modify the item dynamically. Any ideas?
24 Jan 2013 by FrankLavigne
Hi,Check out this article: http://blogs.msdn.com/b/going_metro/archive/2012/07/16/drag-and-drop-within-a-grouped-grid-view.aspx[^]It goes into details enabling drag and drop in a Grouped Grid View.Thanks,Frank// Frank La Vigne / US Public Sector Developer Evangelist // 30...
25 Jun 2012 by Farhan Ghumra
Hello,I m developing paint like application for windows 8. I have tried but I can't even developed even a line drawing tool. My application will have free hand tool, line, rectangle, ellipse, circle drawing tool, erasor. I am using canvas tool for drawing.So please guide me with some...
26 Jun 2012 by Sergey Alexandrovich Kryukov
[In response to follow-up discussion:]So, are you saying you could not find appropriate articles in MSDN? First, how about other than MSDN? What's wrong about this one:http://www.c-sharpcorner.com/UploadFile/65fc13/drawing-features-in-windows-8-metro-style-apps/[^]?As to MSDN, please...
22 Jul 2012 by Farhan Ghumra
i have successfully developed my app, you can check Metro Paint[^]
22 Oct 2012 by RafagaX
Probably a bit late, but you may (or others) find Drawing Library for Modern UI useful, it's a replacement for System.Drawing namespace that draws on top of a Canvas and provides a GDI+ like API.
19 Jan 2014 by hitech_s
we developed one app and implemented toast notifications. App is able to receive the notifications and am able to send notifications to the devices. but due to lack of unique device GUID, for single user am getting two channel urls. so single user is getting multiple notifications (duplicate)....
7 Oct 2011 by mbcrump
A look at how to enable Frame Rate Counter for HTML Applications in Windows 8
23 Sep 2011 by mbcrump
A look at how to enable Frame Rate Counter for XAML Applications in Windows 8
27 Jun 2012 by Farhan Ghumra
Hi, I am developing a paint like application in metro style. I want to apply a eraser functionality. So how can I make such a tool for erasing the content from canvas like we do in MS paint ?I don't want to clear whole canvas, wherever I click or drag the pointer, the path traveled by the...
27 Jun 2012 by Zoltán Zörgő
I have no experience in metro, but erasing in a raster environment is nothing more than painting with background color.
25 Oct 2012 by Simon Key
Event Finder - A WinRT app making use of the Google Places API and other data sources to display a lists of local events
17 Aug 2016 by rjrohit2303
I am getting below error when trying to download a file from ftp.System.Exception was caught HResult=-2147012893 Message=Exception from HRESULT: 0x80072EE3 Source=mscorlib StackTrace: at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at...
17 Aug 2016 by Jochen Arndt
Error code 0x80072EE3 is ERROR_INTERNET_EXTENDED_ERROR.This error occurs when receiving an error response from the server.You can try to pass the HRESULT to BackgroundTransferError.GetStatus | getStatus Method (Windows)[^] to get the server error code.See then the List of FTP server...
24 Jan 2013 by FrankLavigne
Hi,Did you add location as a capability in the app manifest?Thanks,Frank// Frank La Vigne / US Public Sector Developer Evangelist // 30 To Launch Sign up at http://bitly.com/30ToLaunchWin8// @tableteer / http://www.FranksWorld.com
23 Jan 2016 by Afzaal Ahmad Zeeshan
C# 6 has been available for a long time, by now! Many developers have written many guides to "list" the features. I have written this post to explain those features, and to explain whether they are actually new or are they just sugar coating to the compiler.
22 Feb 2013 by ERLN
hi ,WinRT is native. fine.Is any book for that ?How to start learning WinRT ?What components we need to install to work with WinRT ?Developing WinRT with Windows 7 + Visual Studio 2012 is enough ? or whethere We Must Need windows 8 ?ExplainRegardsLakshmi Narasimman
22 Feb 2013 by Irina Pykhova
Windows 8 only.Start from here: Developer downloads for programming Windows Store apps
24 Feb 2013 by ERLN
Above solutions are fine. Is any books on WinRT?
27 Feb 2013 by Joel Citizen
That thing called Amazon! :-)http://www.amazon.com/WinRT-Revealed-Michael-Mayberry/dp/1430245840
6 Jan 2013 by Wouter Van Ranst
Ever wondered what's inside your ApplicationDataContainer?
9 Oct 2015 by Irina Pykhova, Greg Lutz
This article describes the implementation of an extended GridView control that enables drag and drop with grouping and variable sized items.
15 Mar 2013 by vivek.khatri
I have managed to encrypt a file and set its extension to (.encrypted).Now, I am trying to add file type association in my App so that whenever the user opens a file with extention (.encrypted), it will be opened with my metro app so that i can process on that file (i.e. decrypt that file...
25 Mar 2013 by Jeff Blankenburg
I wrote a pretty immersive article on this in my "31 Days of Windows 8" series.http://31daysofwindows8.comHere's the article:http://www.jeffblankenburg.com/2012/11/18/31-days-of-windows-8-day-18-file-associations-app-contracts
10 Apr 2012 by LEADTOOLS Support
From Win32 to WinRT
9 Mar 2017 by Graeme_Grant
A documented journey looking for the fastest solution for generating valid Anagrams for the Weekly Code Project Challenge...
7 Oct 2016 by Member 12782061
i have a Question how to get any unique id or Mac address from my Raspberry pi ?Am using Windows Universal Application Platform Vb.net (Visual Basic ) anyone can help ?What I have tried: Dim deviceinfo = New EasClientDeviceInformationDebug.WriteLine(deviceinfo.id)but...
7 Oct 2016 by Dave Kreskowiak
A MAC address is not a unique identifier. The specification for MAC addresses just says that the id must be unique on the segment the network adapter is connected to. It is not a globally unique id.The best way to go about something like this is to assign a unique id to the device from your...
16 Jan 2014 by setafonnix
i'm use blend to create States and I use Timeline to move object from place to placeproblem is.. I can't get object's position while timeline is running, Result is freezingevent though i'm use timer to track positionHere is my code.private void b1_Click(object sender, RoutedEventArgs...
29 May 2014 by setafonnix
I have found answer by myself today (took 3 months haha)Just use timer tick This...[C#]textblock.Text = myMovingCanvas.RenderTransform.GetValue(CompositeTransform.TranslateXProperty).ToString(); Because storyboard's target use this properties...[xaml]
26 Dec 2012 by lokesh.g38
I actually tried with the following code, which gave me a result of the local machine Ip address, name and the server Ip addressvar hostNamesList = NetworkInformation.GetHostNames(); HostName serverHost = new HostName("cptdomain.ctl.local"); ...
22 Jul 2012 by Farhan Ghumra
I have checked this MediaCapture[^] sample. I tried to record audio but when I press "StartDevice" button, I got "Exception from HRESULT: 0xC00DABE0". My audio device is working perfectly, I have checked with Windows 8's built in sound recording app. Can anyone please help me to sort out this...
8 Aug 2012 by Farhan Ghumra
Finally got the solution myself, I changed this line:await m_mediaCaptureMgr.InitializeAsync();to this:await m_mediaCaptureMgr.InitializeAsync(settings);
28 Apr 2012 by Jeremy Alles
In this post, I share the “journal” I wrote will porting the app so that you can follow this process with many detail.
8 Jul 2012 by Farhan Ghumra
Hi, I am developing a note taking application in C#/XAML. I want a user to write anything on canvas with InkManager of "Windows.UI.Input.Inking". Then I want to display it as text onto canvas and then I want to save those recognized text in either text or image format.I have checked MSDN[^]...
10 Jul 2012 by Farhan Ghumra
Here is my solution IReadOnlyList text; string finalt = ""; private async void Recognize_Click(object sender, RoutedEventArgs e) { IReadOnlyList x = await _inkManager.RecognizeAsync(InkRecognitionTarget.All); ...
4 Dec 2013 by rjrohit2303
Hi,I am using a webview control and I want to access a webpage which asks for user name and password. I have the username and password but I dont want to prompt the user for credentials, how can I pass username and password with the url and login and access the webpage???Example:I want to...
7 Dec 2013 by Amir Hamza Md. Kayes
Use forms authentication. First, you create a login page and use this page for forms authentication. Then store the Identity in HttpContext.Current.User for further use from any where of your application.
26 Oct 2014 by B. Clay Shannon
I've got a Callisto CustomDialog in my MainPage.xaml: ...
30 Oct 2014 by B. Clay Shannon
I have this code in my WinRT app:internal static List GetPhotosets(){ List psets = new List(); using (var db = new SQLite.SQLiteConnection(App.DBPath)) { // Does SQLite support "DISTINCT"? string sql =...