Posts

Showing posts from September, 2011

Using IActiveAware and INavigationAware

Image
[Concrete/Little bit interesting] The Microsoft Prism framework provides a couple of very useful interfaces for managing awareness of view activation and navigation.IActiveAwareIActiveAware is a simple interface you can implement on your views to indicate that you want the view to be notified when it is made active or inactive. It looks like this:publicinterface IActiveAware { /// <summary>/// Gets or sets a value indicating whether the object is active./// </summary>/// <value><see langword="true" /> if the object is active; otherwise <see langword="false" />.</value>bool IsActive { get; set; } /// <summary>/// Notifies that the value for <see cref="IsActive"/> property has changed./// </summary>event EventHandler IsActiveChanged; }The IsActive flag lets you know if your view is active, and the IsActiveChanged event will fire when that state changes.If you implement this on your view class, t…

This is a test Article on the blog

Image
[Concrete/Interesting]Here is a pictureLike it?Actually, this is a test for using Windows Live Writer to publish to SharePoint Wiki. Which sounds easy, but you guessed it, it’s not.I’ll let you know how I get on.Frankly, it’s all rather disappointing. I guess someone at Microsoft, looking to make SharePoint a little more useful thought “well it’s good at lists and HTML docs, if you add a template with an on-page editor, hey presto, you’ve got a Wiki”. Only, it’s not that simple and the editor is far too lightweight. Windows Live Write (WLW) on the other hand is a well thought out, powerful tool. Clearly the best Blog editor in my mind. It’s the reason I have a Windows VM on my Mac. So I gave it a go and WLW doesn’t want to talk to the Wiki because it’s not a blog, doesn’t support the APIs, just a list with an editor. However, it was suggested that I could author my pages against my SharePoint blog. Great. It worked brilliantly. WLW talks to SharePoint blogs and does an excellent job o…