Raymond’s Windows Universal Samples API concordance

If you want to find an SDK sample that uses a particular feature of the Universal Windows Platform, you can try my Windows Universal Samples API concordance on http://oldnewthing.github.io/Windows-universal-samples/. Expand the tree view to find the thing you're interested in, and it will provide links to every line of C# code that uses it.

The following deep links are also supported:

I will try to keep this site in sync with the latest release of the Windows Universal Samples repo. The site is kind of ugly right now, but it works just barely well enough to do what I needed.

Note that the concordance is not complete. There are holes in the analysis which I hope to fill in over time. But at least it's a decent start.

Eventually, I'll blog about the program I used to generate this information. The short answer is Roslyn. That's why it searches only in C# samples.

Comments (19)
  1. SimonRev says:

    Not sure if you care, but in Firefox the only thing that appears is the bullet.  No text is visible.

    [Thanks for the reminder. Firefox is the only browser that doesn't support innerText. Switched to textContent. -Raymond]
  2. Leonardo Herrera says:

    Nice! Every self respecting geek should play with Roslyn at some point.

  3. Jason says:

    What SimonRev said. Clicked link, got nothing but empty list item elements. No errors in the console. Maybe the UI-building Javascript is doing something IE-specific?

  4. Xv8 says:

    No love for interfaces?

    [See second-to-last paragraph. -Raymond]
  5. Frank says:

    Still not working in FireFox after the initial fix. If I go to "oldnewthing.github.io/…/" right now, I see a bullet point with the text "Windows". The tree (or <UL>) won't expand if you click on it. Everything works fine in IE and Chrome.

    [Okay, found it. e.srcElement vs e.target. I should've just said up front "Works only in Internet Explorer" because that's the only browser I needed it to work with. -Raymond]
  6. Joshua says:

    Due to accessibility bugs in Windows, I have only two choices: Firefox and IE 8. Neither works.

    [Like I said, the site is ugly. I originally wrote it just for myself. Sorry for sharing. -Raymond]
  7. Gabe says:

    I'm not familiar with the Roslyn API, but since Roslyn supports both VB and C#, it should be fairly straightforward to index VB code too, right?

    [Okay, I just added VB support. Check it out. -Raymond]
  8. John says:

    Raymond Chen on GitHub! Time to follow :) It's even got his smiling picture there haha!

  9. Mark says:

    IE11 doesn't work either, or maybe my poor laptop is confused.

  10. Myria says:

    It's too bad that Roslyn doesn't support C++.  An open Windows C++ compiler would be nice.  (I don't count GCC or Clang as Windows compilers because they don't support __try.)

    It's also too bad that I feel like Microsoft is deprecating desktop applications.

  11. Stephen says:

    This is awesome, I wish more API documentation worked like this with real code. (Yes I realize that this isn't documentation, but you get the idea). Great work.

  12. Eddie Lotter says:

    This is an awesome resource.

    Thanks for sharing.

  13. Nico says:

    That website is brilliant.  I have become so accustomed to noisy crap and flash-filled sites that seeing something fast, simple, usable, and to the point was almost jarring.  Thanks!

  14. Ken Hagan says:

    @Myria: To me it feels like Microsoft have been deprecating desktop applications ever since .NET 1 came out. I'm no longer worried by that.

  15. Rob says:

    The generator itself should have been a universal app!  (Nevermind that Roslyn probably doesn't work inside of them.)

  16. Darran Rowe says:


    Clang is trying.

    It actually supports __try/__catch/__finally on x64, but not on x86 yet. There are still a few issues, but from the documentation itself, it is being worked on.

    Of course this doesn't change the fact that SEH isn't fully supported right now, but I just wanted to raise awareness that Clang is trying to be a proper Windows compiler.

  17. David M says:

    @Darran, @Myria:

    SEH is supported in Clang on Windows via the Embarcadero C++ compiler shipped with C++Builder (both 32 and x64.)  They contribute back the source too, of course.  Hopefully the Clang team will integrate it at some point.

  18. Andre says:

    Wow, that website is so refreshingly simple yet functional.

    Apple would probably hire you as Chief Design Officer for that.

  19. David Totzke says:


    >>It's also too bad that I feel like Microsoft is deprecating desktop applications.

    Then you clearly haven't been paying attention.  I'm a WPF developer and couldn't build a web application to save my life and I see many good years of development ahead of me.

    Sure, there is a lot of focus on script and web because they are still reinventing the way it's done since they haven't got it right after all these years of trying.

    As far as Microsoft is concerned, they've been investing heavily in WPF and XAML/Universal apps recently.  I mean, their flagship IDE is written in WPF.  Desktop is going nowhere fast.

Comments are closed.

Skip to main content