Beta 12.7 of C#/XAML for HTML5 released

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

Beta 12.7 of C#/XAML for HTML5 released

Postby JS-Support @Userware » Wed Nov 29, 2017 9:31 am

Dear CSHTML5 users,

We are pleased to inform you that the Beta 12.7 of C#/XAML for HTML5 - the extension for Visual Studio that lets you build cross-platform HTML5 apps in standard C# and XAML - is available for download!


DOWNLOAD:
CSharpXamlForHtml5_v1_0_public_beta12_7.zip
(25.61 MiB) Downloaded 722 times

Learn More about C#/XAML for HTML5.


Here is what's new (since Beta 12.6):
  • Fixed the "ArrayList" class
  • Improved the "NumericUpDown" control: it is now editable, it only accepts numeric values, and you can press and hold on the "+" and "-" buttons to increase/decrease the value
  • Fixed the "RadioButton.IsChecked" property
  • The ComboBox now correctly inherits the FontSize
  • Fixed the JavaScript error: "Cannot read property 'createElement' of null"
  • Fixed the CheckBox control under IE
  • Fixed the RepeatButton control
  • Breaking Change: changed the namespace of the MessageBox class so that it is now located in the same namespace as the other UI classes. This is more aligned with the .NET Framework, and it also makes the MessageBox class immediately accessible when creating a new project.


Note: with the new WCF stack recently introduced, you can now remove the [XmlSerializerFormat] attribute that is located in the service class (on the server-side) (and don't forget to "update the service reference" in the CSHTML5 app) and benefit from faster application loading, faster WCF, smaller WCF-related output code, and improved compatibility.[/list]

Here is a small sample WCF project to test the new WCF stack:
TestCshtml5WCF_for_CSHTML5_Beta12_2.zip
(65.96 KiB) Downloaded 641 times



We are also working on many other features and we will release them as soon as they are ready.


You may also be interested to read:


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

sebas
Posts: 21
Joined: Fri Oct 27, 2017 7:03 am

Re: New Beta 12.7 released! [Download] (bug fixes)

Postby sebas » Thu Nov 30, 2017 12:12 am

after 12.6 my project can be compiled and works in emulator. But i have many errors in browser like "Cast Object to IEnumerable". Now i try find those cases, but its very difficalt because code works in emulator correctly.

Now my stable version is 12.5

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

Re: New Beta 12.7 released! [Download] (bug fixes)

Postby JS-Support @Userware » Thu Nov 30, 2017 12:53 am

sebas wrote:Now i try find those cases, but its very difficalt because code works in emulator correctly.


Thank you sebas.

If you do manage to find those cases, it will be really great.

You can see the StackTrace when the exception happens by doing the following in the Chrome Browser:
1. Press F12 to see the Developer Tools
2. Check the option "Pause on Caught exceptions" (see the second screenshot on the page: https://codeutopia.net/blog/2015/11/01/how-to-fix-javascript-errors-more-easily-with-chromes-debugger/ )
3. Press F5 to reload your app.
4. The debugger should be paused on the exception. You can see the StackTrace on the right. If you are paused on an exception that has nothing to do with the one that you are debugging, press F8 to pause on the next exception.

Thanks.
Regards,
JS-Support

sebas
Posts: 21
Joined: Fri Oct 27, 2017 7:03 am

Re: New Beta 12.7 released! [Download] (bug fixes)

Postby sebas » Fri Dec 01, 2017 2:34 am

YEss!!! I'd found it))) ufff

Error happens in case casting Array -> IEnamerable,,, BUT!!! If array was been created with JsonCOnvert.

using CSHTML5.Extensions.Json;
using System;
using System.Collections;
using System.Collections.Generic;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;

namespace Application1
{
public partial class MainPage : Page
{
class myclass
{
public myclass2[] Arr { get; set; }
}

class myclass2
{
public String Name { get; set; }
}
public MainPage()
{
this.InitializeComponent();
Exec();
}

async void Exec()
{
// Enter construction logic here...

var c = new myclass();
c.Arr = (new List<myclass2>() { new myclass2() { Name = "Asd" }, new myclass2() { Name = "Asd2" } }).ToArray();

String s = JsonConvert.SerializeObject(c);
var c2 = await JsonConvert.DeserializeObject<myclass>(s);
try
{
//this call ok
Do(c.Arr);

//error here !!!!!!!!!!!!!!!!!!!!!!!!!!!
Do(c2.Arr);
}
catch (Exception ex)
{

MessageBox.Show(ex.Message);
}
}

void Do(IEnumerable items)
{
MessageBox.Show(items.ToString());
}
}
}

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

Re: New Beta 12.7 released! [Download] (bug fixes)

Postby JS-Support @Userware » Fri Dec 01, 2017 3:13 am

Thank you sebas.

We are going to investigate and fix it right away.

Regards,
JS-Support

TaterJuice
Posts: 147
Joined: Thu Mar 16, 2017 5:40 am
Contact:

Re: New Beta 12.7 released! [Download] (bug fixes)

Postby TaterJuice » Fri Dec 01, 2017 7:41 am

Great find, @sebas! Thank you! I'm sure the community appreciates your efforts.


Return to “Pre-Releases, Downloads and Announcements”

Who is online

Users browsing this forum: No registered users and 4 guests

 

 

cron