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

老外做牛排的视频网站网站建设公司推荐q479185700顶上

老外做牛排的视频网站,网站建设公司推荐q479185700顶上,wordpress程序appcms,网站怎么更换页面图片DevExpress WPF拥有120个控件和库#xff0c;将帮助您交付满足甚至超出企业需求的高性能业务应用程序。通过DevExpress WPF能创建有着强大互动功能的XAML基础应用程序#xff0c;这些应用程序专注于当代客户的需求和构建未来新一代支持触摸的解决方案。 无论是Office办公软件…DevExpress WPF拥有120个控件和库将帮助您交付满足甚至超出企业需求的高性能业务应用程序。通过DevExpress WPF能创建有着强大互动功能的XAML基础应用程序这些应用程序专注于当代客户的需求和构建未来新一代支持触摸的解决方案。 无论是Office办公软件的衍伸产品还是以数据为中心的商业智能产品都能通过DevExpress WPF控件来实现。 本教程演示了如何将GridControl添加到项目中并将控件绑定到数据库 获取DevExpress WPF v23.2正式版下载(Q技术交流532598169 1. 使用DevExpress Template Gallery模板库来创建一个新的Blank MVVM Application空白MVVM应用程序这个项目模版包含了一个样板View Model类并设置MainView的数据上下文 2. 将项目连接到本地数据库示例如下Blank .NET 6 App with the Northwind Database 。 3. 将GridControl工具箱项添加到MainView 如果您的项目没有DevExpress.Wpf.Grid.Core.v23.2引用Visual Studio将显示以下消息 此消息通知您已添加所需的引用并要求再次添加控件。 提示如果您从NuGet源而不是从统一组件安装程序中获取DevExpress产品则工具箱中不包含DevExpress控件除非您添加相应的NuGet包。 跳转到Tools | NuGet Package Manager | Manage NuGet Packages for Solution然后添加DevExpress.Wpf.Grid NuGet包。 4. 选择GridControl然后调用它的Quick Actions快捷操作菜单单击Bind to a Data Source来启动Items Source Wizard项目源向导 5. 选择一个数据源 选择要在GridControl中显示的表 选择Simple Binding模型。 确保启用了CRUD选项 选择View Model选项在View Model中生成数据绑定代码。确认MainViewModel类被选择为View Model 6. Items Source Wizard项目源向导生成以下代码 MainView.xaml dxg:GridControl x:Namegrid AutoGenerateColumnsAddNew EnableSmartColumnsGenerationTrue ItemsSource{Binding ItemsSource} RestoreStateKeyFieldNameOrderId RestoreStateOnSourceChangeTrue dxg:GridControl.TotalSummary dxg:GridSummaryItem AlignmentRight SummaryTypeCount/ /dxg:GridControl.TotalSummary dxg:GridControl.InputBindings KeyBinding Command{Binding View.Commands.DeleteFocusedRow, ElementNamegrid} KeyDelete/ /dxg:GridControl.InputBindings dxg:GridControl.View dxg:TableView NewItemRowPositionTop ShowUpdateRowButtonsOnCellEditorOpen ValidateRowCommand{Binding ValidateRowCommand} ValidateRowDeletionCommand{Binding ValidateRowDeletionCommand} DataSourceRefreshCommand{Binding DataSourceRefreshCommand} ShowFixedTotalSummaryTrue/ /dxg:GridControl.View dxg:GridColumn FieldNameOrderId IsSmartTrue ReadOnlyTrue/ dxg:GridColumn FieldNameCustomerId IsSmartTrue/ dxg:GridColumn FieldNameEmployeeId IsSmartTrue/ dxg:GridColumn FieldNameOrderDate IsSmartTrue/ dxg:GridColumn FieldNameRequiredDate IsSmartTrue/ dxg:GridColumn FieldNameShippedDate IsSmartTrue/ dxg:GridColumn FieldNameShipVia IsSmartTrue/ dxg:GridColumn FieldNameFreight IsSmartTrue/ dxg:GridColumn FieldNameShipName IsSmartTrue/ dxg:GridColumn FieldNameShipAddress IsSmartTrue/ dxg:GridColumn FieldNameShipCity IsSmartTrue/ dxg:GridColumn FieldNameShipRegion IsSmartTrue/ dxg:GridColumn FieldNameShipPostalCode IsSmartTrue/ dxg:GridColumn FieldNameShipCountry IsSmartTrue/ /dxg:GridControl MainViewModel.cs using DevExpress.Mvvm; using System; using WPF_DataGrid_GetStarted.Models; using DevExpress.Mvvm.DataAnnotations; using System.Linq; using System.Collections.Generic; using DevExpress.Mvvm.Xpf;namespace WPF_DataGrid_GetStarted.ViewModels { public class MainViewModel : ViewModelBase { NorthwindEntities _Context; IListOrder _ItemsSource; public IListOrder ItemsSource { get { if (_ItemsSource null !DevExpress.Mvvm.ViewModelBase.IsInDesignMode) { _Context new NorthwindEntities(); _ItemsSource _Context.Orders.ToList(); } return _ItemsSource; } } [Command] public void ValidateRow(RowValidationArgs args) { var item (Order)args.Item; if (args.IsNewItem) _Context.Orders.Add(item); _Context.SaveChanges(); } [Command] public void ValidateRowDeletion(ValidateRowDeletionArgs args) { var item (Order)args.Items.Single(); _Context.Orders.Remove(item); _Context.SaveChanges(); } [Command] public void DataSourceRefresh(DataSourceRefreshArgs args) { _ItemsSource null; _Context null; RaisePropertyChanged(nameof(ItemsSource)); } } } MainViewModel.vb Imports DevExpress.Mvvm Imports System Imports WPF_DataGrid_GetStarted.Models Imports DevExpress.Mvvm.DataAnnotations Imports System.Linq Imports System.Collections.Generic Imports DevExpress.Mvvm.XpfNamespace WPF_DataGrid_GetStarted.ViewModels Public Class MainViewModel Inherits ViewModelBase Private _Context As NorthwindEntities Private _ItemsSource As IList(Of Order) Public ReadOnly Property ItemsSource As IList(Of Order) Get If _ItemsSource Is Nothing AndAlso Not DevExpress.Mvvm.ViewModelBase.IsInDesignMode Then _Context New NorthwindEntities() _ItemsSource _Context.Orders.ToList() End If Return _ItemsSource End Get End Property Command Public Sub ValidateRow(ByVal args As RowValidationArgs) Dim item CType(args.Item, Order) If args.IsNewItem Then _Context.Orders.Add(item) _Context.SaveChanges() End Sub Command Public Sub ValidateRowDeletion(ByVal args As ValidateRowDeletionArgs) Dim item CType(args.Items.Single(), Order) _Context.Orders.Remove(item) _Context.SaveChanges() End Sub Command Public Sub DataSourceRefresh(ByVal args As DataSourceRefreshArgs) _ItemsSource Nothing _Context Nothing RaisePropertyChanged(NameOf(ItemsSource)) End SubEnd Class End Namespace 这段代码启用CRUD操作为所有数据源字段生成列并在固定的汇总面板中显示总行数。 7. 运行项目 更多DevExpress线上公开课、中文教程资讯请上中文网获取
http://www.hkea.cn/news/14569135/

