Page 1 of 1

Beta 10.1 of C#/XAML for HTML5 released

Posted: Sun Oct 09, 2016 6:10 am
by JS-Support @Userware
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

Re: New Beta 10.1 released! [Download]

Posted: Mon Oct 10, 2016 3:39 am
by randco
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

Re: New Beta 10.1 released! [Download]

Posted: Mon Oct 10, 2016 4:19 am
by JS-Support @Userware
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

Re: New Beta 10.1 released! [Download]

Posted: Tue Oct 11, 2016 9:55 am
by randco
The code creates a grid of Tiles within the Grid "Kacheln"

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


With Version 10.0 it looks like this

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


Compiling the same code with 10.1, each tile is in the top left corner

Re: New Beta 10.1 released! [Download]

Posted: Wed Oct 12, 2016 4:37 am
by JS-Support @Userware
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

Re: New Beta 10.1 released! [Download]

Posted: Wed Oct 12, 2016 11:14 am
by randco
Thanks a lot for your Workaround advice!