Maybe I'm expecting too much here, but I figure I can't be the first person to have tried. Do I have to create (yet another) converter for this?
+2
A:
Not if you're using MVVM. Just expose a Version property from your view model and bind to that.
HTH, Kent
Kent Boogaart
2009-09-28 11:05:02
+1
A:
Accessing the current assembly's version requires method calls, so you can't do it with WPF binding:
Version version = Assembly.GetExecutingAssembly().GetName().Version;
Either use a converter (as you suggest), or create a property on your view model (as Kent suggests).
Drew Noakes
2009-09-28 11:27:30
Thanks, in the end I mixed and match - a property directly in my window (MVVM will be for later)
Benjol
2009-09-28 13:48:21