15.2. New Controls

WPF 4.0 now contains the DataGrid, Calendar, and DatePicker controls that were previously available as part of the WPF toolkit. Microsoft says that these controls are nearly 100 percent compatible with their Silverlight relations. Figure 15-16 shows the new Calendar and DatePicker controls; Figure 15-17 shows the DataGrid control in action.

Figure 15.16. Calendarand DatePicker controls

Figure 15.17. DataGrid control

The easiest way to create these controls is to drag them from the Toolbox or add them manually with the following XAML:

<Calendar></Calendar>
<DatePicker/>
<DataGrid></DataGrid>

15.2.1. Ribbon Control and Bag O'Tricks

Microsoft says that shortly after the release of VS2010 it will introduce a new WPF Ribbon control. The Ribbon control could work particularly well in conjunction with the new touchscreen APIs. A CTP of the Ribbon control is available at http://wpf.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=29117.

Microsoft will also be making an out-of-band release that will contain the following controls under the collection name "Bag O'Tricks" (sorry, no information is available at time of writing, although judging by the control names, you can have a pretty good guess at what they do):

  • AnimatingTilePanel

  • ColorPicker

  • InfoTextBox

  • ListPager

  • NumericUpDown

  • Reveal

  • TransitionsPresenter

  • TreeMapPanel


..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.133.118.221