add microcharts
This commit is contained in:
13
Billing.Shared/Views/RankPage.xaml
Normal file
13
Billing.Shared/Views/RankPage.xaml
Normal file
@ -0,0 +1,13 @@
|
||||
<?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:chart="clr-namespace:Microcharts.Forms;assembly=Microcharts.Forms"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
x:Class="Billing.Views.RankPage"
|
||||
x:Name="rankPage"
|
||||
x:DataType="v:RankPage"
|
||||
BindingContext="{x:Reference rankPage}">
|
||||
<chart:ChartView Chart="{Binding Chart}"/>
|
||||
</ui:BillingPage>
|
29
Billing.Shared/Views/RankPage.xaml.cs
Normal file
29
Billing.Shared/Views/RankPage.xaml.cs
Normal file
@ -0,0 +1,29 @@
|
||||
using Billing.UI;
|
||||
using Microcharts;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using Xamarin.Forms;
|
||||
using Xamarin.Forms.Xaml;
|
||||
|
||||
namespace Billing.Views
|
||||
{
|
||||
public partial class RankPage : BillingPage
|
||||
{
|
||||
private static readonly BindableProperty ChartProperty = Helper.Create<Chart, RankPage>(nameof(Chart));
|
||||
|
||||
public Chart Chart
|
||||
{
|
||||
get => (Chart)GetValue(ChartProperty);
|
||||
set => SetValue(ChartProperty, value);
|
||||
}
|
||||
|
||||
public RankPage()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user