• Nick on Silverlight and WPF

    interop performance

    • 0 Comments
    Michael Lowe asked about performance of interop. I don't have as many hard numbers as I would like, it's on my (very long) to do list to do some profiling on a couple samples. But a couple thoughts. All Avalon applications are ultimately inside a HwndSource...
  • Nick on Silverlight and WPF

    The Render thread

    • 4 Comments
    Time to stop talking about hwnd interop for a few moments and get back to some earlier questions. Lee asked what the mysterious renderer thread does. Good topic, and I happened to have some previously written material lying around on just that question...
  • Nick on Silverlight and WPF

    The hwnd interop white paper

    • 6 Comments
    So that concludes my series about hwnd interop, which is really a draft of the hwnd interop white paper that will go into a future release of the Avalon SDK documentation, as part of an upcoming "articles from the architects" series. To recap, here's...
  • Nick on Silverlight and WPF

    hwnd interop (part 4)

    • 3 Comments
    A walkthrough of Win32 inside Avalon (HwndHost) To reuse Win32 content inside Avalon applications, one uses HwndHost, which is a control that makes hwnds look like Avalon content. Like HwndSource, HwndHost is straightforward to use – subclass HwndHost...
  • Nick on Silverlight and WPF

    hwnd interop (part 3)

    • 6 Comments
    A walk through of Avalon inside Win32 (HwndSource) To put Avalon inside Win32 applications, one uses HwndSource, which provides an hwnd that contains your Avalon content. HwndSource is pretty straightforward to use – first you create the HwndSource...
  • Nick on Silverlight and WPF

    Interop at the PDC!

    • 0 Comments
    The sessions for Microsoft's Professional Developer Conference (PDC) 2005 have been announced . I'm really looking forward to it, I'll be the speaker for the hwnd/Win32 interop talk. (Which is why I'm so anxious to finish the white paper -- so I can start...
  • Nick on Silverlight and WPF

    hwnd interop commentary

    • 0 Comments
    Couple notes about where this series is going: part 1 was an introduction to the topic part 2 is about airspace and what can and can't be done visually. The final paper will include some stuff about layered windows, I had some material written...
  • Nick on Silverlight and WPF

    hwnd interop (part 2)

    • 3 Comments
    Airspace Now that we understand what's going on behind the scenes, let's describe some of implications, which I refer to as "airspace". Within a top-level window, I like to think of each hwnd as having its own "airspace" -- each pixel within the window...
  • Nick on Silverlight and WPF

    hwnds and the DWM

    • 2 Comments
    I wrote that "All Avalon elements on the screen are ultimately backed by hwnds." Yep, even on Longhorn. One of the changes we made to USER and Win32k.sys in Longhorn is that when the DWM is on, all top-level windows (Avalon or otherwise) are rendered...
  • Nick on Silverlight and WPF

    hwnd interop (part 1)

    • 6 Comments
    So I've been trying for a while to finish a white paper about Avalon's hwnd interop functionality. I'm still not done, but figured I would post what I have so far so I can get people's feedback. I'm pasting this from MS-Word, which generates some, err...
  • Nick on Silverlight and WPF

    MDI Windows

    • 6 Comments
    Johan asked me about MDI support in Avalon. We don't plan to have a native Avalon implementation of MDI in version 1, mainly because MDI is so easy to do using Windows Forms and Windows Forms interop. I whipped together a quick demo of this, spending...
  • Nick on Silverlight and WPF

    Future topics

    • 7 Comments
    Couple quick responses to that "what to cover next" post, in case I don't get another chance for awhile: Threading and STA -- I'm always happy to talk about threading, although I already wrote a lot into previous post. Regarding STA specifically...
  • Nick on Silverlight and WPF

    Upgrading from March CTP to May CTP

    • 0 Comments
    So I spent part of my weekend updating various applications to the most recent CTP. I figured I would try it the same way most people outside of Microsoft would do it -- by using Google and searching the Avalon newsgroup. All told, I found the answers...
  • Nick on Silverlight and WPF

    What do you want to hear about?

    • 5 Comments
    I can ramble on about whatever is on my mind, but I prefer to talk about things that people are actually interested in. Any suggestions? I'd prefer to stick to stuff I actually work on -- e.g., interop with WinForms and Win32/hwnds, input, commanding...
  • Nick on Silverlight and WPF

    More about layered windows

    • 1 Comments
    Got a lot of responses to that last post, let's see if I can answer more questions than I raise: Why doesn't per-pixel alpha work? Basically, because Avalon uses DirectX to render, not GDI, and DirectX rendering to layered window don't work so good...
  • Nick on Silverlight and WPF

    Transparent and non-rectangular windows

    • 21 Comments
    I get a lot of questions about how to do transparent top-level windows in Avalon, or nonrectangular windows, or layered windows, or other variations on the same theme. The short answer is you can do most of these things, but it’s really a Win32 feature...
  • Nick on Silverlight and WPF

    Anonymous comments enabled

    • 2 Comments
    I enabled the "anonymous comments" feature, hopefully that will solve the problems some of you are seeing posting comments. Thank you Max for pointing this out to me. (I remember disabling that option when I set up the blog, I guess my security instincts...
  • Nick on Silverlight and WPF

    The middle mouse button

    • 2 Comments
    Another input question that comes up a lot is what happened to the third mouse button? We have MouseLeftButtonDown and MouseRightButtonDown events, but no MouseMiddleButtonDown event. You can get at the middle button by using the attached event Mouse...
  • Nick on Silverlight and WPF

    Common input problems

    • 1 Comments
    When debugging input problems in Avalon, there’s a couple things I always look for first. If I’m not getting keyboard input: Does my control actually have focus? Make sure IsFocusWithin property is true. Is someone handling the event before it...
  • Nick on Silverlight and WPF

    Threading models

    • 1 Comments
    I've gotten a couple questions about why we chose the threading model we did for Avalon, especially why we didn't do more for multithreaded programs. When we first created Avalon, we had three requirements for our threading model: Minimal performance...
  • Nick on Silverlight and WPF

    Windows Forms interop

    • 2 Comments
    A couple months have passed since Deepak Kapoor and I wrote an article about Avalon-Windows Forms interop. ( http://msdn.microsoft.com/library/en-us/dnlong/html/avalonwinformsinterop.asp ) I still point people to that article; even though it was written...
  • Nick on Silverlight and WPF

    Parser.LoadXml

    • 1 Comments
    Someone asked me the other day about why in the May CTP the documentation for Parser.LoadXml says, "Using SaveAsXml for common serialization scenarios is not recommended." This is my fault, I asked the SDK team to warn people that its it's very easy to...
  • Nick on Silverlight and WPF

    Avalon's naming conventions

    • 3 Comments
    A long time ago, I promised to document the various naming patterns that Avalon uses. I still haven't done that, but I did the next best thing and convinced Tyler Barton to write it during his recent internship, and so rather than make people wait until...
Page 5 of 5 (123 items) 12345