A Silverlight Expense Report Module using MVVM

By Michael Washington


A Silverlight Expense Report Module using View Model (MVVM) – CodeProject


Windows Phone 7 in 7 Minutes!


Each short, to-the-point video in this series highlights a feature of Windows Phone 7 in less than 7 minutes. This is a series for developers who want to pick up the basics quickly with brief explanations and hands-on examples. Demonstrations and code samples are based on the beta release of the Windows Phone 7 Developer Tools.

Topics include: Using Isolated Storage, Application Bar, Push Notification, Accelerometer, Web Browser, Location-Aware, Camera, SIP etc…

Via msdev: Windows Phone 7 in 7 Minutes! (Beta)

Turn your photos into a Pivot collection


Microsoft Pivot (a cool new technology that lets you easily view, search, and filter data using deep zoom) seemed like a natural and obvious fit for the task.

Therefore, using Microsoft Pivot and the Pauthor open source libraries, I created  a tool that helps users create a pivot collection from the photos on their hard drive and supports filtering by all the nifty meta data embedded in those files such as shutter speed, aperture, film speed, and focal length. Plus, users end up with a great look set of deep zoom images from their photo collection!

Via Turn your photos into a pivot collection with PhotoPivot « Programmer Payback


PAuthor: The Pivot Collection Tool (a.k.a. Pauthor) is a command line tool for converting Pivot collections between a variety of formats (CSV, Excel, CXML with raw images, and CXML with DeepZoom images) and for creating imagery for those collections. This tool is ideal for a wide variety of cases from quickly converting any spreadsheet into a Pivot collection to serious collection authors creating collections as part of an automated workflow. With a built-in image creation system based upon HTML and CSS, you’ll find it very easy to augment your existing images, or generate entirely new images from scratch.


Adding Drag and Drop Support using DragDropTarget in Silverlight Toolkit



A DragDropTarget is a Content Control that adds default drag and drop actions to the control nested inside of it.  DragDropTarget’s provide the following functionality:

1.  Initiates a drag operation when an item container is dragged.

2.  Displays a snapshot of the the item container by the mouse while it is being dragged.

3.  Handles drag target events and specifies which drag operations are possible by examining the item source bound to the nested control.

4.  If an item is dropped onto the drag drop target, it is added to the nested control if the nested control is bound to an ObservableCollection (or any collection that implements INotifyCollectionChanged and contains the same type of items as the item that was dropped).

5.  Where possible, scrolls vertically and horizontally when an item is dragged near the edge of the control.

This release of the toolkit introduces the following implementations:

  • ListBoxDragDropTarget
  • TreeViewDragDropTarget
  • DataGridDragDropTarget
  • DataPointSeriesDragDropTarget
Via Part 1
Via Part 2: Customizing Drag and Drop Behavior

Using COM Automation to overcome limitation of Silverlight 4


The new Silverlight 4 COM Automation feature can be used to perform a myriad of previously unavailable tasks in Silverlight.
Silverlight 4 offers the ability to initialize and use COM classes from Silverlight. These features are only available in elevated trust Out-Of-Browser mode on Windows machines. The majority of the COM Automation is centered around the ComAutomationFactory and ComAutomationEvent classes.

  • Write files anywhere on the local machine
  • Reading any file from the user’s machine
  • Execute/Run any command or file
  • Emulate user input
  • Pin files to the Windows 7 Taskbar
  • Read any Registry values
  • Add OOB App to Windows’ Startup
  • Pinning the OOB Application to Windows’ 7 Taskbar
  • Text to Speech
  • Execute SQL with Local Databases
  • Automate Scanners and Cameras
  • Use the Windows 7 Location API
  • Use Classes from the Full .Net framework
  • Use WMI to build FileSystemWatcher
  • Iterate over valid ProgIDs
  • Automate Microsoft Office

Via Cutting Edge Silverlight4 COM+ Features – Justin myJustin = new Silverlight.Expert.Justin();