Silverlight Toolkit July 2009 changes

The following list encompasses all changes made between the Silverlight Toolkit March 2009 release and the Silverlight Toolkit July 2009 release. To see previous changes see the Silverlight Toolkit December 2008 change list and the Silverlight Toolkit March 2009 change list.

NOTE: If you're migrating from Silverlight 2 or Silverlight 3 Beta to Silverlight 3 then it might be helpful to review the following document: Ensuring That Your Silverlight 2 Applications Work with Silverlight 3.

New Controls

GlobalCalendar

GlobalCalendar provides an easy way to style individual days as well abstracting out calendar logic allowing the ability to define custom Gregorian calendars.
  • Same API as Calendar with two new properties: CalendarDayButtonStyleSelector and CalendarInfo.
  • New: Hotkey Ctrl + Home selects the current date or extends the current selection when used in conjunction with Shift.

Rating

Represents a control that can be used to display or allow users to interactively select a rating value. Ratings can be whole or partial stars. By default the control displays stars but can be easily styled to use a different rating metaphor.

TreeMap

The TreeMap visualisation displays a hierarchy of data as a set of nested rectangles, where the area of each rectangle represents a chosen metric from the data. Through the use of Interpolators, other properties such as background colour, font size and font colour can be varied to represent other metrics. TemplateSelectors allow the control to be easily extended to have different layouts or color schemes for different levels or branches within the hierarchy.

New Extensions

ItemsControlExtensions

Provides useful extensions to ItemsControl:
  • Get various collections representing the items and their containers.
  • Get an items host or ScrollViewer.

ScrollViewerExtensions

Provides useful extensions to ScrollViewer to make basic scrolling tasks easier:
  • Enable mouse wheel scrolling in XAML!
  • Scroll by page or line.
  • Scroll to top, bottom, left or right.
  • Scroll items into view.

TreeViewExtensions

Provides useful extensions to TreeView and TreeViewItem to greatly simplify common TreeView tasks:
  • Set selected item
  • Easily add connecting lines and CheckBoxes
  • Expand and collapse items.
  • Get items and their containers for parents, siblings and descendants.
  • Get path.

Breaking Change: DataForm, DockPanel, WrapPanel, Expander, HeaderedContentControl and Viewbox moved from Silverlight 3 SDK Beta into the Silverlight Toolkit July 2009.

In the Silverlight 3 Beta SDK the above mentioned controls were contained in the SDK. When updating any Silverlight 3 Beta application to Silverlight 3 you'll need to add the appropriate assemblies listed below as well as adjust the namespace prefix.