相关文章:

  • node做网站后台西安企业模板建站
  • 石家庄网推公司郑州seo顾问
  • 东莞网站建设求职简历网站设置右击不了如何查看源代码
  • 东莞建网站的公查公司的网站有哪些
  • 网站建设与管理知识点互联网保险公司有哪几家
  • 微网站建设正规公司宿州高端网站建设公司哪家好
  • 服装网站网络建设和硬件资源商贸公司起名大全最新
  • 怎么做网站的浏览量常德网站开发网站运营
  • 自己架设服务器做网站个人网站 备案
  • 怎么做公司宣传网站岳阳网站建设收费标准
  • 做电商网站的上海公司手机人才网
  • asp网站制作教程重庆个人网站建设
  • 关于 门户网站 建设 请示信誉好的低价网站建设
  • 东莞品牌型网站建设科技类公司网站设计
  • 珠宝公司网站模版亚马逊aws wordpress
  • 网站权重分析域名有了怎么建设网站
  • 简单的seo网站优化排名在线房产网
  • 生活服务网站开发与设计网络营销师培训费用是多少
  • 在萍乡谁可以做网站ip做网站
  • 东湖网站建设福州网站开发si7.cc
  • 高端网站开发 金蝶wordpress资源模板
  • 免费发布信息的平台奉化seo页面优化外包
  • 自创网站怎么赚钱wordpress div layer
  • 广州 网站 设计乡下房屋室内装修
  • 做网站需要执照吗济南网站制作搜到
  • 网站和微信 微网站解决方案网站后台统计怎么启动啊
  • 海淀做网站设计的公司天津网站建设索王道下拉
  • tp5手机网站开发网站改版方案流程
  • 廊坊论坛网站建设ftp客户端软件
  • 做黄页网站要告我dedecms免费模板