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

php做网站商城系统怎么样HTML转WordPress主题

php做网站商城系统怎么样,HTML转WordPress主题,国税网站页面建设中,石家庄网站建设 河北供求网通过DevExpress WPF Controls#xff0c;您能创建有着强大互动功能的XAML基础应用程序#xff0c;这些应用程序专注于当代客户的需求和构建未来新一代支持触摸的解决方案。在本教程中#xff0c;您将完成可视化数据源所需的步骤。应该执行以下步骤#xff0c;本文我们将为大…通过DevExpress WPF Controls您能创建有着强大互动功能的XAML基础应用程序这些应用程序专注于当代客户的需求和构建未来新一代支持触摸的解决方案。在本教程中您将完成可视化数据源所需的步骤。应该执行以下步骤本文我们将为大家介绍3个步骤及最后结果更多完整内容欢迎持续关注Step 1. 编写一个应用程序Step 2. 为图表和系列绑定添加数据Step 3. 配置系列视图结果Step 1. 编写一个应用程序您将带有Model和ViewModel类的数据文件添加到项目中。运行MS Visual Studio 2010、2012、2013或2015。创建一个全新的WPF Application项目添加一个新的模型类。 为此在解决方案资源管理器中右键单击该项目。从invoked菜单中选择Add | New Item... element。在调用的Add New Item对话框中选择Code组然后从项目列表中选择Class将文件名设置为Star.cs然后单击OK。将添加的文件包含的代码替换为以下代码该代码描述此入门课程中使用的模型对象。C#namespace GettingStarted2 {public struct Star {public int HipID { get; private set; }public string Spectr { get; private set; }public double Luminocity { get; private set; }public double ColorIndex { get; private set; }public double X { get; private set; }public double Y { get; private set; }public double Z { get; private set; }public Star(int id,double x,double y,double z,string spectr, double luminocity, double colorIndex) {HipID id;X x;Y y;Z z;Spectr spectr;Luminocity luminocity;ColorIndex colorIndex;}}}VB.NETPublic Class StarDim mHipID As Int32Dim mSpectr As StringDim mX, mY, mZ, mLuminocity, mColorIndex As DoublePublic ReadOnly Property HipID() As Int32GetReturn mHipIDEnd GetEnd PropertyPublic ReadOnly Property Spectr() As StringGetReturn mSpectrEnd GetEnd PropertyPublic ReadOnly Property X() As DoubleGetReturn mXEnd GetEnd PropertyPublic ReadOnly Property Y() As DoubleGetReturn mYEnd GetEnd PropertyPublic ReadOnly Property Z() As DoubleGetReturn mZEnd GetEnd PropertyPublic ReadOnly Property Luminocity() As DoubleGetReturn mLuminocityEnd GetEnd PropertyPublic ReadOnly Property ColorIndex() As DoubleGetReturn mColorIndexEnd GetEnd PropertyPublic Sub New(ByVal id As Int32,ByVal x As Double,ByVal y As Double,ByVal z As Double,ByVal spectr As String,ByVal luminocity As Double,ByVal colorIndex As Double)mHipID idmX xmY ymZ zmSpectr spectrmLuminocity luminocitymColorIndex colorIndexEnd SubEnd Class将数据文件添加到项目中。 将DevExpress Charts Demo随附的stardata.csv文件复制到项目目录新创建的Data目录中。注意默认情况下该文件位于C:甥敳獲PublicDocumentsDevExpress Demos 20.1ComponentsWPFCSChartsDemo.WpfData目录中。在解决方案资源管理器中切换Show All Files按钮然后右键单击Data目录。从调用的菜单中选择Include In Project。单击解决方案资源管理器中的stardata.csv文件然后在Properties窗口中将Build Action属性设置为Resource。ViewModel应该从数据文件加载模型对象像以前一样将文件添加到ViewModel的项目中。用以下代码替换新文件中的代码。C#using System;using System.Collections.Generic;using System.Collections.ObjectModel;using System.Globalization;using System.IO;using System.Windows;using System.Windows.Resources;namespace GettingStarted2 {public class StarStatisticsViewModel {public IEnumerable Stars { get; }public StarStatisticsViewModel() {Stars StarStatisticsLoader.Load(/Data/starsdata.csv);}}static class StarStatisticsLoader {public static IEnumerable Load(string filepath) {StreamResourceInfo streamInfo Application.GetResourceStream(new Uri(filepath, UriKind.RelativeOrAbsolute));StreamReader reader new StreamReader(streamInfo.Stream);Collection stars new Collection();while (!reader.EndOfStream) {String dataLine reader.ReadLine();String[] serializedValues dataLine.Split(;);stars.Add(new Star(id: Convert.ToInt32(serializedValues[0], CultureInfo.InvariantCulture),x: Convert.ToDouble(serializedValues[3], CultureInfo.InvariantCulture),y: Convert.ToDouble(serializedValues[4], CultureInfo.InvariantCulture),z: Convert.ToDouble(serializedValues[5], CultureInfo.InvariantCulture),spectr: serializedValues[1],luminocity: Convert.ToDouble(serializedValues[6], CultureInfo.InvariantCulture),colorIndex: Convert.ToDouble(serializedValues[2], CultureInfo.InvariantCulture)));}return stars;}}}VB.NETImports System.Collections.ObjectModelImports System.GlobalizationImports System.IOImports System.Windows.ResourcesPublic Class StarDataViewModelDim mStars As IEnumerable(Of Star)Public ReadOnly Property Stars As IEnumerable(Of Star)GetReturn mStarsEnd GetEnd PropertyPublic Sub New()mStars StarStatisticsLoader.Load(/Data/starsdata.csv)End SubEnd ClassPublic Module StarStatisticsLoaderPublic Function Load(ByVal filepath As String) As IEnumerable(Of Star)Dim streamInfo As StreamResourceInfo Application.GetResourceStream(New Uri(filepath, UriKind.RelativeOrAbsolute))Dim reader As StreamReader New StreamReader(streamInfo.Stream)Dim stars As Collection(Of Star) New Collection(Of Star)()While (Not reader.EndOfStream)Dim dataLine As String reader.ReadLine()Dim serializedValues As String() dataLine.Split(;)stars.Add(New Star(id:Convert.ToInt32(serializedValues(0), CultureInfo.InvariantCulture),x:Convert.ToDouble(serializedValues(3), CultureInfo.InvariantCulture),y:Convert.ToDouble(serializedValues(4), CultureInfo.InvariantCulture),z:Convert.ToDouble(serializedValues(5), CultureInfo.InvariantCulture),spectr:serializedValues(1),luminocity:Convert.ToDouble(serializedValues(6), CultureInfo.InvariantCulture),colorIndex:Convert.ToDouble(serializedValues(2), CultureInfo.InvariantCulture)))End WhileReturn starsEnd FunctionEnd Module现在将ViewModel分配给Window.DataContext属性选择Window找到DataContext属性然后单击New按钮。在调用的窗口中选择GettingStarted.StarDataViewModel类然后单击OK。准备工作完成这下一篇文章中将详细说明如何添加Chart3D控件分配数据和自定义显示设置。点击下方“了解更多”查看当下流行的界面开发组件
http://www.zqtcl.cn/news/841100/

