Click here to Skip to main content
15,887,425 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 Updated

WinRT 

11 Mar 2013 by Abhinav S
You should be able to use URL Parameters.How to: Access URL Parameters in a Routed Page[^] should help you get started.This might help you as well - http://www.4guysfromrolla.com/articles/020205-1.aspx[^].
25 Oct 2013 by AbhinavDAIICT
While using Windows 8 Pro Tablet ( Thinkpad 2) to capture an image using its Primary camera, the maximum resolution that I get is 640X480. I have tried but could not succeed to get higher resolution. Please suggest a workaround. using Windows.Foundation;using Windows.Media.Capture;using...
17 Dec 2014 by Afzaal Ahmad Zeeshan
Since the IsFullWindow property has to put all other controls to the background, there is no way for you to do this. But yes, there is a way to do this, because many other Media players such as VLC media player makes a use of such technique, to show the subtitles on screen in the Full Window...
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
26 Dec 2015 by Afzaal Ahmad Zeeshan
In this post, you will learn how to perform text-to-speech actions in Windows Runtime for Windows Store applications, also how to store the speech stream in a waveform file format on your machine.
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.
6 Mar 2016 by Afzaal Ahmad Zeeshan
What Windows runtime can teach .NET developers
23 Aug 2012 by agent154
I've read that Enterprise customers are able to side-load their own "Metro" applications without having to go through the Windows Store. That's one positive, but it's extremely saddening that regular consumers cannot have the same benefit.I'm wondering though, if there's a way for me to...
15 Mar 2013 by AghaKhan
I would like to add WriteableBitmapEx lib in my Window Store Application. I just just looked with Manage NuGet packages find and found WriteableBitmapEx and installed it. No problem.C# project.I checked my References and there I can see WriteableBitmapEx.WinRT. Even I was able to see in...
25 Mar 2013 by AghaKhan
WriteableBitmapEx is extension to WriteableBitmap. So just use as WriteableBitmap image.It works finevoid MainPage_Loaded(object sender, RoutedEventArgs e) { WriteableBitmap writeableBmp = new WriteableBitmap(512, 512); ...
18 Dec 2013 by AghaKhan
I am working on C++ Window store application where I need a dll.#pragma onceusing namespace Windows::Foundation;namespace MyText{ public ref class Class1 sealed { public: Class1(); int Add(int x, int y); };}If I remove Add function then...
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!
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.
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()); } ...
5 Feb 2016 by Ajit Hegde
I have 4 subjects. Each subject has 500 questions. Once program loads settings it will give you an option to choose subject. Once user selects a subject it will load the list of questions. If question is solved then it is shown as green. I am trying to scroll to unsolved questions...
6 Feb 2016 by Ajit Hegde
I don't know what the problem was. But I found out that if you call ScrollIntoView from an event it will work.So I created Layout_Updated event. Called the ScrollIntoView from that event.
4 Jan 2013 by Alex Großmann
Hi :)well, I like to write some Apps to learn more about WinRT....I only used databases and usual textfiles to save content which was given by the user (f.E. his adress information). Now I like to know if there are new or let´s say more modern methods to save user content, specialy in...
11 Jan 2013 by Alex Großmann
Hello!I need your help guys and girls :-).I´m messing around with Win RT to make some apps....well, I like to use the roaming folder to store some textfiles. So, I´ve read that it (the roaming folder) can only be 100kb at all?! this is not much, and some textfiles will be bigger then that?...
16 Jan 2013 by Alex Großmann
Hi my friends,well, I need your help with finding the right event for the textbox here... I like to let the user write some information in it, when he presses enter it should be added to a label. well thats easy, but which is the right event for touch input? could anyone please help me...
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 Mar 2013 by Alex Großmann
Hello dear experts :-),Well I got 3 Sites. Lets Call them A,B and C.The user must give some informations on site A. These informations goes to Site B, where the user can select a recipe or something from site C (Site C is ja Catalog, and should return a single string)....now, how can I...
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.
2 Apr 2015 by anandblitz
Check the below link and see if it helps.https://www.leadtools.com/blog/multimedia-imaging/how-to-combine-video-audio-separate-sources/
13 Jun 2013 by Anas Karkoukli
A small tip for debugging WinRT component calls from WinJS applications
1 Dec 2015 by Ankush Jamdagani
Hell there! I am new to winrt and i was planning on developing a winrt app for a simple media player that would play audio/video, create playlist and have media library.As i was thinking i would make a playlost class and serialize it when a playlist is saved. This playlist class would be...
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
3 Mar 2015 by Apoorv Kumar Upadhyay
I have created a user control . The user control has an image control inside. Presently I am using WriteableBitmapEx and cropping the background image and displaying inside the user control .The actual requirement is to zoom in the pixels where ever the user control moves without compromising...
21 Oct 2013 by ArvindKumarG
how can we capture post request going out from web view control in Windows RT? does anybody has any idea?Thanks
17 Apr 2013 by Ashish679
How to play youtube videos in media element. I don't want to embed youtube player in my applicaiton using web browser control
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 =...
16 Nov 2014 by B. Clay Shannon
I want to conditionally disable/enable buttons on the bottom app bar, but there doesn't seem to be an "Opened" or "Opening" event or the like.How can I respond to the opening of the appbar so I can disable/enable these buttons based on the app's current state?
30 Sep 2014 by Bernardo Castilho
The article presents an ICollectionView class that supports filtering and sorting.
4 Nov 2013 by Bill_Hallahan
It appears that red and blue are swapped.Some image formats, such as the BMP format, store 8-bit colors in BGR order.Other formats are RGB.Try swapping the red and blue colors.
2 Dec 2013 by Borja Prado
WinRT Apps exception logging with WinrtErrLog and Google Spreadsheets.
10 Jul 2014 by Borja Prado
Windows Phone 8.1 Media Editing API
12 Mar 2013 by Boudi AlSayed
How to bind a color in XAML to my custom UserControl properties (And not default properties, the properties that I've made)
15 Oct 2013 by Caleb McElrath
When projecting a WinRT Component object to WinJS, I kept running into an exception saying that the WinRT object could not be extended. This post will briefly describe how I got around this issue.
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.
4 Nov 2013 by Casey Sheridan
So I'm working on a WinRT app in VB.NET that takes images and makes a video (.wmv) out of them. Since this is not achievable from .NET alone, I'm using a C++ library from here: blogs.msdn.com[^]I finally got a video file outputted but was disturbed to note a discoloring of the frames.(See...
4 Nov 2013 by Casey Sheridan
I finally found an alternative to using WriteableBitmap to export to a byte array.I started using this function to do that:Public Async Function ImageFileToByteArray(file As StorageFile) As Task(Of [Byte]()) Dim stream As IRandomAccessStream = Await...
26 Mar 2014 by CGN007
Decided to use telerik controls.Thanks for ur responses.
26 Mar 2014 by CGN007
I need to create some custom controls in windows8.1 and also add some validation to it. I would like keep this validations as separate part and apply that to each the custom control. Is it possible to do this.Can any suggest a way to achieve this.Thanking you,CGN
20 Dec 2013 by CPallini
Change fromQuote:int Add(int x, int y);toint Add(int x, int y){return (x+y);}And the compiler will bless you.
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.
30 Jun 2015 by Darshan VC
I want to change the hostname(NetBios) by code in C++/C#. The operating system is windowsRT 8.1I searched a lot but did not find any api for the same.SetComputerName will not work on WinRT
23 Nov 2014 by Darshana Dinushal
I am currently developing a simple html5 photo editing app.This application save edited images and then i don't know how to share this image to Facebook , twitter etc
17 Apr 2013 by Dave Kreskowiak
You don't. It's a violation of YouTube Terms of Service to play the content in anything other than their player.Straight from their TOS:Quote:4. General Use of the Service—Permissions and RestrictionsYouTube hereby grants you permission to access and use the Service as set forth in...
8 Feb 2014 by Dave Kreskowiak
Were you planning on writing your own database engine?? Windows has a small, limited database engine built into it, called the Extensible Storage Engine[^]Your problem is that there is no .NET wrappers that I know of to make using that engine easier in your code. You'd have to implement...
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...
2 Dec 2015 by David Catuhe
Thanks to Chakra (the JavaScript engine used by Microsoft Edge), it is now possible to host one of the fastest JavaScript engines (and also the one with the highest support of ECMAScript 6) inside any Universal Windows Platform application.
25 Jan 2013 by delibey
problem is you can use Listbox TextBlock and any other etc. in Flipview ItemdetailPage if you you DataTemplated. but What ever you add "ListBox" Lıke me in DataTemplate in Flipview ItemDetailPage. That ListBox is not recognize from code behind why ? I put ListBox in flipview and ı tryed to...
28 Sep 2014 by Dinesh Kumar Reddy
I am working on a windows phone 8.1 app using WinJS.I need to scan a QR Code and I am thinking of launching Bing Vision lens from my app. I checked the url association is not available for camera.Alternatively, I used File Open picker, so that I can use the camera button to launch camera,...
10 Feb 2014 by Dnyaneshwar@Pune
No higher version product can not run on lower version without making any changes.....
30 Oct 2014 by Dominic Burford
In your original version can you not just select the required column(s) using LINQ. Change the name of the column to the appropriate one.var setnames = (from a in psets select a.SetName).ToList();return setnames;
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...
16 Jan 2013 by Doris Chen
You can sideload LOB Windows Store apps apps on devices running Windows RT and on devices running Windows Server 2012, Windows 8 Enterprise, or Windows® 8 Pro. Distributing apps outside store is possible after complying to the prerequisites listed in this MSDN...
27 Aug 2015 by dtoth2
Hi, I need to ask for a passcode every time the app was suspended (and resumed), so I have to show a corresponding page, and after the user enters the pin proceed the app resuming to the page which was shown before suspending. How can I get the page to which I have to proceed? The App.Resume...
27 Jun 2013 by egiogli
Hi,I am currently using StackWalk64 to get stack on win 8 and winRT(ARM processor).It is working fine on win 8, but I don't know how to fill-in the variable with the structure STACKFRAME64 in order to make StackWalk64 working on WinRT.I am using the following piece of code, and I am...
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
24 Feb 2013 by ERLN
Above solutions are fine. Is any books on WinRT?
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...
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...
28 Jun 2012 by Farhan Ghumra
Hi, I am developing a paint like application in metro style with XAML/C# . I want to save whatever content is drawn on canvas as image. I have checked this solutions but it didn't helped me.Save canvas to bitmap[^]WPF/XAML: Saving a Window or Canvas as a PNG Bitmap[^]So how can I...
28 Jun 2012 by Farhan Ghumra
Thanks Jαved, but I want the solution for XAML/C# canvas element not for HTML5/JS canvas.
28 Jun 2012 by Farhan Ghumra
I need sample application explaining use of WriteableBitmapEx for winrt or wpfI have checked the codeplex but I am not getting any output in my metro application.
6 Nov 2013 by Farhan Ghumra
A Metro style app for basic drawing feature.
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); ...
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!
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...
22 Jul 2012 by Farhan Ghumra
Hi, I have checked this[^] sample. It shows me TimeLineMarker API. Now when I press button "Add Marker" at that time markers are added and text block shows the markers, on which time it was added. Now I want to display those markers onto Slider control in the form of any sign like any shape or...
22 Jul 2012 by Farhan Ghumra
i have successfully developed my app, you can check Metro Paint[^]
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);
22 Jun 2015 by Fiyaz Hasan
Building an outlook calendar app for windows phone using Live SDK
26 Nov 2012 by FoolGuy007
I have multiple tasks in my project, and I want a method executed when all the tasks done, how to do that? like Task.WhenAll, but I don't know how to use it.
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?
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...
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
24 Jan 2013 by FrankLavigne
Hi,Here's a quick backgrounder on Azure Mobile Services and Windows 8 Store apps.http://devhammer.net/blog/building-back-end-data-and-services-for-windows-8-apps-adding-push-notifications[^]Hope that helps.Thanks,Frank// Frank La Vigne / US Public Sector Developer...
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...
5 Mar 2013 by FrankLavigne
Launching an executable from a Windows Store app is blocked for security reasons.You wouldn't want to download an app from the Store and just have it kick off any process it wanted to. :)There might be workarounds, but an app that does that would never make it past the Certification...
5 Mar 2013 by FrankLavigne
Have you tried using FilePicker and have the user point to a specific path on the network?The file protocol has certain security restrictions. What about making that file accessible via one of the supported protocols?Thanks,FrankSign up at http://bit.ly/30ToLaunchWin8 for free...
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[^]
3 Jul 2012 by Fun@learn
Check the sample application present with the library. They are very helpful to understand how to use, tweak the library.This library is excellent. Bitmap operations are not supported natively, but these guys did all the hard work to make it simpler for others.Major reason for this...
26 Oct 2013 by gholder
The iPhone can mimic a Bluetooth smart client or server device. I would like to duplicate this function on a Windows 8 app. I can see how to perform the Bluetooth client with the new Gatt APIs, but I do not see how to access the layers required to allow the Win8 device to be a Bluetooth smart...
26 Mar 2014 by girishmeena
Just quick search provided me this http://blogs.msdn.com/b/windowsappdev/archive/2012/10/15/building-a-custom-control-using-xaml-and-c.aspx[^]Reusing controlsWhen you only want to use a control in a single project or for your own personal use, there isn’t much to think about in terms of...
12 Jan 2022 by Giuseppe Pischedda
Introduction to C++/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...
4 Oct 2012 by Graham Odds
Toob is a Windows 8 London Underground travel information app.
26 Dec 2015 by Gregory Morse
Custom Media Sink for use with Media Foundation Topologies and WinRT/WRL MediaCapture
13 Mar 2016 by Gregory Morse
Code methods for capturing and automating multilingual and imaging aspects for sound store deployments
25 Feb 2016 by Gregory Morse
WebView navigateToLocalStreamUri can be used from WinJS/JavaScript with some more advanced coding techniques to wrap a necessary interface
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 Jan 2016 by hans.hinnekint
How to serialize and encrypt an Object using C#