We are pleased to inform you that the Beta 9.2 of CSHTML5 is available for download!
You will find it in the "Attachments" section after this message.
New Features and bug fixes since Beta 9.1 include:
- New "Picker" feature in the XAML Visual Tree Inspector! Now you can select the item that you wish to inspect in the Simulator. Here is a screenshot:
- Support for Negative Margins
- Support for the SizeChanged event
- Support for MinWidth, MinHeight, MaxWidth, and MaxHeight
- Support for the Popup control, including HorizontalOffset and VerticalOffset
- Support for VisualTreeHelper.FindElementsInHostCoordinates to know what elements are present at a given (X,Y) position (note: it currently only returns the top-most element at that position)
- Support for non-html ComboBox, that is, a ComboBox that can contain things other than Strings, such as UIElements or DataTemplates. To use such a ComboBox, just set the "UseNativeComboBox" property to false, like this: <ComboBox UseNativeComboBox="False" />
- Support for "VisualTreeHelper.GetChildrenCount()" and "VisualTreeHelper.GetChild()"
- Support for Linq methods Enumerable.Single and Enumerable.SingleOrDefault
- New options in the "Advanced Tools" menu of the Simulator (in the bottom-left corner), including the ability to view the current HTML and save it to file, as well as to view the html/js compilation log.
- Fixed value coercion for dependency properties
- Fixed an issue related to the alignment and positioning of controls in a Canvas
- Fixed an issue where (int)(-1) resulted in 2147483647
If you didn't read about the previous Beta 9.1, here is the list of features and bug fixes that were introduced (since Beta 9.0):
- Support for ChildWindow! (fixed size recommended)
- Support for Thumb control
- Support for ScrollBar control
- Much improved support for Linq:
newly supported methods include: SingleOrDefault, LastOrDefault, GroupBy, Min, Max, Sum, Union, ThenBy, Take, Skip, Except, Distinct, ToDictionary
- Bug fix: Fixed the "XmlReader is stuck" error during serialization and WCF calls
- Support for FrameworkElement.Parent
- Support for value coercion in dependency properties (used for example to ensure that the 3 properties "Minimum", "Maximum", and "Value" of a ScrollBar stay in order and within their allowed range)
- Support for DateTime.TimeOfDay
- Support for ActualWidth and ActualHeight in Column and Row Definitions
- Support for Thickness using spaces rather than commas in XAML
- New "Advanced Tools" menu in the Simulator that reintroduces some pre-Beta 9 features such as the ability to execute custom JS code, to view the history of the JS code executed by the Simulator, and to count the number of DOM elements for performance optimization.
- Bug fix: Fixed all the outstanding issues related to the ListBox control and the HTML-based native ComboBox control (except the issue related to the TabControl, which will be fixed soon)
- Bug fix: Fixed an issue that caused the Path and other shape controls to randomly disappear in the Simulator
- Bug fix: Binding between a string and a value type (such as double, int, bool, etc.) no longer throws an exception (conversion is automatic, like in MS XAML)
- Bug fix: Control.GetTemplatedChild() method no longer throws an exception if the name is not found
- Bug fix: Dragging an image no longer causes the browser to initiate a drag behavior. This enables the C#/XAML drag-and-drop features (such as the Thumb control or the PointerMoved event) to function properly
- Bug fix: passing "null" instead of a Metadata in the declaration of a DependencyProperty no longer throws an exception.
Notes about installation:
- Before installing this update, it is recommended that you close all the open instances of Visual Studio.
- If for some reason you need to revert to the previous Beta, simply uninstall this one (from the Control Panel) and reinstall the previous Beta.
We hope you will enjoy this build!
If you find any issues, please post them on the forums or send an email to email@example.com