BenCon's WebLog

D2D development blog

Blog - About

About BenCon's WebLog

This is where I attempt to regularly post about what I work on at Microsoft.

  • BenCon's WebLog

    IValueConverter in WPF data binding

    • 6 Comments
    One of the handy things that you can do with data binding in WPF is that you convert the data as you pull it from the data source. The mechanism for this is the IValueConverter interface. Let's say that you have a list of numbers representing positions...
  • BenCon's WebLog

    IScrollInfo in Avalon part I

    • 11 Comments
    Recently I invested the time to learn how to implement the IScrollInfo interface on a control in Avalon. This was an interesting learning experience, and since the existing documentation for this feature is not out in the wild yet, and I figure that people...
  • BenCon's WebLog

    More advanced attached property use: the Ramora pattern

    • 8 Comments
    I like to think of the technique I am about to demonstrate as the Ramora pattern - it allows you to attach a chunk of logic to any existing element that you have. The RadialPanel example showed an example of storing information on an element using...
  • BenCon's WebLog

    IScrollInfo in Avalon part III

    • 8 Comments
    When we last left the application it had the appearance of something that could scroll, but exceptions were being thrown from unimplemented members left and right. This posting will help out with that. Let's look at the SetVerticalOffset method as...
  • BenCon's WebLog

    IScrollInfo tutorial part IV

    • 8 Comments
    After our last installment, which was written many moons ago (literally), the only remaining thing left to do (apart from clean up the code a bit) was to implement the IScrollInfo.MakeVisible method. Somebody has requested that I address this, so I am...
  • BenCon's WebLog

    To <BR&gt or not to &lt;BR&gt, that is the question

    • 10 Comments
    One of the little things about a HTML editor is the way that block formatting works. Most users probably don't realize when they run into these kinds of problems, but they do. The reason why editors have a hard time is because they are trying to emulate...
  • BenCon's WebLog

    IScrollInfo in Avalon part II

    • 7 Comments
    At the end of the first part we have created a custom panel that implements IScrollInfo, but if you try to scroll we throw exceptions, and we cannot see the content. Since this is a Panel, we need to start seeing content so that we can scroll the content...
  • BenCon's WebLog

    CSS Options

    • 10 Comments
    One thing I have been thinking a lot about lately has been the multitude of ways that CSS can be applied to a document. You can have inline styles, you can have style elements in your page, you can have external style sheets, you can have styles applied...
  • BenCon's WebLog

    2B0ST0N6 day five

    • 4 Comments
    Note: This is *really* late in being posted, but I had work to catch up on when I got back :) The last day of SIGGRAPH 2006. I divided my time between papers and sketches, so there was a lot to push into my already overloaded and sleep deprived brain...
  • BenCon's WebLog

    Attached properties - the basics

    • 2 Comments
    One of the coolest features in Avalon is the property subsystem. While it might seem difficult for some that Avalon has a property system built on top of the normal CLR properties, the power that this system gives you is incredible and is part of why...
  • BenCon's WebLog

    Cool trick with Dependency Properties

    • 3 Comments
    One of the cool things about dependency properties is that they allow other things to be dependent on them and notified of changes to them (hence their name). However, one thing that people will sometimes stumble upon is that they want to know about a...
  • BenCon's WebLog

    Changing Panels and DataTemplates with ItemsControls in WPF/Avalon

    • 4 Comments
    I have posted before about the philosophy behind the ItemsControl, and now I will pull together some concepts from previous posts. I will use the RadialPanel and some ValueConverter magic to show how we can take a ListBox (the most famous of the ItemsControl...
  • BenCon's WebLog

    Design view grid is gone

    • 13 Comments
    Today we cut a couple of options from the product, but we felt that the ramifications of these cuts warranted talking to the community about it and letting people know about it. I will explain why we decided to do it and talk a little bit about the surrounding...
  • BenCon's WebLog

    Feedback wanted - how do you set column widths in your HTML tables?

    • 13 Comments
    My PM asked this question once in the forums but we did not get many replies - lets see how many we get in the blogs. How do you set the width of your table columns in HTML tables? Do you: Set a width on one of the cells in the column and clear...
  • BenCon's WebLog

    The ItemsControl paradigm

    • 2 Comments
    So what is an ItemsControl anyway? I think that this might be one of the steeper learning curves coming from Win32 like I did, so I thought that I would write about it. An ItemsControl is a control that owns items, whether through a collection of them...
  • BenCon's WebLog

    ItemsControl Customization

    • 3 Comments
    One of the cool things about ItemsControls is that you get to separate the data binding and item control logic from the layout logic by specifying the Panel that you want to lay items out. There are two ways of specifying a Panel for an ItemsControl...
  • BenCon's WebLog

    2B0ST0N6 day one

    • 4 Comments
    This is the first of my posts describing my experiences at SIGGRAPH 2006. I will try to have a post every day summarizing what I see. Everything here is my personal opinion. The first day of the conference is a little more low key than the other days...
  • BenCon's WebLog

    2B0ST0N6 day four

    • 3 Comments
    The first thing that I saw on day four was the paper "Photo Tourism: Exploring Photo Collections in 3D". It demonstrated a system for taking a collection of images that were taken in a similar area (such as in a town square), extracting features common...
  • BenCon's WebLog

    2B0ST0N6 day three

    • 4 Comments
    Today I tried to get an early start on the day by avoiding the infamous Boston Big Dig inspired traffic and walking to the convention center. It was a great route that took me past the Boston Common and through Chinatown, and past a very Bostonian train...
  • BenCon's WebLog

    2B0ST0N6 day two

    • 2 Comments
    The second day was very different to the first, with some papers being presented, a trip through the art gallery and the animation theatre at night. Due to some traffic snarling, I missed the first couple of papers in the morning (a situation that...
  • BenCon's WebLog

    Bye bye to Microsoft Max

    • 1 Comments
    As we can see now on the home page , the Max project has ended. It was a real blast, and I had the opportunity to learn a lot about Avalon (now WPF) and to create a really cool product. As the project closed, I decided to make a move in the company...
  • BenCon's WebLog

    Responding to feedback - Auto Position feature has been added to the designer

    • 4 Comments
    After hearing a lot of support for the idea of automatically positioning controls, I got the go ahead to implement the feature. The fact that we are able to respond to what customers ask for is very encouraging - I hope that this and other examples (such...
  • BenCon's WebLog

    Running a blog is hard

    • 0 Comments
    I finally found the settings in my blog that allow me to keep track of comments. For some reason, I thought that it was set to notify me when I got comments and it was not. While I was there I found the old comments that I neglected to moderate and...
  • BenCon's WebLog

    I got a new SmartPhone

    • 1 Comments
    I got myself an Audiovox SMT5600 smartphone today. This thing is amazing. It syncs to my outlook server for mail and calendar. It has IE on it. I can play movies and music on it. It came with all the cables to sync up to my computer like a PDA. And it...
  • BenCon's WebLog

    The button tag

    • 5 Comments
    One of the more interesting tags that I have seen is the <BUTTON> tag. Most people have never seen this, and when they see how whidbey lets you edit them like a normal container, the first instinct is to say "What is up with that?". Well, these...
Page 1 of 2 (39 items) 12