Prism 10933

by Christoph Menge in Software

A new Prism drop has just been released: http://www.codeplex.com/prism/SourceControl/DownloadSourceCode.aspx?changeSetId=10933 The current prism drop comes with a neat documentation. Unfortunately, I won’t be able to check it out for the next few days… The StockTraderRI now looks like this: .

Tags:

A MenuKiller Sample Application

by Christoph Menge in Software

Well, when you start with Physics, many people will tell you “It’s really not as hard as you might think; yet, you will need a very high level of frustration tolerance.” I believe I do have the latter, but this control drove me nuts. So I stripped out all complexity I could, hacked a few [...]

Tags: , , ,

ICommand.CanExecute() and NullReferenceException

by Christoph Menge in .NET

Have you ever tried to call ICommand.CanExecute()? It actually works fine, but only if you are not as naive as I am… Simply calling it without the proper know-how might result in a NullReferenceException, so what you should read is how to implement ICommandSource. See MSDN: How To: Implement ICommandSource MSDN: Implement ICommandSource Sample. Not [...]

Tags: , , ,

On UIElement.Opacity and the Removal of Storyboards

by Christoph Menge in Software

Today, I encountered two WPF related problems: 1 – UIElement.Opacity and the way it is being ‘inherited’ Every UIElement has an Opacity property, which will we be used when rendering the control. When rendering an object, 0.0 means the object is fully transparent, thereby invisible to the user, while 1.0 means it is fully opaque. [...]

Tags: ,

Applying ItemContainerStyle Recursively

by Christoph Menge in Software

In the MenuKiller Control, I need to configure a TreeView to quite some extent: I want all nodes to have a certain custom ItemContainerStyle. First naive approach: The TreeView will apply its ItemContainerStyle to all nodes. Wrong! The TreeViewItems themselves are ItemControls, therefore having their own ItemContainerStyle. Second approach: Have the ItemContainerStyle refer to itself [...]

Tags: , ,

The MenuKiller Control – Differentiated UX

by Christoph Menge in Software

A while ago, I read a very interesting blog post: Rethinking the Button by Dax Pandhi. It really fascianated me, so I started some research on the topic. Apparently, “Differentiated UX” is the new buzzword. As is always the case with buzzwords, different people understand it in different way, but I guess the common denominator is: We [...]

Tags: , , , ,

Krzysztof Cwalina on API Design

by Christoph Menge in Software

This is a rather old one (dated June 1st 2007), but I feel this one deserves it: A three-hour webcast by FxCop creator Krzysztof Cwalina who now works at Microsoft on the design of APIs, a little post mortem on the development of the .NET Framework, etc. You can download the not-so-small file here: http://blogs.msdn.com/kcwalina/archive/2007/06/01/FDGLecture.aspx   [...]

Tags: , ,

New Prism Drop!

by Christoph Menge in .NET

Again, there is a new drop for the Prism Reference Implementation. Get it here: http://www.codeplex.com/prism/Release/ProjectReleases.aspx?ReleaseId=12226 At the current release intervals, it’s hard to keep up

Tags: , ,

Custom DependencyProperties and “Auto”

by Christoph Menge in Software

While implementing a little custom control (a radial panel, actually – stay tuned what it’s good for…), I stumbled across a little problem when trying to add automatic behaviour. Many built-in WPF Controls such as Canvas or Panel allow something like Width="Auto" Now, for my control I need something that accepts AngleSpacing="Auto" AngleSpacing="<double>" Of course, [...]

Tags: , , ,