Beta 9.1 of C#/XAML for HTML5 released

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

Beta 9.1 of C#/XAML for HTML5 released

Postby JS-Support @Userware » Sat Aug 27, 2016 9:38 am

Dear CSHTML5 users and forum members,

We are pleased to inform you that the Beta 9.1 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.0 include:

  • Support for ChildWindow! (fixed size recommended)
  • Support for Thumb control
  • Support for ScrollBar control
  • Partial support for Popup (HorizontalOffset and VerticalOffset will be implemented in the next update)
  • 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.



More bug fixes and features are coming soon.

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_beta9_1.zip
(21.85 MiB) Downloaded 410 times

Sesztak
Posts: 172
Joined: Fri Jun 24, 2016 2:19 am

Re: New Beta 9.1 released! [Download]

Postby Sesztak » Mon Aug 29, 2016 7:13 am

Great new !
Thanks for it, we will check it soon.

Best Regards,
Péter

Sesztak
Posts: 172
Joined: Fri Jun 24, 2016 2:19 am

Re: New Beta 9.1 released! [Download]

Postby Sesztak » Tue Aug 30, 2016 10:51 am

Dear JS-Support,

for your kind information: we do not know it is related to 9.1 beta or Windows 10 anniversary update (unfortunately, we installed both on same day, Windows 10 anniversary update first and CSHTML5 9.1 beta after):

( https://support.microsoft.com/en-us/kb/3176934 )

CSHTML project became instabile: the Visual Studio 2015 Update 3 will quit unexpectedly when you hit F5 (run project).
(the bug is not allways occur: sometimes works like a charm, and sometimes VisualStudio quit unexpectedly).

Exception behavior(s):
-unexpected quit sometimes occur at WCF service reference update,
-unexpected quit sometimes occur at run (F5) the project,
-we never see unexpected VS quit at build or rebuild,
-after restart the Visual Studio after force quit / killing DotNetForHtml5.EmulatorWithoutJavascript from Taskmanager: to run project (generating files for output directory) start working again.

Would you be so kind to double check the situation at your side ?

Thanks in advance,
Best Regards,
Péter

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

Re: New Beta 9.1 released! [Download]

Postby JS-Support @Userware » Tue Aug 30, 2016 12:31 pm

Thanks Péter,

Ok, we are going to install the Win 10 Anniversary update to see if we can reproduce the issue.

Thanks.
Regards,
JS-Support

Sesztak
Posts: 172
Joined: Fri Jun 24, 2016 2:19 am

Re: New Beta 9.1 released! [Download]

Postby Sesztak » Tue Aug 30, 2016 11:22 pm

thanks !
should I recommend to check old .net 4.6.2 problem as well ?
br,
Péter

zemorango
Posts: 36
Joined: Tue Feb 02, 2016 6:30 am

Re: New Beta 9.1 released! [Download]

Postby zemorango » Wed Aug 31, 2016 3:25 am

Hi, JS-support

Great work and great news, I've been waiting for the childwindows from some time.
I will try it today, and finally begin to convert my silverlight projects. :) huge ones :)
I will give you some feedback :D

zemorango
Posts: 36
Joined: Tue Feb 02, 2016 6:30 am

Re: New Beta 9.1 released! [Download]

Postby zemorango » Wed Aug 31, 2016 6:26 am

I'm trying to use childwindows, do you have any examples? :(

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

Re: New Beta 9.1 released! [Download]

Postby JS-Support @Userware » Wed Aug 31, 2016 7:56 am

zemorango wrote:I'm trying to use childwindows, do you have any examples? :(


Sure.

Here is how to create a new ChildWindow:

(note: an item template will soon be available that will make it even easier)

