v1.2 Beta 6 released! (Implicit Styles! + DefaultStyleKey, generic.xaml, more...)

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

v1.2 Beta 6 released! (Implicit Styles! + DefaultStyleKey, generic.xaml, more...)

Postby JS-Support @Userware » Wed Oct 17, 2018 3:35 pm

Dear CSHTML5 users,

We are pleased to inform you that the version 1.2 Beta 6 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_beta6.zip
(61.25 MiB) Downloaded 684 times

Learn More about C#/XAML for HTML5.

UPDATE: Known issue: DispatcherTimer and Storyboard may display errors in the Simulator. A fix will be available shortly.



Here is what's new since v1.2 Beta 5:

  • Support for Implicit styles!
  • Support for DefaultStyleKey and "themes/generic.xaml"
  • Improved the WCF test application at: http://cshtml5.com/downloads/TestCshtml5WCF.zip
  • Added option to format/indent the XML produced by the DataContractSerializer.SerializeToString(...) method
  • Fixed the error when running in the browser related to "ComputeStringHash" that was sometimes raised when using a switch(string) statement in VS 2015 or newer
  • Fixed the serialization of enums (was a regression in v1.2 beta 5) and of collections of value types (eg. ObservableCollection<string>)
  • Fixed regression of a previous beta that prevented from adding more items to the ItemsSource of the DataGrid after the DataGrid has been displayed in the visual tree
  • Added support for more elements in the XAML Editor preview (UriMapper, Behaviors, DataGrid.PageSize, etc.)
  • Added support for using the Style tag for the root of a XAML file
  • Improved the performance of XDocument.Parse(text)
  • Improved the reliability of Popup.StayOpen, and fixed an issue where clicking outside a popup did not properly close it
  • Fixed vertical alignment of shapes/paths
  • Fixed appearance of the DataPager under Firefox
  • Added some empty namespaces so that there is no need to remove the "using" directives when migrating a SIlverlight or WPF app ("Microsoft.Win32", "System.Configuration", "System.IO.IsolatedStorage", etc.)
  • Fixed an issue that, in some cases, could prevent from referencing from XAML a control defined in another assembly
  • Improved the reliability of DispatcherTimer when running in the Simulator

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

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

Re: v1.2 Beta 6 released! (Implicit Styles! + DefaultStyleKey, generic.xaml, more...) [Download]

Postby JS-Support @Userware » Thu Oct 18, 2018 6:16 am

UPDATE: Known issue: DispatcherTimer and Storyboard may display errors in the Simulator. A fix will be available shortly. Thanks.

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

Re: v1.2 Beta 6 released! (Implicit Styles! + DefaultStyleKey, generic.xaml, more...) [Download]

Postby TaterJuice » Thu Oct 18, 2018 6:53 pm

JS-Support @Userware wrote:UPDATE: Known issue: DispatcherTimer and Storyboard may display errors in the Simulator. A fix will be available shortly. Thanks.

Thank you for the notice. Do you know if they still work in browser?

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

Re: v1.2 Beta 6 released! (Implicit Styles! + DefaultStyleKey, generic.xaml, more...) [Download]

Postby JS-Support @Userware » Fri Oct 19, 2018 3:37 am

TaterJuice wrote:Thank you for the notice. Do you know if they still work in browser?


Yes, they should still work in the browser.

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

Re: v1.2 Beta 6 released! (Implicit Styles! + DefaultStyleKey, generic.xaml, more...) [Download]

Postby TaterJuice » Fri Oct 19, 2018 1:30 pm

Fixed vertical alignment of shapes/paths


I still have LinearGradientBrushes that load in the wrong direction inside a Storyboard inside of a VisualStateManager, inside of a style. They fix themselves as soon as you interact with the control

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

Re: v1.2 Beta 6 released! (Implicit Styles! + DefaultStyleKey, generic.xaml, more...) [Download]

Postby JS-Support @Userware » Mon Oct 22, 2018 3:18 am

TaterJuice wrote:I still have LinearGradientBrushes that load in the wrong direction inside a Storyboard inside of a VisualStateManager, inside of a style. They fix themselves as soon as you interact with the control

Thanks TaterJuice. Can you please let me know how to reproduce it?

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

Re: v1.2 Beta 6 released! (Implicit Styles! + DefaultStyleKey, generic.xaml, more...) [Download]

Postby TaterJuice » Fri Oct 26, 2018 12:26 pm

