WPF

WPF : Using PRISM Regions Outside Of PRISM

I have just published a small article which shows you how to use PRISMs regions outside of PRISM.

I feel that PRISMs region support is very good and helps you create complex UI without resorting to loads of untestable code behind, and can easily be mocked if you use a region service similar to what I show in the article.

If you have no idea what PRISM regions are this article may help you, and if you have used PRISM before but just like the region support it offers, this article may also be for you.

Anyway check it out, and have a play with the demo app:

http://www.codeproject.com/KB/WPF/PRISMRegions.aspx

Advertisements
Introduction

WPF : TimeLine Control

I have just finished creating what I think is a rather nice TimeLine Control.

Here is a video of it in action

It is capable of displaying dates as different states. It has the following viewing states:

DecadeView

https://i0.wp.com/dl.dropbox.com/u/2600965/Blogposts/2010/04/Decades.png

YearView

http://dl.dropbox.com/u/2600965/Blogposts/2010/04/Years.pn

MonthsView

https://i0.wp.com/dl.dropbox.com/u/2600965/Blogposts/2010/04/Months.png

DaysView

https://i0.wp.com/dl.dropbox.com/u/2600965/Blogposts/2010/04/Days.png

SpecificDayView

https://i1.wp.com/dl.dropbox.com/u/2600965/Blogposts/2010/04/Day.png

It supports friction enabled panning if there is to much horizontal data to view. it uses the lovely Transitionals WPF dll from codeplex, to transition between views. This is quite a complex control and is a good example (at least I think so anyway) of how to use the state pattern to create more workable complex UIs.

I also feel it is quite ease to use and fairly customisable if you do not like my default look and feel.

And here is a link to a proper write up about the code and which also includes the source code and a small demo project :

http://www.codeproject.com/KB/WPF/TimeLineDemoProject.aspx

Enjoy