相关文章:

  • 全屏网站模板制作教程吴江建设局房产网站
  • 浠水网站建设漳州找人做网站要求哪些
  • 做网站需要前台和后台吗公众号制作要求
  • 做一个网站 如何盈利模式招聘网站排行榜2021
  • 免费做网站网站有人哪些c 网站开发网易云课堂百度云下载
  • 高端品牌网站设计欣赏扬中网站建设包括哪些
  • 手机怎么访问微网站网络运营商电话
  • 怎么成立网站战争局势最新消息
  • 嘉定网站设计制作报价crm系统营销
  • 一个网站做几个关键词怎么样子做网站
  • 关于做网站的创新创业策划书怎么进网站后台管理系统
  • 品牌型网站开发wap网站开发工具
  • 网站改版设计微信淘宝购物券网站是怎么做的
  • 网站建设基本流程心得网站设计开发报价
  • 泉州网站建设网站制作电商网站建设需要
  • 沈阳工程建设信息网深圳seo网站排名优化
  • wordpress仿dz长沙seo网站优化
  • 西宁做网站公司电话关键词快速排名怎么做
  • 昆山网站建设秦皇岛淘宝关键词推广
  • 建设娱乐网站的要求微网站开发多少钱
  • 海港区网站快排seo网站怎么添加流量
  • 肇庆做网站aspaccess做网站
  • 郑州网站建设索q479185700wordpress输出用户中心链接
  • 网站重要三要素网站建设 找vx cp5173
  • 河北网站开发价格三个字简洁的公司名称
  • 网站建设案例分析wordpress 页面固定
  • 杭州网站备案机械加工网站有哪些
  • 360网站运营wordpress 免费版广告
  • 龙文网站建设有域名可以自己做网站吗
  • 东莞优化网站建设肥猫网站建设