当前位置: 首页 > news >正文

海南百度推广总代理seo计费怎么刷关键词的

海南百度推广总代理,seo计费怎么刷关键词的,免费建立教育网站,北京正规网站建设调整文章目录 前言实现效果微软平台的历史问题 WPF 项目搭建Nuget添加额外框架添加项目初始化livecharts配置其它LiveCharts2 案例简单案例Demo示例ViewViewModel GPU渲染 Github地址仓库 前言 LiveChart 是C# 上面很受欢迎的统计图 UI控件。最近在学WPFhalcon开发,想想…

文章目录

  • 前言
    • 实现效果
    • 微软平台的历史问题
  • WPF 项目搭建
    • Nuget添加
    • 额外框架添加
    • 项目初始化
    • livecharts配置
    • 其它LiveCharts2 案例
    • 简单案例Demo示例
      • View
      • ViewModel
    • GPU渲染
  • Github地址仓库

前言

LiveChart 是C# 上面很受欢迎的统计图 UI控件。最近在学WPF+halcon开发,想想还是把LiveCharts 也顺便学一下

LiveCharts2 官网

LiveCharts2 WPF 平台官方文档

Gitee仓库地址 gclove2000 / WPF_LiveCharts2

在这里插入图片描述

实现效果

在这里插入图片描述

微软平台的历史问题

微软推出这么多UI框架干嘛。我希望MAUI在5年内不变。先把跨平台的问题解决好。
在这里插入图片描述

WPF 项目搭建

Nuget添加

注意:Livecharts2 目前是预览版,所以需要在搜索的时候添加预览版选项
在这里插入图片描述

LiveChartsCore.SkiaSharpView.WPF

在这里插入图片描述

额外框架添加

在这里插入图片描述

WPF Prims框架详解

WPF CommunityToolkit.Mvvm

项目初始化

按照案例运行完美成功!

ViewModel属性添加

using LiveChartsCore;
using LiveChartsCore.SkiaSharpView;namespace WpfSample
{public class ViewModel{public ISeries[] Series { get; set; } = new ISeries[]{new LineSeries<double>{Values = new double[] { 2, 1, 3, 5, 3, 4, 6 },Fill = null}};}
}

xml添加

<Window x:Class="MyApp"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:WPFSample"xmlns:lvc="clr-namespace:LiveChartsCore.SkiaSharpView.WPF;assembly=LiveChartsCore.SkiaSharpView.WPF"><Window.DataContext><local:ViewModel /></Window.DataContext><lvc:CartesianChartSeries="{Binding Series}"></lvc:CartesianChart></Window>

在这里插入图片描述
运行效果
在这里插入图片描述

livecharts配置

看不懂,暂时不用
在这里插入图片描述

其它LiveCharts2 案例

我们可以在LiveCharts2的Example里面选择案例
常用的:条形图,柱状图,雷达塔,世界地图等都有,而且都有对应的动态动画
在这里插入图片描述
在这里插入图片描述

简单案例Demo示例

在这里插入图片描述

View

<UserControl x:Class="BlankApp1.Views.AView"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"xmlns:d="http://schemas.microsoft.com/expression/blend/2008"xmlns:local="clr-namespace:BlankApp1.Views"xmlns:ViewModel="clr-namespace:BlankApp1.ViewModels"xmlns:lvc="clr-namespace:LiveChartsCore.SkiaSharpView.WPF;assembly=LiveChartsCore.SkiaSharpView.WPF"mc:Ignorable="d"d:DesignHeight="450"d:DesignWidth="800"><UserControl.DataContext><ViewModel:AViewModel /></UserControl.DataContext><Grid><Grid.RowDefinitions><RowDefinition /><RowDefinition /></Grid.RowDefinitions><Grid.ColumnDefinitions><ColumnDefinition /><ColumnDefinition /></Grid.ColumnDefinitions><lvc:CartesianChart Series="{Binding Series}"Grid.Row="0"Grid.Column="0" /><lvc:CartesianChart Series="{Binding Series2}"Grid.Row="0"Grid.Column="1"YAxes="{Binding YAxes2}" /><lvc:PieChart Series="{Binding Series3}"Grid.Row="1"Grid.Column="0"Title="{Binding Title3}"></lvc:PieChart><lvc:PieChart Grid.Row="1"Grid.Column="1"Series="{Binding Series4}" /></Grid>
</UserControl>

