December 9, 2003
.net
Graphic Designer + Coder + Longhorn = Goodness
Adam Kinney seems to be that rare combination of graphic designer and coder that I want to be to survive in the brave new world of Longhorn. I’m following his blog avidly.
December 2, 2003
It’s Official — Office is an Operating System
When you can write
nearly perfect versions of PacMan and Space Invaders in your favorite productivity application, you know it's crossed the boundary. Of course, treating cells like pixels and implementing the game by changing the background colors probably wasn't what the Excel developers had in mind, but frankly, that's not much different than what the guys writing the original games had to deal with. Wow.
December 2, 2003
FreeTextBox Rocks!
Because of history and laziness, my blog entries come from an HTML form on my site and they’ve always been in plain text. Well, today I got tired of that, so I asked Kent Sharkey (the MSDN King of ASP.NET) what I should get. He recommended the FreeTextBox ASP.NET control and this thing rocks! The Word/FrontPage keystrokes work the way I want them to. The Styles and Fonts and Colors are all provided for in an Office 2003-like toolbar. There’s a spell-checker (that installs on the fly, no less!), raw HTML editing, a table editor and a function that cleans up Word-produced HTML better than FrontPage! Plus it only took me about 30 minutes to get the thing going from a standing start and that included moving a form to use post-back so that I could enable runat=server. The only things I haven’t figured out how to make it do are disable some of the toolbar items, allow tab to take me out of the editor to other controls on my form and set the target on a link, but still, not bad for 30 minutes. : )
Highly Recommended.
December 2, 2003
.net
More Love for XAML Syntax: Dotted Element Names
Don Box simplified my XAML code using resources and styles. He also illustrates another XAML-ism that I’m coming to love: dotted element names. When you see something a dotted element name in XAML:
<GridPanel>
<GridPanel.Resources>...</GridPanel.Resources>
...
</GridPanel>
what you’re looking at is a more convenient way of specifying an XML attribute using XML element syntax. For example, while you can specify a menu item like s
<MenuItem Header="New" />
However, if you’re doing anything fancy, like specifying an access key, you can do this using the dotted element name syntax:
<MenuItem>
<MenuItem.Header>
<FlowPanel>
<AccessKey Key="N" />
<SimpleText>ew</SimpleText>
</FlowPanel>
</MenuItem.Header>
</MenuItem>
In the first case, we’re just specifying a string, so declaring the Header attribute inline makes sense. In the second case, we’re composing the Header for the MenuItem as a FlowPanel, combining an AccessKey and a SimpleText element. Underneath the covers, XAML attributes translate into properties, so for those properties more complicated than strings, the dotted element name syntax allows properties to be specified as sub-elements.