Beta 7.3 of C#/XAML for HTML5 released

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

Beta 7.3 of C#/XAML for HTML5 released

Postby JS-Support » Sat Apr 16, 2016 9:23 am

Dear CSHTML5 users and forum members,

We are pleased to inform you that the Beta 7.3 of CSHTML5 is available for download!


UPDATE: Link removed because a newer beta has been released


The main new features since Beta 7.2 are the support for ControlTemplates, for ResX resources, and for embedding JS/CSS files!


New Features and bug fixes since Beta 7.2:
- ControlTemplates, Storyboards, Animations (only discrete key frames with ObjectAnimationUsingKeyFrames are supported for the moment), VisualStateManager, OnApplyTemplate, TemplateBinding
- New default appearance for buttons (now with mouseover/mousepressed support), that can be customized by specifying a template
- ResX resource files support
- "MemberInfo.GetCustomAttributes" method
- Ability to embed JS and CSS files to your project (you must set their "Build Action" to "Resource"), and reference them via the "ms-appx://AssemblyName/Folder/Filename.js" syntax (see announcement of previous Beta 7.2 for details). This is very useful for example to create offline 3rd party extensions.
- Added "Tuple2" and "HashSet2" classes (to temporarily make up for the lack of the native ones)
- "HorizontalContentAlignment" and "VerticalContentAlignment" in the "Control" class.
- Support for prefixes inside the "TargetType" property.
- Fixed an issue with the PasswordBox that prevented the MaxLength from working properly
- Fixed an issue that caused DataTemplates to be removed from the XAML Designer during design-time


You may also be interested to read the changelog of the previous Beta 7.2.

Notes about installation:
  • Before installing the 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

rkmore
Posts: 50
Joined: Mon Dec 07, 2015 1:53 pm

Re: NEW! Beta 7.3 of C#/XAML for HTML5 released! [Download]

Postby rkmore » Sun Apr 17, 2016 6:38 am

This is great! Can we see some examples?

The VisualStateManager really needs some examples. AdaptiveStateTrigger and other things are not working as I am used to.

I am sure you did simple scenarios and tests as part of development. Can we see some of those?

Having used VisualStateManager in win 8.1 and UWP all the time, this flavor of it does not seem to be working as expected.

I also note that the gallery does not include the new buttons etc. Will it be updated?

Really great to see the progress. Thanks!

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

Re: NEW! Beta 7.3 of C#/XAML for HTML5 released! [Download]

Postby JS-Support » Mon Apr 18, 2016 12:05 am

Hi,

Thanks a lot.

Sure! Please find below the default button style, which you can modify to suit your needs:

Code: Select all

<Style x:Key="ButtonStyle1" TargetType="Button">
        <Setter Property="Background" Value="#FFE2E2E2"/>
        <Setter Property="Foreground" Value="Black"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="Padding" Value="12,4,12,4"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Border>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup Name="CommonStates">
                                <VisualState Name="Normal">
                                </VisualState>
                                <VisualState Name="PointerOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="BackgroundOverlay">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="#11000000"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="BackgroundOverlay">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="#22000000"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState Name="Disabled">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="BackgroundOverlay">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="#55AAAAAA"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="Border" Background="{Binding Background, RelativeSource={RelativeSource TemplatedParent}}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{Binding BorderThickness, RelativeSource={RelativeSource TemplatedParent}}">
                            <Grid>
                                <Border x:Name="BackgroundOverlay" Background="{TemplateBinding Background}" IsHitTestVisible="False"/>
                                <ContentPresenter x:Name="ContentPresenter" ContentTemplate="{Binding ContentTemplate, RelativeSource={RelativeSource TemplatedParent}}" Content="{Binding Content, RelativeSource={RelativeSource TemplatedParent}}" Margin="{Binding Padding, RelativeSource={RelativeSource TemplatedParent}}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                            </Grid>
                        </Border>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>


To use the style, you can place it in the XAML resources (either App.xaml or anywhere in the Button parents' resources), and reference it with: Style={StaticResource ButtonStyle1}

(note: in the current Beta, "implicit styles", which have no "x:Key" attribute, are not yet supported)
(note2: in the current Beta, only discrete key frames that start at "0 seconds" are supported)

Yes, the gallery ("showcase") will be updated as soon as possible.

Thanks again.
Regards,
JS-Support

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

Re: NEW! Beta 7.3 of C#/XAML for HTML5 released! [Download]

Postby zemorango » Wed Apr 20, 2016 1:17 am

Great News :)

Good Job... really great :)
Can you guys provide and example of how to include a telerik kendo grid or an asp.net grid ?( or course the Ideal would be a silverlight radgrid)
and what about LinearGradientBrush? only in May?



Ps : Please continue this great work , really excited about this :D


Return to “Pre-Releases, Downloads and Announcements”

Who is online

Users browsing this forum: No registered users and 1 guest

 

 

cron