JS-Support @Userware wrote:
TaterJuice wrote:I still have LinearGradientBrushes that load in the wrong direction inside a Storyboard inside of a VisualStateManager, inside of a style. They fix themselves as soon as you interact with the control

Thanks TaterJuice. Can you please let me know how to reproduce it?


I'll try to get that to you asap. It doesn't happen in a brand-new project when I copy and paste the style. I'm trying to figure out what the difference is.

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

Re: v1.2 Beta 6 released! (Implicit Styles! + DefaultStyleKey, generic.xaml, more...)

Postby TaterJuice » Tue Nov 06, 2018 10:39 am

Path-bottoms (or canvases) are being clipped in this release, and the next release (beta 7).

The bottom of all my paths are being clipped. This did not happen in beta 5, and happens in both beta 6 and beta 7. See screenshot, below:
Is there something I need to change in my XAML?

Code: Select all

        <Canvas
            Width="24"
            Height="24"
            VerticalAlignment="Center"
            HorizontalAlignment="Center">
            <Path
                Canvas.Left="0"
                Canvas.Top="0"
                Data="{Binding Caption, Mode=OneWay, Converter={StaticResource captionToGeometryConverter}}"
                HorizontalAlignment="Center"
                VerticalAlignment="Center"
                Fill="WhiteSmoke">
            </Path>
        </Canvas>


Image

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

Re: v1.2 Beta 6 released! (Implicit Styles! + DefaultStyleKey, generic.xaml, more...)

Postby JS-Support @Userware » Wed Nov 07, 2018 2:50 am

TaterJuice wrote:Path-bottoms (or canvases) are being clipped in this release, and the next release (beta 7).


Thanks. I see that you posted some XAML for us to reproduce the issue. Could you please also include some sample content for the "Path.Data" property being cropped? (in your code we can only see a Binding)

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

Re: v1.2 Beta 6 released! (Implicit Styles! + DefaultStyleKey, generic.xaml, more...)

Postby TaterJuice » Wed Nov 07, 2018 12:49 pm

JS-Support @Userware wrote:
TaterJuice wrote:Path-bottoms (or canvases) are being clipped in this release, and the next release (beta 7).


Thanks. I see that you posted some XAML for us to reproduce the issue. Could you please also include some sample content for the "Path.Data" property being cropped? (in your code we can only see a Binding)


Yes, absolutely.

Code: Select all

<Path
    x:Key="MapMarker"
    Data="M12,11.5A2.5,2.5 0 0,1 9.5,9A2.5,2.5 0 0,1 12,6.5A2.5,2.5 0 0,1 14.5,9A2.5,2.5 0 0,1 12,11.5M12,2A7,7 0 0,0 5,9C5,14.25 12,22 12,22C12,22 19,14.25 19,9A7,7 0 0,0 12,2Z" />


Code: Select all

<Path
    x:Key="CircleCheckMark"
    Data="M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2,4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z" />

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

Re: v1.2 Beta 6 released! (Implicit Styles! + DefaultStyleKey, generic.xaml, more...)

Postby JS-Support @Userware » Fri Nov 09, 2018 10:27 am

Hi,

Thanks for the <Path> code.

We tried with an empty project and the following XAML, but were not able to reproduce the issue:

Code: Select all

<Page
    x:Class="Application1.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">
    <Grid>
        <Canvas
            Background="Orange"
            Width="24"
            Height="24"
            VerticalAlignment="Center"
            HorizontalAlignment="Center">
            <Path
                Canvas.Left="0"
                Canvas.Top="0"
                Data="M12,11.5A2.5,2.5 0 0,1 9.5,9A2.5,2.5 0 0,1 12,6.5A2.5,2.5 0 0,1 14.5,9A2.5,2.5 0 0,1 12,11.5M12,2A7,7 0 0,0 5,9C5,14.25 12,22 12,22C12,22 19,14.25 19,9A7,7 0 0,0 12,2Z"
                HorizontalAlignment="Center"
                VerticalAlignment="Center"
                Fill="Black">
            </Path>
        </Canvas>
    </Grid>
</Page>


Could you please let me know if you are able to isolate the issue in an empty project so that we can more easily reproduce it?

Thanks a lot.
Regards,
JS-Support


Return to “Pre-Releases, Downloads and Announcements”

Who is online

Users browsing this forum: No registered users and 35 guests

 

 

cron