Silverlight-2-Erweiterungen gegenüber Silverlight 1 24.10.2008 Inhalt 1. neue Objekte in Silverlight 2 ................................. 9 1.1. BitmapImage ................................................... 9 1.2. Border ........................................................ 10 1.3. ColumnDefinition .............................................. 14 1.4. CornerRadius .................................................. 15 1.5. DeepZoomImageTileSource ....................................... 16 1.6. DiscreteObjectKeyFrame ........................................ 17 1.7. Grid .......................................................... 18 1.8. GridLength .................................................... 22 1.9. MouseButtonEventArgs .......................................... 23 1.10. MultiScaleImage ............................................... 24 1.11. MultiScaleSubImage ............................................ 29 1.13. ObjectAnimationUsingKeyFrames ................................. 30 1.14. ObjectKeyFrameCollection ...................................... 31 1.15. PasswordBox ................................................... 33 1.16. Popup ......................................................... 38 1.17. RowDefinition ................................................. 42 1.18. Setter ........................................................ 43 1.19. StackPanel .................................................... 44 1.20. Style (Object) ................................................ 48 1.21. TextBox ....................................................... 50 1.22. Thickness ..................................................... 55 2. neue Methoden in Silverlight 2 ................................ 57 2.1. Focus ......................................................... 57 2.2. GetIthSubImage ................................................ 57 2.3. Select ........................................................ 58 2.4. SelectAll ..................................................... 59 3. neue Properties in Silverlight 2 .............................. 61 3.1. AcceptsReturn ................................................. 61 3.2. AspectRatio ................................................... 62 3.3. BorderBrush ................................................... 62 3.4. BorderThickness ............................................... 64 3.5. ColumnDefinitions ............................................. 65 3.6. DroppedFramesPerSecond ........................................ 66 3.7. Grid.Column .................................................. 66 3.8. Grid.ColumnSpan ............................................... 67 3.9. Grid.Row ...................................................... 68 3.10. Grid.RowSpan .................................................. 69 3.11. GridUnitType .................................................. 70 3.12. Handled ....................................................... 71 3.13. Height (RowDefinition) ........................................ 72 3.14. HorizontalAlignment ........................................... 73 3.15. HorizontalOffset .............................................. 75 3.16. IsEnabled ..................................................... 76 3.17. IsOpen ........................................................ 77 3.18. IsReadOnly .................................................... 77 3.19. IsTabStop ..................................................... 78 3.20. KeyFrames (ObjectAnimationUsingKeyFrames) ..................... 79 3.21. Language (UIElement) .......................................... 80 3.22. LineStackingStrategy .......................................... 82 3.23. Margin ........................................................ 83 3.24. MaxHeight ..................................................... 86 3.25. MaxLength ..................................................... 87 3.26. MaxWidth ...................................................... 88 3.27. MinHeight ..................................................... 90 3.28. MinWidth ...................................................... 92 3.29. Opacity (MultiScaleSubImage) .................................. 94 3.30. Orientation ................................................... 95 3.31. Padding ....................................................... 96 3.32. Password ...................................................... 97 3.33. PasswordChar .................................................. 98 3.34. RenderedFramesPerSecond ....................................... 99 3.35. SelectedText .................................................. 99 3.36. SelectionBackground ........................................... 100 3.37. SelectionForeground ........................................... 101 3.38. SelectionLength ............................................... 102 3.39. SelectionStart ................................................ 103 3.40. Setters ....................................................... 104 3.41. ShowGridLines ................................................. 105 3.42. Source (MultiScaleImage) ...................................... 106 3.43. Style (UIElement) ............................................. 107 3.44. TabIndex ...................................................... 108 3.45. TabNavigation ................................................. 109 3.46. Text (TextBox) ................................................ 110 3.47. TextAlignment ................................................. 111 3.48. UriSource (BitmapImage) ....................................... 112 3.49. UriSource (DeepZoomImageTileSource) ........................... 113 3.50. UseLayoutRounding ............................................. 114 3.51. UseSprings .................................................... 116 3.52. Value (DiscreteObjectKeyFrame) ................................ 116 3.53. Value (GridLength) ............................................ 118 3.54. Value (Setter) ................................................ 118 3.55. VerticalAlignment ............................................. 120 3.56. VerticalOffset ................................................ 121 3.57. ViewportOrigin ................................................ 122 3.58. ViewportWidth ................................................. 123 3.59. Width (ColumnDefinition) ...................................... 124 3.60. ZIndex (MultiScaleSubImage) ................................... 125 4. neue Events in Silverlight 2 .................................. 127 4.1. Closed ........................................................ 127 4.2. ImageOpenFailed ............................................... 127 4.3. ImageOpenSucceeded ............................................ 128 4.4. MotionFinished ................................................ 129 4.5. Opened ........................................................ 130 4.6. PasswordChanged ............................................... 131 4.7. SelectionChanged .............................................. 131 4.8. TextChanged ................................................... 132 4.9. ViewportChanged ............................................... 133 5. neue Enumerations in Silverlight 2 ............................ 135 5.1. HorizontalAlignment Enumeration ............................... 135 5.2. KeyboardNavigationMode ........................................ 135 5.3. TextAlignment Enumeration ..................................... 136 5.4. VerticalAlignment Enumeration ................................. 137 6. Silverlight.js Referenz ....................................... 139 6.1. createObject .................................................. 140 6.2. createObjectEx ................................................ 142 6.3. default_error_handler ......................................... 143 6.4. getSilverlight ................................................ 143 6.5. isBrowserRestartRequired ...................................... 144 6.6. isInstalled ................................................... 145 6.7. onGetSilverlight .............................................. 146 6.8. onSilverlightInstalled ........................................ 146 6.9. WaitForInstallCompletion ...................................... 147 7. Silverlight Error-Messages .................................... 149 7.1. Script Errors in the DOM ...................................... 149 7.2. Native Code Basis of the Silverlight Plug-in .................. 149 7.3. Errors from Scripts, Tools, or Dialogs ........................ 150 7.4. Silverlight Plug-in Error Messages ............................ 150 7.5. Warning: Web services at '' might not be accessible due to cross-domain restrictions 157 7.6. Warning: Request for cross-domain policy at '' timed out 158 7.7. Warning: Could not locate cross-domain policy at '' 158 8. Silverlight Plug-in Object Reference .......................... 161 8.1. Property Values of the HTML Object Element .................... 161 8.2. ActualHeight (Silverlight Plug-in Object) ..................... 163 8.3. ActualWidth (Silverlight Plug-in Object) ...................... 165 8.4. AllowHtmlPopupWindow (Silverlight Plug-in Object) ............. 167 8.5. AutoUpgrade (Silverlight Plug-in Object) ...................... 168 8.6. Background (Silverlight Plug-in Object) ....................... 169 8.7. EnableFramerateCounter (Silverlight Plug-in Object) ........... 171 8.8. EnableHtmlAccess (Silverlight Plug-in Object) ................. 173 8.9. EnableRedrawRegions (Silverlight Plug-in Object) .............. 174 8.10. FullScreen (Silverlight Plug-in Object) ....................... 175 8.11. InitParams (Silverlight Plug-in Object) ....................... 177 8.12. IsLoaded (Silverlight Plug-in Object) ......................... 179 8.13. MaxFrameRate (Silverlight Plug-in Object) ..................... 180 8.14. MinRuntimeVersion (Silverlight Plug-in Object) ................ 181 8.15. OnError (Silverlight Plug-in Object) .......................... 182 8.16. OnFullScreenChanged (Silverlight Plug-in Object) .............. 184 8.17. OnLoad (Silverlight Plug-in Object) ........................... 186 8.18. OnResize (Silverlight Plug-in Object) ......................... 187 8.19. OnSourceDownloadComplete (Silverlight Plug-in Object) ......... 189 8.20. OnSourceDownloadProgressChanged (Silverlight Plug-in Object) .. 190 8.21. Source (Silverlight Plug-in Object) ........................... 192 8.22. SplashScreenSource (Silverlight Plug-in Object) ............... 194 8.23. Windowless (Silverlight Plug-in Object) ....................... 195 Silverlight-2-Erweiterungen gegenüber Silverlight 1 24.10.2008