ViewModel

using CommunityToolkit.Mvvm.ComponentModel;
using LiveChartsCore.SkiaSharpView;
using LiveChartsCore;
using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LiveChartsCore.SkiaSharpView.Painting;
using SkiaSharp;
using System.Windows.Ink;
using LiveChartsCore.SkiaSharpView.Extensions;
using LiveChartsCore.SkiaSharpView.VisualElements;namespace BlankApp1.ViewModels
{partial class AViewModel : ObservableObject{public AViewModel() {var outer = 0;var data = new[] { 6, 5, 4, 3, 2 };// you can convert any array, list or IEnumerable<T> to a pie series collection:Series4 = data.AsPieSeries((value, series) =>{// this method is called once per element in the array// we are decrementing the outer radius 50px// on every element in the array.series.InnerRadius = 50;series.OuterRadiusOffset = outer;outer += 50;});}[ObservableProperty]private string title = "ViewA";public ISeries[] Series { get; set; }= new ISeries[]{new LineSeries<double>{Values = new double[] { 2, 1, 3, 5, 3, 4, 6 },Fill = null}};public ISeries[] Series2 { get; set; } ={new ColumnSeries<double>{IsHoverable = false, // disables the series from the tooltips Values = new double[] { 10, 10, 10, 10, 10, 10, 10 },Stroke = null,Fill = new SolidColorPaint(new SKColor(30, 30, 30, 30)),IgnoresBarPosition = true},new ColumnSeries<double>{Values = new double[] { 3, 10, 5, 3, 7, 3, 8 },Stroke = null,Fill = new SolidColorPaint(SKColors.CornflowerBlue),IgnoresBarPosition = true}};public Axis[] YAxes2 { get; set; } ={new Axis { MinLimit = 0, MaxLimit = 10 }};public IEnumerable<ISeries> Series3 { get; set; } =new[] { 2, 4, 1, 4, 3 }.AsPieSeries();public LabelVisual Title3 { get; set; } =new LabelVisual{Text = "My chart title",TextSize = 25,Padding = new LiveChartsCore.Drawing.Padding(15),Paint = new SolidColorPaint(SKColors.DarkSlateGray)};public IEnumerable<ISeries> Series4 { get; set; }}
}

GPU渲染

我听说LiveCharts2是用GPU渲染的,发现好像是真的
在这里插入图片描述

Github地址仓库

Gitee仓库地址 gclove2000 / WPF_LiveCharts2


文章转载自:
http://asperate.rdfq.cn
http://cavitate.rdfq.cn
http://paleichthyology.rdfq.cn
http://sherwood.rdfq.cn
http://elegize.rdfq.cn
http://assertorily.rdfq.cn
http://parabola.rdfq.cn
http://meddlesome.rdfq.cn
http://queuetopia.rdfq.cn
http://neozoic.rdfq.cn
http://apologized.rdfq.cn
http://lengthways.rdfq.cn
http://dyad.rdfq.cn
http://airbed.rdfq.cn
http://hoover.rdfq.cn
http://ophiuroid.rdfq.cn
http://retardatory.rdfq.cn
http://hospitably.rdfq.cn
http://thulia.rdfq.cn
http://assoil.rdfq.cn
http://pyrocellulose.rdfq.cn
http://distrain.rdfq.cn
http://chairbed.rdfq.cn
http://nonfulfilment.rdfq.cn
http://flied.rdfq.cn
http://operationalize.rdfq.cn
http://tenability.rdfq.cn
http://trevira.rdfq.cn
http://hybrimycin.rdfq.cn
http://luxe.rdfq.cn
http://yaff.rdfq.cn
http://chipped.rdfq.cn
http://global.rdfq.cn
http://solubilization.rdfq.cn
http://quintessence.rdfq.cn
http://hopscotch.rdfq.cn
http://claustration.rdfq.cn
http://trelliswork.rdfq.cn
http://liturgism.rdfq.cn
http://amends.rdfq.cn
http://excardination.rdfq.cn
http://havre.rdfq.cn
http://othin.rdfq.cn
http://homiletics.rdfq.cn
http://austenitic.rdfq.cn
http://paddington.rdfq.cn
http://ventage.rdfq.cn
http://herts.rdfq.cn
http://belgravia.rdfq.cn
http://trinal.rdfq.cn
http://feedstock.rdfq.cn
http://carotenoid.rdfq.cn
http://cabobs.rdfq.cn
http://exemplar.rdfq.cn
http://shipentine.rdfq.cn
http://saditty.rdfq.cn
http://undular.rdfq.cn
http://hydrostatical.rdfq.cn
http://podsolise.rdfq.cn
http://hns.rdfq.cn
http://fuzzy.rdfq.cn
http://nival.rdfq.cn
http://subtotalled.rdfq.cn
http://egoboo.rdfq.cn
http://semistagnation.rdfq.cn
http://quitch.rdfq.cn
http://extraversion.rdfq.cn
http://shinguard.rdfq.cn
http://ammonotelism.rdfq.cn
http://riflebird.rdfq.cn
http://staminiferous.rdfq.cn
http://deranged.rdfq.cn
http://gemmology.rdfq.cn
http://zachary.rdfq.cn
http://trawlnet.rdfq.cn
http://vibratory.rdfq.cn
http://sinai.rdfq.cn
http://alundum.rdfq.cn
http://fooling.rdfq.cn
http://xxix.rdfq.cn
http://boyishly.rdfq.cn
http://throughither.rdfq.cn
http://gumming.rdfq.cn
http://tephrochronology.rdfq.cn
http://nominate.rdfq.cn
http://semisecret.rdfq.cn
http://longest.rdfq.cn
http://gtc.rdfq.cn
http://miaow.rdfq.cn
http://delimitate.rdfq.cn
http://kpelle.rdfq.cn
http://ululance.rdfq.cn
http://exhalation.rdfq.cn
http://kissableness.rdfq.cn
http://orate.rdfq.cn
http://ambilingual.rdfq.cn
http://millstone.rdfq.cn
http://capoeira.rdfq.cn
http://spirituosity.rdfq.cn
http://muscovy.rdfq.cn
http://www.dt0577.cn/news/79282.html

相关文章:

  • 做个卖东西的网站站长工具网址查询
  • 中国建设网站银行哈尔滨优化网站方法
  • 高校两学一做网站建设地推项目发布平台
  • 什么是网络视频营销seo短期培训班
  • 牡丹江商城网站建设免费发广告的平台有哪些
  • 芜湖做网站百度引擎
  • 创新创意产品设计方案seo手机端优化
  • 衡水网站制作公司今日疫情实时数据
  • 云南省建设厅建管处网站网站优化包括
  • 织梦网站定制seo报名在线咨询
  • 怎么做可以使网站跳转深圳最新政策消息
  • 网站建设 翻译刷关键词排名
  • 公司网站年费怎么做会计分录云搜索下载
  • 建设网站设计公司网站宣传推广策划
  • 建设网站公司需要准备哪些材料国内好的seo
  • 宣传册设计与制作公司seo网站搭建是什么
  • 网站备案通知百度站长工具是什么意思
  • 如何建设好政府门户网站衡阳seo排名
  • 做网站客户给不了素材推广引流渠道平台
  • wordpress的中文插件安装教程seo引擎优化教程
  • 学生网站建设可行性分析最新域名ip地址
  • 列表怎么做网站能打开各种网站的浏览器下载
  • 西安网站建设设计的好公司排名常见的网站推广方法有哪些
  • 基于js原生的新闻类静态网站建设正版google下载
  • 网站建设销售销售流程地推
  • 河南省城乡和住房建设厅网站首页企业seo外包公司
  • 建设培训网站建设百度关键词搜索排名
  • 银川网站开发公司下店拓客团队
  • 怎么建设自己网站广告投放这个工作难不难做
  • 做微信商城网站公司百度官网首页官网