Beta 10.1 of C#/XAML for HTML5 released

JS-Support
Site Admin
Posts: 684
Joined: Tue Apr 08, 2014 3:42 pm

Beta 10.1 of C#/XAML for HTML5 released

Postby JS-Support » Sun Oct 09, 2016 6:10 am

Dear CSHTML5 users,

We are pleased to inform you that the Beta 10.1 of CSHTML5 is available for download!


You will find it in the "Attachments" section after this message.

Here is what's new since Beta 10.0:
  • Improved runtime performance (8% faster HTML rendering, 15% fewer DOM elements in the tree...)
  • Possibility to implement by yourself the Mscorlib methods that are not yet implemented. You can read the guide at: How to implement mscorlib methods
  • The Simulator now displays the number of elements at the bottom of the Visual Tree Inspector
  • Fixed an issue that prevented a Style from inheriting ("BasedOn") from another style with the same name
  • Fixed CoreDispatcher.BeginInvoke
  • Fixed an issue that caused some <Path/> elements to not render at all
  • Fixed an issue that caused some <Path/> elements to have the wrong Width/Height under FireFox
  • Fixed an issue that caused a "Key already exists" Exception when removing a DataGrid from the visual tree and putting it back (for example via a TabControl)
  • Fixed an issue that prevented ColorAnimation from finishing properly
  • Fixed an issue where setting TabControl.IsSelected to true did not update the header appearance
KNOWN REGRESSIONS:
  • For accurate margins, you need to set the 'Margin' property BEFORE adding an element to the Visual Tree rather than after.


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 support@cshtml5.com

Thank you.
Regards,
JS-Support
Attachments
CSharpXamlForHtml5_v1_0_public_beta10_1.zip
(21.89 MiB) Downloaded 68 times

randco
Posts: 12
Joined: Tue Dec 15, 2015 12:51 pm

Re: New Beta 10.1 released! [Download]

Postby randco » Mon Oct 10, 2016 3:39 am

It seems like the Margin-Property for Grids is useless in the newest version. Although it shows the margin values in the visual three, each element in the Grid is set to the very top-left corner

JS-Support
Site Admin
Posts: 684
Joined: Tue Apr 08, 2014 3:42 pm

Re: New Beta 10.1 released! [Download]

Postby JS-Support » Mon Oct 10, 2016 4:19 am

randco wrote:It seems like the Margin-Property for Grids is useless in the newest version. Although it shows the margin values in the visual three, each element in the Grid is set to the very top-left corner

Hi,

We are attempting to reproduce the issue. The following test appears to work fine:

Code: Select all

<Grid Width="200" Height="200" Background="Yellow" HorizontalAlignment="Left" VerticalAlignment="Top">
    <Rectangle Fill="Red" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="30,20,0,0" Width="30" Height="30"/>
</Grid>

Can you please post some code to reproduce the issue?

Thanks a lot.
Regards,
JS-Support

randco
Posts: 12
Joined: Tue Dec 15, 2015 12:51 pm

Re: New Beta 10.1 released! [Download]

Postby randco » Tue Oct 11, 2016 9:55 am

The code creates a grid of Tiles within the Grid "Kacheln"

k2.png
k2.png (118.63 KiB) Viewed 1014 times


With Version 10.0 it looks like this

k3.png
k3.png (1023.71 KiB) Viewed 1014 times


Compiling the same code with 10.1, each tile is in the top left corner
Attachments
k4.png
k4.png (181.1 KiB) Viewed 1014 times

JS-Support
Site Admin
Posts: 684
Joined: Tue Apr 08, 2014 3:42 pm

Re: New Beta 10.1 released! [Download]

Postby JS-Support » Wed Oct 12, 2016 4:37 am

Dear randco,

Thanks for the additional information. It did indeed help pinpoint the cause of the issue. I have updated the original post with a now-documented regression:
"For accurate margins, you need to set the 'Margin' property BEFORE adding an element to the Visual Tree rather than after."

You can workaround the issue by placing the line "temp_kachel.Margin = ..." BEFORE the line "kecheln.Children.Add(...)".

Thanks.

Regards,
JS-Support

randco
Posts: 12
Joined: Tue Dec 15, 2015 12:51 pm

Re: New Beta 10.1 released! [Download]

Postby randco » Wed Oct 12, 2016 11:14 am

Thanks a lot for your Workaround advice!


Return to “Pre-Releases, Downloads and Announcements”

Who is online

Users browsing this forum: No registered users and 2 guests