1. Create a new UserControl and give it a name (let's call it "ChildWindow1"). To create a new UserControl, right-click on your project in the Solution Explorer, and click Add => New Item => C# XAML for HTML5 => User Control.

2. Edit both the XAML and C# of the UserControl, and replace every instance of the word "UserControl" with "ChildWindow". For example, your XAML should begin with <ChildWindow... and end with </ChildWindow>, and your C# class should inherit from ChildWindow.

3. To make the ChildWindow appear, use the following code:

Code: Select all

var childWindow1 = new ChildWindow1();
childWindow1.Show();



Optional stuff:

  • If you want, you can give a title to your ChildWindow by setting it in XAML, like so: <ChildWindow Title="My Child Window" ...
  • It is recommended that you give a fixed size (in pixels) to your ChildWindow, by setting it in XAML, like so: <ChildWindow Width="300"...
  • If you want, you can register the "Closed" event to retrieve the dialog result. Here is how:

    Code: Select all

    childWindow1.Closed += new EventHandler(ChildWindow1_Closed);

    ...
    void ChildWindow1_Closed(object sender, EventArgs e)
    {
        var childWindow1 = (ChildWindow1)sender;
        MessageBox.Show("The result is: " + childWindow1.DialogResult.ToString());
    }

  • You can set the result from within the ChildWindow using the following code:

    Code: Select all

    this.DialogResult = true; // This will automatically close the ChildWindow.

    If you want to pass a value other than boolean, you can add a property to your ChildWindow implementation and set it to the desired value.

  • If you want, in your ChildWindow code, you can register the "Closing" event to check for data validity, and abort the closing operation by setting e.Cancel = true;

Regards,
JS-Support

zemorango
Posts: 36
Joined: Tue Feb 02, 2016 6:30 am

Re: New Beta 9.1 released! [Download]

Postby zemorango » Thu Sep 01, 2016 12:37 am

Thank you JS-suport,
gone to try this ASAP :) :mrgreen:

Regards , Jose

zemorango
Posts: 36
Joined: Tue Feb 02, 2016 6:30 am

Re: New Beta 9.1 released! [Download]

Postby zemorango » Thu Sep 01, 2016 1:08 am

Hi guys :)

I've just try it, everything just work fine so far :lol: , the only thing I'm not abble to do is to move the childwindow in run time.

Regards, Jose

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

Re: New Beta 9.1 released! [Download]

Postby JS-Support @Userware » Thu Sep 01, 2016 4:07 am

Thank you Jose! Glad it works fine.

Yes, ChildWindow cannot be moved around in the Beta 9.1.

Regards,
JS-Support

Sesztak
Posts: 172
Joined: Fri Jun 24, 2016 2:19 am

Re: New Beta 9.1 released! [Download]

Postby Sesztak » Fri Sep 02, 2016 7:46 am

What is the "Thumb control" ?

br,
Péter

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

Re: New Beta 9.1 released! [Download]

Postby JS-Support @Userware » Fri Sep 02, 2016 10:13 am

Sesztak wrote:What is the "Thumb control" ?

"Available in all MS XAML platoforms (WPF, Silverlight, UWP...), the Thumb control defines methods, properties and events for controls that can be dragged by the user, using a mouse or similar pointing device. The dragging is usually done to resize or move controls. Thumbs are also used in other XAML controls such as scrollbars and sliders."
"The purpose of the Thumb class is to provide functionality related to dragging. There are three such events: DragStarted, DragCompleted, and DragDelta.
As the names might suggest, DragStarted is raised when the user starts dragging a Thumb-based control. DragCompleted is raised when the user stops dragging and releases the mouse button. DragDelta is raised during the drag operation.
They provide event arguments (such as a DragDeltaEventArgs object) that include properties that describe the drag operation.
Also two key properties are used: HorizontalOffset and VerticalOffset."

Here is a simple tutorial that demonstrates the power of the Thumb control:
http://www.java2s.com/Tutorial/CSharp/0470__Windows-Presentation-Foundation/UseaThumbtoresizeaCanvascontrolbyrespondingtotheDragDeltaevent.htm

Regards,
JS-Support

Sesztak
Posts: 172
Joined: Fri Jun 24, 2016 2:19 am

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

Postby Sesztak » Mon Sep 05, 2016 7:20 am

Thank you !


Return to “Pre-Releases, Downloads and Announcements”

Who is online

Users browsing this forum: No registered users and 29 guests

 

 

cron