Showing posts with label ribbon. Show all posts
Showing posts with label ribbon. Show all posts

Tuesday, 16 August 2011

Silverlight Application Framework

This custom framework contains the following functionality:

Client

  • Ribbon menu bar (from DivElements)
  • Navigation frames for the main container and content pages
  • MVVM architecture
  • MVVM Light Locator to make ViewModels available to Views
  • MVVM Light Messenger for content navigation, status updates and logout
  • MVVM Light RelayEvent for Commanding in View Models
  • MVVM Light EventToCommand for key press binding in ViewModels
  • Custom client-side session data management
  • Mockable dialog box service
  • Custom Silverlight “loader”

Server

  • WCF Services (not WCF RIA Services)
  • Custom ASP.NET Authentication and login UI
  • ASP.NET Authorisation to allow for both secure and unsecure services
  • Text to Path web service to generate Xaml Path data from any string & font

 

Silverlight Application Framework demo from Steven Hollidge on Vimeo.

Navigation with the Ribbon and MVVM Light Messenger

The Ribbon button has a tag property that has the desired Uri set as its content.

When the button is clicked, a message is sent that contains the desired Uri.

The messenger listener receives the message and calls the ContentFrame.NavigateTo method.

Click here to download the source code:

http://stevenhollidge.com/blog-source-code/SilverlightExampleApp.zip

PS    Prefer a Treeview Menu to the Ribbon?

If you prefer the style of a Tree View menu, which is free compared to the Ribbon which is licensed, you can check out my blog posting here.

http://stevenhollidge.blogspot.com/2011/06/treeview-menu-for-silverlight.html

[ScreenShot008%255B5%255D.png]

Wednesday, 15 June 2011

Ribbon control in Silverlight

It’s been five years since Microsoft introduced the Ribbon within Office but it still divides opinion.  Here’s my sample app using a navigation frame and the Ribbon control from third party control vendor DivElements.

ScreenShot009

This example uses WCFRIA Services so you’ll need that installed (VS SP1 includes WCFRIA Services).

You might also want to install the latest Ribbon Dlls which can be downloaded from the Div Elements website:

http://www.divelements.co.uk/net/controls/sandribbonsl/

To download the code click here):

http://stevenhollidge.com/blog-source-code/RibbonDemo.zip

NOTES:

v2 of the Ribbon Dll is included in the Libs folder of the source if you haven’t downloaded the Ribbon Dlls, just update the reference in the Silverlight project.

As you are downloading Dlls from the web you’ll need to “unblock” them by opening Windows Explorer and right clicking on each file, select properties and click unblock.

You will need to update the Sql Server connection details in the web.config file to point to a database with ASPNET security tables loaded.

Don’t forget to set SilverbladeDemo.Web as the start up project and Index.html as the startup page.