Control \ Silverlight Version Silverlight 2 Required Assemblies Silverlight 3 Required Assemblies
TreeView System.Windows.Controls.Toolkit.dll System.Windows.Controls.dll
HeaderedContentControl System.Windows.Controls.Toolkit.dll System.Windows.Controls.Toolkit.dll
HeaderedItemsControl System.Windows.Controls.Toolkit.dll System.Windows.Controls.dll
DockPanel System.Windows.Controls.Toolkit.dll System.Windows.Controls.Toolkit.dll
WrapPanel System.Windows.Controls.Toolkit.dll System.Windows.Controls.Toolkit.dll
Expander System.Windows.Controls.Toolkit.dll System.Windows.Controls.Toolkit.dll
ViewBox System.Windows.Controls.Toolkit.dll System.Windows.Controls.Toolkit.dll
Label System.Windows.Controls.Toolkit.dll System.Windows.Controls.Data.Input.dll
AutoCompleteBox System.Windows.Controls.Input.Toolkit.dll & System.Windows.Controls.Toolkit.dll System.Windows.Controls.Input.dll & System.Windows.Controls.dll
GridSplitter System.Windows.Controls.dll System.Windows.Controls.dll
TabControl System.Windows.Controls.dll System.Windows.Controls.dll
DatePicker System.Windows.Controls.dll System.Windows.Controls.dll
Calendar System.Windows.Controls.dll System.Windows.Controls.dll
DataVisualization/Charting System.Windows.Controls.DataVisualization.Toolkit.dll System.Windows.Controls.DataVisualization.Toolkit.dll
ImplicitStyleManager System.Windows.Controls.Theming.Toolkit.dll System.Windows.Controls.Theming.Toolkit.dll
Any Theme System.Windows.Controls.Theming.ThemeName.Toolkit.dll & System.Windows.Controls.Theming.Toolkit.dll System.Windows.Controls.Theming.ThemeName.Toolkit.dll & System.Windows.Controls.Theming.Toolkit.dll
Accordion System.Windows.Controls.Layout.Toolkit.dll & System.Windows.Controls.Toolkit.dll & System.Windows.Controls.dll System.Windows.Controls.Layout.Toolkit.dll & System.Windows.Controls.Toolkit.dll & System.Windows.Controls.dll
LayoutTransformer System.Windows.Controls.Layout.Toolkit.dll & System.Windows.Controls.Toolkit.dll & System.Windows.Controls.dll System.Windows.Controls.Layout.Toolkit.dll & System.Windows.Controls.Toolkit.dll & System.Windows.Controls.dll
TransitioningContentControl System.Windows.Controls.Layout.Toolkit.dll & System.Windows.Controls.Toolkit.dll & System.Windows.Controls.dll System.Windows.Controls.Layout.Toolkit.dll
NumericUpDown System.Windows.Controls.Input.Toolkit.dll & System.Windows.Controls.Toolkit.dll & System.Windows.Controls.dll System.Windows.Controls.Input.Toolkit.dll & System.Windows.Controls.dll
TimeUpDown System.Windows.Controls.Input.Toolkit.dll & System.Windows.Controls.Toolkit.dll & System.Windows.Controls.dll System.Windows.Controls.Input.Toolkit.dll & System.Windows.Controls.dll
TimePicker System.Windows.Controls.Input.Toolkit.dll & System.Windows.Controls.Toolkit.dll & System.Windows.Controls.dll System.Windows.Controls.Input.Toolkit.dll & System.Windows.Controls.dll
DomainUpDown System.Windows.Controls.Input.Toolkit.dll & System.Windows.Controls.Toolkit.dll & System.Windows.Controls.dll System.Windows.Controls.Input.Toolkit.dll & System.Windows.Controls.dll
DataGrid System.Windows.Controls.Data.dll System.Windows.Controls.Data.dll & System.Windows.Controls.Data.Input.dll & System.ComponentModel.DataAnnotations.dll & System.Windows.Data_
Page N\A System.Windows.Controls.Navigation
Frame N\A System.Windows.Controls.Navigation
DataForm N\A System.ComponentModel.DataAnnotations & System.Windows.Controls & System.Windows.Controls.Data.DataForm.Toolkit & System.Windows.Controls.Data.Input &
ValidationSummary N\A System.Windows.Controls.Data.Input
DataPager N\A System.Windows.Controls.Data _& System.Windows.Data
Label N\A System.Windows.Controls.Data.Input
DescriptionViewer N\A System.Windows.Controls.Data.Input

Accordion

AutoCompleteBox (released as part of the SDK)

  • Breaking Change: The "DropDownToggle" template part of type ToggleButton has been removed.
  • Breaking Change: New template part: “Selector”, typeof(Selector).
  • Breaking Change: Renamed virtual method: TryGetSelectionAdapter(object o) is now GetSelectionAdapterPart().
  • Breaking Change: AutoCompleteSearchMode is now AutoCompleteFilterMode (enum).
  • Breaking Change: The SearchMode dependency property is now FilterMode.
  • Breaking Change: AutoCompleteSearchPredicate delegate is now AutoCompleteFilterPredicate.
  • Fixed: AutoCompleteBox: Change HasFocus() from private to public (or at least protected).

Charting

  • WPF is now an official platform for Charting!
  • Breaking Change: IRequireGlobalSeriesIndex's GlobalSeriesIndexChanged method takes a nullable int parameter.
  • Improved performance of internal data structures for many common scenarios.
  • Numerous bug fixes for animation inconsistencies between Silverlight and WPF.
  • Fixed handling of data objects with non-unique hash codes.
  • Corrected behavior of charts at very small sizes and during animations.
  • Proper RoutedEvent support for DataPointSeries.SelectionChangedEvent.
  • Better handling of non-double data by shared Series.
  • Addition of StrokeMiterLimit to the Polyline used by LineSeries.
  • Fixes for edge case scenarios when removing a Series.
  • Ability to set Series.Title with a Binding (on Silverlight 3 and WPF).
  • Automatic inheritance of the Foreground property by the Title control.
  • Visual improvements to the LegendItem DataPoint marker.
  • Significant BubbleSeries performance improvement.
  • Fixed: Removing a PieSeries from a Chart's Series collection causes a NullReferenceException
  • Fixed: Chart series title not binding

