How to find your XAML Page object in the debugger

Taking a quick break from compiler performance to give a short debugging tip. If you’re debugging a managed application that is based on the typical frame navigation that the built-in templates and samples use and would like to find your the page that is currently being displayed, you can simply paste this into your Watch…

2

PropertyGrid in WinForms and elsewhere

The other day someone was asking a question on the WinForms forums about the PropertyGrid class. This control is what you typically interact with to set properties in Visual Studio, and it’s a very handy class that you can use at runtime as well for a quick way to allow users to edit an object….

3

Time categories with WPF and Exchange – Part II

Today’s post is a continuation of yesterday’s post. Today, we’ll look at how the app works its magic. To communicate with our Microsoft Exchange server, the first thing to do is to choose the technology. In our case we’ll use Exchange Web Services, which provide a SOAP-based interface that is very simple to use. There…

0

Time categories with WPF and Exchange

Today and tomorrow I will present a short app I wrote for myself that others may find useful as a starting point. Here at Microsoft, the use of Outlook and Exchange are of course ubiquitous (thanks WLW spell checker). So it’s no surprise that I have a vast amount of information stored in my folders…

0

Blast from the past: updating links in my most popular post

I recently got a message through the blog, letting me know about broken links on Showing drag/drop feedback on the WPF adorner layer. Now, this post is from over four years ago, so I hadn’t given it much thought in a long time. I’m happy to say that even though WPF has evolved quite a…

0

Previewing fonts in WPF with no code or executable

Sometimes I just love loose XAML. It has been around for a long time, but not every developer that works with WPF knows about this feature. In any case, I wanted to play with fonts and font sizes specifically to see how WPF would render different combinations, and I was able to whip this up…

0

StackPanel, DockPanel and scrolling items

I spent a little bit of time with this the other day, and I thought I’d pass the learnings on, in hopes it helps someone. This is the layout what I was trying to accomplish with WPF. In a section of my window, I wanted a bit of text at the top, and then the…

7

Gorgeous typography in Windows 7

Gorgeous text is something I have long been passionate about. This recent Engineering Windows 7 blog post talks about Windows 7 improvements in text rendering and typography. I love the variations on the Gabriola font, and the stuff they do with the Valentines sample is amazing – note how the beginning-of-word and end-of-word flourishes change…

0

Impact of text language on WPF

Finally, the examples I mentioned on my last post about text. Let’s take the WPF text rendering engine as my example of a text processor that’s sophisticated enough to handle this correctly. First off, as explained in xml:lang Handling in XAML, the XAML parser is actually smart enough to know that xml:lang is an important…

1

Profiling WPF Tools – not just for WPF

Windows Presentation Foundation (WPF) has recently had a refresh to its performance tools. You can read more about it on the What’s New for Performance Profiling Tools for WPF post. The suite of tools includes a bunch of very interesting tools, one of which is a string allocator profiler. The good news is – you…

1