Page 1 of 1

Beta 9.3 of C#/XAML for HTML5 released

Posted: Sun Sep 18, 2016 10:14 am
by JS-Support @Userware
Dear CSHTML5 users and forum members,

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

  • Support for ToolTips!

    Code: Select all

    <Button Content="Button with text ToolTip inline" HorizontalAlignment="Center"
            ToolTipService.ToolTip="This is the ToolTip" />
           
    <Button Content="Button with image ToolTip as direct child" HorizontalAlignment="Center" >
        <ToolTipService.ToolTip>
            <Image Source="ms-appx:/Images/Logo1.png" Width="100" Height="100" Stretch="Fill"/>
        </ToolTipService.ToolTip>
    </Button>

    <Button Content="Button with image ToolTip normal" HorizontalAlignment="Center" >
        <ToolTipService.ToolTip>
            <ToolTip>
                <Image Source="ms-appx:/Images/Logo1.png" Width="100" Height="100" Stretch="Fill"/>
            </ToolTip>
        </ToolTipService.ToolTip>
    </Button>

  • Support for ContextMenu and MenuItem! (non-hierarchical)

    Code: Select all

    <Border CornerRadius="5" Background="LightGray" Padding="10" HorizontalAlignment="Left">
        <Border.ContextMenu>
            <ContextMenu>
                <MenuItem Header="Menu Item without icon" Click="MenuItem1_Click"/>
                <MenuItem Header="Menu Item with icon" Click="MenuItem2_Click">
                    <MenuItem.Icon>
                        <Image Source="ms-appx:/Images/Logo1.png" Width="20" Height="20" Stretch="Fill"/>
                    </MenuItem.Icon>
                </MenuItem>
            </ContextMenu>
        </Border.ContextMenu>
        <TextBlock Text="Right-click to display the menu"/>
    </Border>

  • Support for right-click ("RightTapped" event)
  • Support for ClipToBounds property (like in WPF) that crops the content of a control that exceeds its boundaries
  • Fixed an issue that caused the native ComboBox to not be properly initialized
  • Support for more overloads of Linq methods: Contains, GroupBy, Intersect, Aggregate, Min, Max
  • Support for StringSplitOptions in String.Split
  • Improved the default Height of a TextBox
  • Improved behavior of MinHeight when applied to TextBox
  • Popups now have the ability to be transparent to clicks (by setting popup.IsHitTestVisible=false)
  • Line, Rectangle, and Ellipse are no longer "sealed" classes
  • Fixed XAML preview when a ChildWindow had one of the following properties or events: Closed, Closing, OverlayBrush, OverlayOpacity.
  • Fixed the exception when setting PointerEntered without setting PointerExited events

2016_09_19_cshtml5_tooltips_and_context_menu.png
2016_09_19_cshtml5_tooltips_and_context_menu.png (9.45 KiB) Viewed 13509 times



If you didn't read about the previous Beta 9.1 and 9.2, you can read the list of features and bug fixes that were introduced at the following URL:
http://forums.cshtml5.com/viewtopic.php?f=6&t=7497


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

Re: New Beta 9.3 released! [Download]

Posted: Sun Sep 18, 2016 12:49 pm
by Sesztak
Thanks for it.

Re: New Beta 9.3 released! [Download]

Posted: Mon Sep 19, 2016 1:10 am
by zemorango
Great jobs,
this tool i getting better and better :P soon I will put some links with small apps that I've being doing :D

Re: New Beta 9.3 released! [Download]

Posted: Mon Sep 19, 2016 1:40 am
by JS-Support @Userware
@Sesztak: thanks to you for your support

zemorango wrote:Great jobs,
this tool i getting better and better :P soon I will put some links with small apps that I've being doing :D

@zemorango: thanks! Can't wait to see your apps!

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

Posted: Thu Oct 06, 2016 5:40 am
by labbr01
TooltipServic.ToolTip does not seems to work using binding to get tooltip text value:

<Button x:Name="BtnFondCarte" Click="BtnFondCarte_Click" Height="34" ToolTipService.ToolTip="{Binding Path=BtnFondCarte_Tool}">
<Image x:Name="FondCarte" Height="32" Width="32" Source="ms-appx://Env.Atlas.Iu/Images/32/Basemap32.png"></Image>
</Button>

I got this error:
Erreur 1 C#/XAML for HTML5: XamlPreprocessor (pass 2) failed: Property "ToolTipService" not found in type "Windows.UI.Xaml.Controls.Button". Note: the XAML editor sometimes raises errors that are misleading. To see only real non-misleading errors, make sure to close all the XAML editor windows/tabs before compiling. C:\DMU\AtlasWeb\Env.Atlas.Iu\Menu\MenuVerticalDonnees.xaml 13 Env.Atlas.Iu

If i change tooltip to string in XAML:
<Button x:Name="BtnFondCarte" Click="BtnFondCarte_Click" Height="34" ToolTipService.ToolTip="This is a ToolTip">
<Image x:Name="FondCarte" Height="32" Width="32" Source="ms-appx://Env.Atlas.Iu/Images/32/Basemap32.png"></Image>
</Button>
ToolTip compile and work.

Using Resources, Binding or Converter would be appreciated with tooltip in order to support language selection.

Bruno

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

Posted: Thu Oct 06, 2016 8:08 am
by JS-Support @Userware
labbr01 wrote:TooltipServic.ToolTip does not seems to work using binding to get tooltip text value


Thanks for reporting this issue. We are going to fix it asap.

Regards,
JS-Support

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

Posted: Mon Jan 30, 2017 5:29 am
by Amrutha
Hello Team,

Is the feature ToolTipService.ToolTip for binding fixed?

Eg: ToolTipService.ToolTip="{Binding SelectedValue.LocalTimeZones_Name, ElementName=CmbTimeZone}"

Thanks,
-A