Page 1 of 1

Beta 10.3 of C#/XAML for HTML5 released

Posted: Sun Nov 06, 2016 7:44 am
by JS-Support @Userware
Dear CSHTML5 users,

We are pleased to inform you that the Beta 10.3 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.2:

  • New "HtmlCanvas" control for high-performance graphics!
    Please read the corresponding documentation at: http://cshtml5.com/links/how-to-use-the-html5-canvas.aspx
    It is located in the namespace "CSHTML5.Native.Html.Controls".
  • Added support for the .NET Framework version 4.6
  • Fixed "Array.Empty" compilation error
  • Ability to use the {Binding} markup element with fields in addition to properties
  • In XAML, ability to set the values of fields in addition to the value of properties
  • Improved the reliability of the "Control.Focus()" method
  • Fixed the regression introduced in Beta 10.2 that caused DataGrid.ItemsSource to raise an exception.
  • Fixed an issue that affected the arguments of Interop.ExecuteJavaScript()

You may also be interested to read:
- What's new in Beta 10.2
- What's new in Beta 10.1


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.3 released! [Download]

Posted: Mon Nov 07, 2016 1:01 am
by ATA
Hello Team,

Thanks for the new release.

I had a query if ValidatesOnExceptions and NotifyOnValidationError is supported in this version for the textbox control.

Example :
<TextBox Canvas.Left="20" Canvas.Top="80" Height="23" HorizontalAlignment="Left" Margin="3" x:Name="txtAge" Text="{Binding Age, Mode=TwoWay , ValidatesOnExceptions=true, NotifyOnValidationError=true }" VerticalAlignment="Center" Width="120" />

To check if the value entered in the textbox is proper or not.

I tried but could not use the above mentioned property.

Thanks,
ATA

Re: New Beta 10.3 released! [Download]

Posted: Mon Nov 07, 2016 1:18 am
by JS-Support @Userware
ATA wrote:I had a query if ValidatesOnExceptions and NotifyOnValidationError is supported in this version for the textbox control.


Not yet. It is currently in the roadmap for 2017. To have it implemented earlier:
- Please be sure to vote for it on:
https://cshtml5.uservoice.com/forums/274799-c-xaml-for-html5-feature-requests/suggestions/9204063-add-support-for-system-componentmodel-dataannotati
- You can fund the development of this feature to have it implemented in less than 3 weeks. If you are interested, please contact us at support@cshtml5.com - Several companies have been funding new features in the last few months.

Thanks a lot.
Regards,
JS-Support

Re: New Beta 10.3 released! [Download]

Posted: Mon Nov 07, 2016 5:56 am
by Sesztak
Dear JS-Support,

Great news and thanks !,
I confirm that the followings tried and fixed (with our test solution):

-Added support for the .NET Framework version 4.6 (tried: .NET 4.6.2)
-Fixed "Array.Empty" compilation error: no such an error message with v10.3 beta,
-DataGrid.ItemsSource: working again.

Best Regards,
Péter

Re: New Beta 10.3 released! [Download]

Posted: Tue Nov 08, 2016 1:10 am
by JS-Support @Userware
Thank you Péter.

Re: New Beta 10.3 released! [Download]

Posted: Wed Nov 09, 2016 12:34 am
by ATA
Thank you team for all the fixes

Re: New Beta 10.3 released! [Download]

Posted: Wed Nov 16, 2016 8:56 am
by footnick
The new HTMLCanvas feature looks interested, but it would need a PathElement with matrix transforms to be useful for us. Is that planned?

Nick

Re: New Beta 10.3 released! [Download]

Posted: Wed Nov 16, 2016 9:31 am
by JS-Support @Userware
footnick wrote:The new HTMLCanvas feature looks interested, but it would need a PathElement with matrix transforms to be useful for us. Is that planned?


Thanks. Yes. Can you please tell us exactly how the shape(s) in the PathElement should be described? For best performance, we should use a description that is close to how the html <canvas> element renders elements (link to html canvas documentation). The way the XAML <Path> elements are described (using the "Data" property or the <Geometry> tags) does not have the level of performance that we want to achieve with the native HtmlCanvas control.

Re: Beta 10.3 of C#/XAML for HTML5 released

Posted: Wed Nov 30, 2016 9:43 am
by footnick
JS-Support wrote:Thanks. Yes. Can you please tell us exactly how the shape(s) in the PathElement should be described? For best performance, we should use a description that is close to how the html <canvas> element renders elements (link to html canvas documentation). The way the XAML <Path> elements are described (using the "Data" property or the <Geometry> tags) does not have the level of performance that we want to achieve with the native HtmlCanvas control.

Sorry - I missed your question.

We have our own high level geometry types and would implement a suitable bridge. At the simplest level we can facet curves and output polygons for drawing. Perhaps you could base the geometry on the .NET StreamGeometryContext class which looks similar to the HTML Path ? It would also be good to support the XAML geometry markup fomat directly.

Thanks

Nick