<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:xuni="clr-namespace:Xuni.Forms.FlexPie;assembly=Xuni.Forms.FlexPie"
             xmlns:common="clr-namespace:FlexPieDemo.Data.Views.Common;assembly=FlexPie101.Data"
             x:Class="FlexPieDemo.Data.Views.Samples.TooltipsSample" x:Name="page"
            Padding="20">
  <StackLayout>
    <Label BindingContext="{x:Reference page}" Text="{Binding Title}" IsVisible="{StaticResource TitleVisible}" HorizontalOptions="Center" Font="Large"/>
    <xuni:FlexPie BindingName = "Name" Binding = "Value" x:Name="flexPie" VerticalOptions="FillAndExpand" >
      <xuni:FlexPie.Tooltip>
        <xuni:FlexPieTooltip IsVisible="False">
          <StackLayout BackgroundColor="#FFFFCA">
            <Frame Padding="3">
              <Label Text="{Binding Value , StringFormat='{0:F2}'}" TextColor="Black" FontSize="18"></Label>
            </Frame>
          </StackLayout>
        </xuni:FlexPieTooltip>
      </xuni:FlexPie.Tooltip>
    </xuni:FlexPie>
  </StackLayout>
</ContentPage>