Monday, February 05, 2007 9:14 PM
by
wpfedevcon
New API for the February WPF/E CTP
If you haven't already heard, the February CTP of WPF/E has been released (go here for more information). There are a number of sources detailing the new features added with this release, but I thought it would be worth while to list out all the new API. The API are grouped by object. The new objects and members are listed first, then the new API on existing objects are listed.
New Objects
Downloader Control
(For more information on the Downloader control, see the
Using a Downloader Object topic in the SDK.)
KeyboardEventArgs
| API |
Notes |
| Ctrl Property |
Gets a value specifying whether the ctrl key was down when the event occurred. |
| Key Property |
Gets the keyboard key associated with the event. |
| PlatformCodeKey Property |
Gets a value representing the platform key associated with the event. |
| Shift Property |
Gets a value specifying whether the ctrl key was down when the event occurred. |
(For more information on keyboard events, see the
WPF/E Keyboard Support topic in the SDK.)
MouseEventArgs
| API |
Notes |
| Ctrl Property |
Gets a value specifying whether the ctrl key was down when the event occurred. |
| Shift Property |
Gets a value specifying whether the Shift key was down when the event occurred. |
| X Property |
Gets the x-coordinates of the mouse pointer position relative to the root canvas. |
| Y Property |
Gets the y-coordinates of the mouse pointer position relative to the root canvas. |
New Enumeration Objects
| Key |
Specifies the portable key code that is not operating system-specific. |
| MediaState |
Defines the potential states of a MediaElement. |
| MouseCursor |
Specifies the image used to represent the mouse pointer. |
New API on existing objects
WPF/E Control
(For more information on full screen, see the
WPF/E Full Screen Support topic in the SDK.)
Canvas (Note, these events are only available on the root canvas.)
UIElement
MediaElement
| API |
Notes |
| CurrentState Property |
Gets the status of the MediaElement. |
| AutoPlay Property |
Gets or sets a value indicating whether media will automatically begin playback when the Source property is set. |
| SetSource Method |
(NOTE: SetSource is also exposed on Image and ImageBrush) Sets the source value of an object with downloaded content. |
| CurrentStateChanged Method |
Occurs when the value of the CurrentState property changes. |
(For more information on using audio and video in WPF/E, see the
Audio and Video Overview in the SDK.)
TextBlock
| API |
Notes |
| ActualHeight |
Gets the rendered height of the TextBlock. |
| ActualWidth |
Gets the rendered width of the TextBlock. |
Collection Methods:Add, Clear, GetItem, Insert, Remove, and RemoveAt have been added to the following collection types: PathFigureCollection, GradientStopCollection, ColorKeyFrameCollection, DoubleKeyFrameCollection, PointKeyFrameCollection, PathSegmentCollection, TriggerCollection, TriggerActionCollection.
--Brian