DockPanel

  • Breaking Change: Moved from Silverlight 3 Beta SDK to Silverlight 3 Toolkit July 2009.

DataForm Breaking Changes

  • Moved from Silverlight 3 Beta SDK to Silverlight 3 Toolkit July 2009.
  • DataFormFields have all been removed and DataForm.Fields collection has been removed. They have been replaced with the new DataField control, which is a control that wraps content with a label and DescriptionViewer.
  • Must now explicitly specify Mode=TwoWay on bindings in the DataField.
  • FieldEditEnding and FieldEditEnded have been removed.
  • GetFieldElement() has been removed.
  • ItemEditEnding, ItemEditEnded, CommitItemEdit() have been changed to EditEnding, EditEnded, and CommitEdit() respectively.
  • CanMoveToXXXXItem have been removed, as they can be derived from the collection given to the DataForm.
  • CanUserAdd/DeleteItems have been removed, as they are implied through CommandButtonsVisibility.
  • IsEditing and IsAddingItem have been removed, as they are implied through Mode.
  • FieldLabelPosition and FieldLabelStyle have become LabelPosition and LabelStyle.
  • WrapAfter and Orientation have been removed.
  • The type names DataFormFieldLabelPosition and DataFormDescriptionViewerPosition have been changed to DataFieldLabelPosition and DataFieldDescriptionViewerPosition.

DomainUpDown

Expander

  • Breaking Change: Moved from Silverlight 3 Beta SDK to Silverlight 3 Toolkit July 2009.

HeaderedContentControl

Navigation (released as part of the SDK)

  • New: Pages can be “cached” so they can be re-used on subsequent navigation to the same URI.

TabControl

TimePicker / TimeUpDown

TransitioningContentControl

  • Changed the template to have two ContentPresenters instead of ContentControls.
  • Fixed bug where switching between content would raise exception in certain scenarios.
  • Handles setting the Transition to a transition that is not yet there (if template hasn’t been loaded yet).
  • Fixed: System.ArgumentException while using TransitioningContentControl

TreeView (released as part of the SDK)

Themes

ValidationSummary (released as part of the SDK)

  • The control formally known as ErrorSummary is now ValidationSummary.

Viewbox

  • Breaking Change: Moved from Silverlight 3 Beta SDK to Silverlight 3 Toolkit July 2009.

WrapPanel

  • Breaking Change: Moved from Silverlight 3 Beta SDK to Silverlight 3 Toolkit July 2009.

Last edited Jul 10, 2009 at 6:23 AM by shawnoster, version 3

Comments

PTIncubus Sep 29, 2009 at 1:33 PM 
Solved...the WrapPanel works perfectly...

PTIncubus Sep 29, 2009 at 1:27 PM 
I'm having some problems using the wrappanel in SL3. I added the reference to my project but it says that the reference is missing...Can you help me with this??

jeffwilcox Jul 12, 2009 at 12:01 PM 
@wackyphill, please feel free to create a work item explaining your opening scenario. We took several fixes to AutoCompleteBox to allow more people to open it programatically, improving the experience for most folks. As a result, your specific scenario or previous workaround to enable this may no longer function the same.

wackyphill Jul 10, 2009 at 11:53 PM 
The AutoCompleteBox Seems to Have a Problem in SL3 RTW. You can't open its dropdown programatically anymore.

BillMilky54 Jul 10, 2009 at 4:33 PM 
This all well n good that bugs were fixed but we are still begging for some kind of printing facility like WFP or remote automation to MS office apps. This is got to be the first time in the development of computer software that some software company develops a software app without a facility for printing now wonder your stock is going down and youer competitors are gaining market share. Business needs file utilites and printing until then you just a has been in the web.