登录
首页 » C# » WPF+MVVM+DataGrid增删改查

WPF+MVVM+DataGrid增删改查

于 2021-05-06 发布
0 488
下载积分: 1 下载次数: 1

代码说明:

通过一个例子来解释MVVM 让我使用MVVM创建一个简单的用户管理应用程序。 Mvvm DataGrid高级使用案例,实现增删改查功能 此项目解压后,可以直接运行 如果你要自己写项目,需要在NuGet中下载System.Windows.Interactivity.WPF 下载步骤:工具->NuGet包管理器->管理解决方案的NuGet程序包->在搜索栏中输入Windows.Interactivity ->然后查找->选择System.Windows.Interactivity.WPF->安装到此项目中

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • C++ 文本分类源代码-C++ 文本分类 信息检索 中文分词
    C 文本分类源代码-C 文本分类 信息检索 中文分词 信息检索课程的课设资源 不错 可以看看
    2019-06-04下载
    积分:1
  • 用于学习链表文件操作
    链表文件操作
    2014-06-27下载
    积分:1
  • C# 套打Demo
    套打Demo 【核心代码】using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Drawing.Printing;namespace Print_Demo{ public partial class Form1 : Form { public PrintDocument printDt = new PrintDocument(); //打印文档对象 Font printFont; //打印使用的字体 public Form1() { InitializeComponent(); } void printDt_PrintPage(object sender, PrintPageEventArgs e) { float pointX = 10; float pointY = 10; e.Graphics.DrawString("打印内容", new Font("宋体", 16F), Brushes.Black, pointX 60, pointY); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 26,pointX 300,pointY 26); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 35); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 56, pointX 300, pointY 56); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 65); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 86, pointX 300, pointY 86); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 95); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 116, pointX 300, pointY 116); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 125); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 146, pointX 300, pointY 146); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 155); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 176, pointX 300, pointY 176); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 185); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 206, pointX 300, pointY 206); e.Graphics.DrawString("检测结果", printFont, Brushes.Black, pointX, pointY 233); e.Graphics.DrawString("通过", new Font("宋体",22F,FontStyle.Bold), Brushes.Black, pointX 90, pointY 225); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 265, pointX 300, pointY 265); e.Graphics.DrawString("单位名称", printFont, Brushes.Black, pointX, pointY 275); } private void Form1_Load(object sender, EventArgs e) { printDt.PrintPage = new PrintPageEventHandler(printDt_PrintPage); printFont = new Font("宋体", 12F); } private void btnPrint_Click(object sender, EventArgs e) { //PrintDialog printDlg = new PrintDialog(); //printDlg.Document = printDt; //printDlg.AllowPrintToFile = true; //printDlg.AllowCurrentPage = true; //printDlg.AllowSelection = true; //printDlg.ShowDialog(); //printDlg.ShowDialog(); printDt.Print(); } private void btnLook_Click(object sender, EventArgs e) { PrintPreviewDialog printPreview = new PrintPreviewDialog(); printPreview.PrintPreviewControl.Document = printDt; printPreview.ShowDialog(this); } }}
    2021-05-06下载
    积分:1
  • 心电信号检测算法.rar
    ECG C程序,亲测能用。主要计算心率,HRV,VC程序,内有滤波等函数
    2019-08-29下载
    积分:1
  • NeatUpload-1.2.32 实例+源码下载
    NeatUpload-1.2.32 实例+源码下载
    2015-04-10下载
    积分:1
  • 北邮C++学习课件
    北邮C 学习课件
    2021-05-06下载
    积分:1
  • Nvelocity 模板引擎使用实例
    Nvelocity 模板引擎使用实例
    2014-07-19下载
    积分:1
  • stm32单片机循迹程序(源码+原理图+GPIO分配文档)
    【实例简介】stm32f103c8t6循迹小车程序,是一个不错的寻迹避障资料
    2021-05-20 14:39:25下载
    积分:1
  • 用Ninject 实现webapi ApiController 示例源码
    用Ninject 实现webapi ApiController 示例源码
    2014-06-07下载
    积分:1
  • 基于八叉树分解的三维重建
    基于八叉树分解的三维重建,原始数据需要有法向量.
    2019-06-26下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载