<?xml version="1.0" encoding="utf-8" ?>
<ui:BillingPage xmlns="http://xamarin.com/schemas/2014/forms"
                xmlns:r="clr-namespace:Billing.Languages"
                xmlns:ui="clr-namespace:Billing.UI"
                xmlns:v="clr-namespace:Billing.Views"
                xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
                x:Class="Billing.Views.SettingPage"
                x:Name="settingPage"
                x:DataType="v:SettingPage"
                Title="{r:Text Settings}"
                BindingContext="{x:Reference settingPage}"
                Shell.TabBarIsVisible="True">

    <TableView Intent="Settings" HasUnevenRows="True">
        <TableSection Title="{r:Text About}">
            <ui:OptionTextCell Height="36" Title="{r:Text Version}"
                               Detail="{Binding Version}"/>
        </TableSection>
        <TableSection Title="{r:Text Feature}">
            <ui:OptionSelectCell Height="36" Title="{r:Text CategoryManage}"
                                 Detail="{r:Text Detail}"
                                 Command="{Binding CategoryCommand}"/>
        </TableSection>
        <TableSection Title="{r:Text Preference}">
            <ui:OptionEntryCell Height="36" Title="{r:Text PrimaryColor}"
                                Text="{Binding PrimaryColor, Mode=TwoWay}"
                                Keyboard="Text"/>
            <ViewCell Height="120">
                <Grid BackgroundColor="{DynamicResource OptionTintColor}"
                      ColumnDefinitions=".35*, .65*" Padding="10">
                    <!--<Label Text="" LineBreakMode="TailTruncation"
                           VerticalOptions="Center"
                           TextColor="{DynamicResource TextColor}"/>-->
                    <ui:ColorPicker Grid.Column="1" ColorChanged="ColorPicker_ColorChanged"/>
                </Grid>
            </ViewCell>
        </TableSection>
    </TableView>
</ui:BillingPage>