Posts
  • Nick on Silverlight and WPF

    Getting mouse positions

    • 1 Comments
    John points out that WPF/E's mouse event.X/Y are in the coordinate space of the browser plug-in, which can be pretty awkward to work with if your element is rotated, scaled, or otherwise transformed. In February CTP, unfortunately there's no way of transforming...
  • Nick on Silverlight and WPF

    Zip file for the mini-framework

    • 0 Comments
    I zipped up all the different files I use for my WPF/E mini-framework. I also threw in a couple other controls I've been working on -- slider, hyperlinks, and "animated button" (really just a test case to prove that the framework handles storyboards inside...
  • Nick on Silverlight and WPF

    Writing controls in WPF/E

    • 5 Comments
    A while back, I promised to share some tips and tricks about writing controls in the WPF/E CTP (yeah, I apologize, it's been a busy year). A lot of the SDK samples make use of a little framework that Peter Blois wrote which uses JavaScript's eval to create...
  • Nick on Silverlight and WPF

    The scrum methodology

    • 1 Comments
    I hear a lot about scrum these days, not the least of which because WPF/E uses scrum. Personally, I dislike any capital M Methodology, and there's something about the scrum vocabulary that really irks me. But I'll grudgingly admit, it works. There's several...
  • Nick on Silverlight and WPF

    Nick on WPF/E

    • 12 Comments
    Now that we've shipped our first CTP, I can tell you what I've been working on for the last six months. (No points for guessing!) It's been a lot of work but I'm pretty happy with the ctp. It's definitely not perfect, and there's a some important scenarios...
  • Nick on Silverlight and WPF

    JavaScript, the underappreciated language

    • 5 Comments
    I've spent a good part of my career writing compilers, editors, and runtime libraries, so I've formed some fairly strong opinions about what makes a good programming language. Which is why if you'd told me six months ago that I would be programming inJavaScript...
  • Nick on Silverlight and WPF

    XML heresies

    • 5 Comments
    Right before I went on vacation, I wrote a little code to do syntax coloring for XML, which reminded me of my mixed feelings about XML. Don't get me wrong, there's enough momentum behind it that these days it's the right answer for almost any text format...
  • Nick on Silverlight and WPF

    Syntax coloring for xaml

    • 0 Comments
    I wrote some code that would generate syntax coloring for xaml (and for that matter, most other XML), figured I would share it out. Some assembly required: using System; using System.Collections.Generic; using System.Text; using System.Diagnostics;...
  • Nick on Silverlight and WPF

    Hardware acceleration, layered windows, and XP

    • 2 Comments
    Seema posted the final word on hardware acceleration for WPF layered windows. Long story short, layered windows won't be hardware accelerated on Windows XP (but will on Windows Vista). We had hardware acceleration kind of sort of working, but it was pretty...
  • Nick on Silverlight and WPF

    Implicit and explicit tags in xaml

    • 2 Comments
    In WPF, some collection properties require you to specify an object element for the collection itself, e.g.: <Something> <Something.Children> <ChildrenCollection> … </ChildrenCollection> </Something.Children> </Something>...
  • Nick on Silverlight and WPF

    Xaml terminology & intro

    • 3 Comments
    One of the things I don't think we've done that good a job on in WPF is using a consistent set of terminology -- the product cycle has been long enough that a lot of things have gone through multiple names, and we often use them interchangeably. That...
  • Nick on Silverlight and WPF

    Another interop application

    • 0 Comments
    As Tim announced the other day, the "Calendar Printing Assistant for Outlook 2007" (codename: xcal) is the latest Microsoft application to use WPF. And as Erwyn noticed , one of the things that makes xCal different is that it uses a significant amount...
  • Nick on Silverlight and WPF

    What's an inheritance context?

    • 22 Comments
    I've been slacking on my blogging lately, so what better way to get back into the swing of things than to post an article I've been meaning to write for five months? But before I tell you about inheritance contexts, I have to explain the problem it solves...
  • Nick on Silverlight and WPF

    Favorite features in the June CTP

    • 10 Comments
    As the latest CTP shows, we are cranking along on WPF. Most of our time is going towards bug fixing and improving performance. Really important stuff, but not always terribly exciting for you to read about. <g> But there are few genuine features...
  • Nick on Silverlight and WPF

    ComponentDispatcher

    • 1 Comments
    IKIS depends on the message loop calling the root IKIS's TranslateAccelerator/TranslateChar/OnMnemonic. But every message loop is a little different, and not all of them are aware of IKIS, so WPF provides an API called ComponentDispatcher that defines...
  • Nick on Silverlight and WPF

    IKeyboardInputSink (IKIS)

    • 1 Comments
    I've been promising for awhile that I would write something about keyboard interop, and I finally got a free afternoon... With hwnd interop, keyboard input normally goes to the hwnd with focus. But tabbing, accelerators, and mnemonics are concepts...
  • Nick on Silverlight and WPF

    interop demo #3 -- MFC and WPF

    • 0 Comments
    Third demo is the one that uses MFC. (What happened to #2, the DirectX demo? I'm trying to figure out a way to post it, as far as I can tell the attachment is too big for this software. We use CommunityServer on blogs.msdn.com, it has some nice features...
  • Nick on Silverlight and WPF

    interop demo #1

    • 0 Comments
    Figured that in preparation for TechEd, I would buckle down and fight this stupid blog software to post some interop code updated for the most recent CTP. The interop APIs haven't changed, but some of the other stuff I used in the demos did. The first...
  • Nick on Silverlight and WPF

    What's a name scope?

    • 5 Comments
    In almost all programming languages, names are not globally unique, they are unique only relative to other names in the same name scope. In C++ and C#, a name scope is roughly what goes between curly braces -- { }. And in C++ and C#, namescopes nest ...
  • Nick on Silverlight and WPF

    TechEd 2006 (Boston)

    • 0 Comments
    TechEd is around the corner, and over in Redmond we're pretty psyched! We (WPF) have done two PDC's now, but this will be our first TechEd conference, as they don't let you in unless you're shipping or close to shipped. There's going to be several WPF...
  • Nick on Silverlight and WPF

    Beta 2 and StaticResource

    • 0 Comments
    As Tim mentions , in beta two we don't support any form of forward references using StaticResource. We've been tightening this down for a couple CTP's now, but the last case we fixed in beta two took awhile because it's wrapped up in a larger issue. ...
  • Nick on Silverlight and WPF

    Nested message loops, part 2

    • 3 Comments
    As we get closer to shipping WPF, I get more and more wary of what I call heavy-handed fixes. Places where in order to fix a corner case, we disallow another case that works perfectly well. One example is a bug we found recently, where if you do a nested...
  • Nick on Silverlight and WPF

    Nested message loops are evil (if you're a platform)

    • 1 Comments
    When you're writing a platform, you sometimes need to make hard choices between making the common cases easy to use and making the corner cases work 100% correct. Nested message loops have offered us many such challenges. Nested message loops -- Dispatcher...
  • Nick on Silverlight and WPF

    USER & GDI Compatibility in Windows Vista, wrapup

    • 4 Comments
    This content will make it into the master compatibility document in the next month or so, but in the meantime, wanted to create a single URL to point to all the different posts: Part 1 -- Painting issues part 2 -- Performance part 3 -- High...
  • Nick on Silverlight and WPF

    USER & GDI Compat, part 5 -- Miscellaneous

    • 7 Comments
    The fifth and final installment... NetDDE -- For security reasons/reduction of attack area, Windows Vista does not support NetDDE. (NetDDE was disabled by default on Windows XP SP 2 and Windows Server 2003.) Regular DDE is still supported. NetDDE is...
Page 2 of 5 (123 items) 12345