ASP源码.NET源码PHP源码JSP源码JAVA源码DELPHI源码PB源码VC源码VB源码Android源码
当前位置:首页 >> 低调看直播体育app软件下载 >> Windows Phone开发 >> [深入浅出Windows 10]QuickCharts图表控件库解析

[深入浅出Windows 10]QuickCharts图表控件库解析(3/8)

来源:网络整理     时间:2015-12-19     关键词:Git,Canvas,类图,Application,DataTemplate

本篇文章主要介绍了"[深入浅出Windows 10]QuickCharts图表控件库解析",主要涉及到Git,Canvas,类图,Application,DataTemplate方面的内容,对于Windows Phone开发感兴趣的同学可以参考一下: 13.4 QuickCharts图表控件库解析 QuickCharts图表控件是Amcharts公司提供的一个开源的图表控件库,这个控件库支持WPF、Si...

Legend.xaml文件主要代码
------------------------------------------------------------------------------------------------------------------
    <DataTemplate><StackPanel Orientation="Horizontal"><Rectangle Fill="{Binding Brush}" Height="10" Width="10" Margin="5"/><TextBlock Text="{Binding Title}" VerticalAlignment="Center"/>StackPanel>DataTemplate>

    (3)标注Balloon控件的实现

    Balloon控件是由Border控件和TextBlock控件组成的,用来显示图形的标注,Balloon类的Text属性则是表示标示的文本内容,XAML的语法如下:

Balloon.xaml文件主要代码
------------------------------------------------------------------------------------------------------------------
    <ControlTemplate TargetType="amq:Balloon"><Border Background="#20000000"                BorderBrush="{TemplateBinding BorderBrush}"                BorderThickness="{TemplateBinding BorderThickness}"                CornerRadius="5"                Padding="5"><TextBlock Text="{TemplateBinding Text}"/>Border>ControlTemplate>

    (4)PieChart控件把Slice控件、Legend控件和Balloon控件组成饼图图表

相关图片

相关文章