WPF/XAML Web News 2006/09/22
Love this stuff!
- Kevin Moore (blogs.msdn.com/okoboji), a PM on the WPF team, posts an eagerly anticipated update of his bag of tricks. He has several new controls in this version. I really like the new Graph control! Check it out in action in the Times Reader (in the search/topic explorer.) If you are a control user or a control developer, definitely check this all out.
- Dan Crevier, a member of the Microsoft Max Team, has done a 8 part series on "DataModel-View-ViewModel pattern": Intro | DataModels | A sample DataModel | Unit testing the DataModel | Commands | Revisiting the data model | Encapsulating Commands | View Models
- Bryant Likes has a 3 part series going into how to use WPF and WCF together to continually show updated data in a WPF application with WCF’s help: Part 1 | Part 2 | Part 3
- Jessica Fosler, a "Cider" developer, writes several articles about Learning WPF from the Windows Forms developer perspective:
I’ve put together a series of articles on WPF, from a Windows Forms developer perspective. This started out as a simple document entitled “So you know Windows Forms and you wanna learn Avalon” way before there was as much content out there as there is now. I hope this twist in perspective is useful for folks.
- Mike Hillberg, a WPF architect, finishes his second week blogging with more great WPF details: The Loaded event and the Initialized event | Sharing, and not sharing, Setter.Value in a Style or Template | A trigger for the TreeViewItem directly under the mouse | Tips & Tricks- How to undo an implicit style
- WiredPrarie.com is doing a bunch of great posts. A few recent ones: WPF Decorators – Build your own Chrome! | WPF 3D Not ready | WPF Layered Windows come at a cost …
- In WPF device independent pixels for dummies BitBonk digs into the fact that when you say Height="200px", it turns into 200/96 inches.
Until today I was not able to fully understand what this obnoxious unit in WPF called "device independent pixels" really means. It was somehow clear to me that this was some kind of virtual unit and that it means that WPF pixels are not actual device pixels, meaning that a pixel in WPF does not map necessarily to a "real" pixel on the screen.
- Jessica Fosler, a "Cider" developer, discusses the WPF model for Resources in Playing around with WPF/GDI+ Resource interop:
If you’ve ever tried to load a Bitmap in Windows Forms using the new Bitmap(typeof(MyType), “sunset.jpg”) constructor, you’ll appreciate that they wanted to do something more friendly for markup in WPF.
In particular, its: <Image Source="Sunset.jpg"/>
- MDavey discusses using CAB with WPF (Composite Application Block)
- GeeksWithBlogs.Net discusses Sandbox exceptions in XBAP: When are they really thrown?
…when you want to have one code base only for both the standalone and the XBAP scenarios. The idea here is to develop one code base only, and to compile it and deploy it differently depending on the platform you’re targeting…
WPF Previews & Demos
- Loren is building a great looking Radial Panel. I like the look. Chris Anderson wrote one of these once. Wonder if he is going to put it in his book?
- Tim Sneath posts a link to videos of WPF apps in Windows Presentation Foundation: Live on YouTube:
Over the last week or ;so, I’ve had a couple of people point out some cool videos ;of WPF that have been posted up, so I thought I’d collate these for your interest and ;entertainment. If ;you want to be wowed by some of the cool things people are…
- Snowball posts a nice list of 5 resources in New WPF Articles (cubeapp, times reader, wpf feature montage, xaml cruncher, 3d xaml article from petzold)
Wise Advice from Chuck
- ChuckJ gives Fatherly Advice To New Programmers:
It looks like none of my children will become programmers. Instead of letting my fatherly advice to my new programmer son or daughter go to waste, I am going to inflict it on you. If you are newly embarking on the journey that is becoming a programmer, here is advice your father would tell you if he was a programmer. These are things I had to learn the hard way…
Brad Abrams discusses Web Apps vs Installed Apps
- Brad posts in Running apps In the browser or Out?:
…So the question I am struggling with is how to think about the end-user model of what runs in the browser or not. That is what is your mom’s expectation when an app runs in browser vs out of browser. There are two schools of thought here…
- Kyle Huntley responds in Browser vs Runtime, Atlas/Ajax, WPF thoughts:
If we re-examine the runtime vs. browser decision today, would we make the same decision?
- Browser downloads are now comparably sized to full-fledged runtimes and networks are much faster, so the browser no longer has any clear advantage in runtime distribution.
- “Applets” or transportable .NET code is plenty fast for the client now, so that reason favoring the browser is also gone.
- Downloaded byte-code or IL can still be pretty big. This can be managed with proper techniques, but it is still nowhere near as light as interpreted script and markup.
So it seems that the size of the executable is the last strong fundamental reason to favour the browser model. This must be balanced against the inferior programming model.
- Bryant Likes responds in Is That a Runtime in Your Browser? :
I definitely agree that WPF is taking us in the right direction and gives us a much cleaner development story than ASP.NET/Ajax. However, you might not have the option of assuming .NET 3.0 on the client for quite some time. But if you do have control over what is on the client, then WPF is a great choice for smart client applications (or is it a rich client?). Then you have the choice of running in the browser or not which gives you lots of great options.
- Fritzenhammer’s XamlWriter problems are cleaned up. I’m glad we had a great underlying API that made my sample possible to fix his perf issue in the short term. I had started my sample earlier that same week after a documentation review of the area…it didn’t take very long.
New York Times Reader
- BleedingEdge.com.au says:
It is still unclear if what we have at the moment will remain free or just a two week trial. If it is only a two week trial then I am quite sure I will be dishing out the US$49.95 yearly subscription for the ‘Times Select’.
- Roc of Mozilla notes the Times Reader and contemplates how it could be done in Mozilla. Interesting read…