Page 1 of 1

v1.2 Beta 1 released! (Focus states, WCF authentication, async WCF...)

Posted: Wed Jun 27, 2018 7:46 am
by JS-Support @Userware
Dear CSHTML5 users,

We are pleased to inform you that the version 1.2 Beta 1 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_2_beta1.zip
(61.08 MiB) Downloaded 687 times

Learn More about C#/XAML for HTML5.



Here is what's new since v1.1.3:

  • Support for event-based asynchronous WCF SOAP calls! (Async/Completed+=...)
    NOTE: task-based asynchronous calls, and synchronous calls were already supported.
    _
  • Support for Focus! This includes focus-related UI cues, focus navigation with the Tab key, focus-related VisualStates, GotFocus and LostFocus events on UI element, IsTabStop property, and more.
    NOTE: If you do not want to display the default focus rectangle, either apply a ControlTemplate with an empty Focused VisualState, or set the "IsTabStop" property to False, or set the "UseSystemFocusVisuals" property to False.
    _
  • Support for authentication/credentials in web service calls.
    * In case of SOAP, the system will attempt to enable credential-related cookies, and if this is not supported, will fallback to normal calls.
    * In case of REST, you can use the new "WebClientWithCredentials" class instead of the "WebClient" class in order to support credentials-related cookies. You can use the property "WebClientWithCredentials.CredentialsMode" and "Application.Current.Host.Settings.DefaultSoapCredentialsMode" to change the behavior.
    _
  • Improved TypeScript Definitions to C# compiler (still a work in progress)
  • Added support for "IsolatedStorageFile.DeleteFile"
  • Added support for .cur resources (Note: like with all other resources, you need to set their "BuildAction" to either "Content", "Resource" or "EmbeddedResource" in order for the file to be properly copied to the JS output)
  • Improved support for TextBox templating. Here is an example of TextBox template with round corners:

    Code: Select all

            <Style x:Key="TextBoxStyle1" TargetType="TextBox">
                <Setter Property=" HorizontalContentAlignment" Value="Right"/>
                <Setter Property=" VerticalContentAlignment" Value="Bottom"/>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="TextBox">
                            <Border x:Name="OuterBorder"
                                     Background="{TemplateBinding Background}"
                                     BorderBrush="{TemplateBinding BorderBrush}"
                                     BorderThickness="{ TemplateBinding BorderThickness}"
                                     Padding="4"
                                     CornerRadius="15">
                                <ContentPresenter x:Name="ContentElement"
                                                     Background="{TemplateBinding Background}"
                                                       Margin="{TemplateBinding Padding}"
                                                       HorizontalAlignment="Right"
                                                       VerticalAlignment="Bottom"/>
                            </Border>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
  • Improved data binding behavior when binding between values that have incompatible types (such as binding an Int32 with Boolean)
  • Improved Control.Focus() so that it returns a boolean stating whether the element actually got the focus or not
  • Support for Control.UseSystemFocusVisuals
  • Fixed binding of Width and Height properties
  • Fixed multiple issues with RadioButtons related to data binding
  • Fixed a UI layout issue that caused the Grid control to behave as if its HorizontalAlignment was set to Stretch
  • Fixed an issue where the ComboBox did not properly absorb events, preventing it from working property when placed inside other controls such as a RadioButton
  • Fixed an issue with KeyValuePair.GetHashCode() that caused unexpected behaviors for example when passing a collection of KeyValuePair as the ItemsSource of a ComboBox
  • Fixed an exception that occurred when calling methods from a ServiceReference that had no return type
  • Fixed an issue related to recursive initialization of "UTF8Encoding+UTF8EncodingSealed" with the latest April 2018 update of Windows 10

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 a previous version, simply uninstall this one (from the Control Panel) and reinstall the previous version.

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: v1.2 Beta 1 released! [Download] (Focus states, WCF authentication, async WCF...)

Posted: Fri Jul 06, 2018 8:50 am
by TaterJuice
Bug:

Image

ScrollViewer inside Grid is broken. Content does not scroll in Simulator or Browser when Scrollviewer is inside a Grid. Works in Designer.

Sample Project

Re: v1.2 Beta 1 released! [Download] (Focus states, WCF authentication, async WCF...)

Posted: Thu Jul 12, 2018 8:23 am
by TaterJuice
TaterJuice wrote:Bug:

Image

ScrollViewer inside Grid is broken. Content does not scroll in Simulator or Browser when Scrollviewer is inside a Grid. Works in Designer.

Sample Project


Any Update on this ScrollViewer\Grid bug?
I have a release scheduled for Monday, and would like to use the updated WCF features, but I can't use this release with broken scrollbars.

Re: v1.2 Beta 1 released! [Download] (Focus states, WCF authentication, async WCF...)

Posted: Fri Jul 13, 2018 1:22 am
by JS-Support @Userware
Thanks for the bug report. We have fixed it and the fix should be available in a few hours.

Thanks.
Regards,
JS-Support