資源簡介
通過一個例子來解釋MVVM 讓我使用MVVM創(chuàng)建一個簡單的用戶管理應用程序。
Mvvm DataGrid高級使用案例,實現增刪改查功能
此項目解壓后,可以直接運行
如果你要自己寫項目,需要在NuGet中下載System.Windows.Interactivity.WPF
下載步驟:工具->NuGet包管理器->管理解決方案的NuGet程序包->在搜索欄中輸入Windows.Interactivity
->然后查找->選擇System.Windows.Interactivity.WPF->安裝到此項目中
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Configuration;
using?System.Data;
using?System.Linq;
using?System.Threading.Tasks;
using?System.Windows;
namespace?MvvmDataGridHandle
{
????///?
????///?App.xaml?的交互邏輯
????///?
????public?partial?class?App?:?Application
????{
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2020-12-28?10:35??MvvmDataGridHandle\
?????目錄???????????0??2020-12-26?15:26??MvvmDataGridHandle\.vs\
?????目錄???????????0??2020-12-26?15:26??MvvmDataGridHandle\.vs\MvvmDataGridHandle\
?????目錄???????????0??2020-12-26?15:26??MvvmDataGridHandle\.vs\MvvmDataGridHandle\v16\
?????文件???????76800??2020-12-28?10:35??MvvmDataGridHandle\.vs\MvvmDataGridHandle\v16\.suo
?????文件?????????189??2020-12-26?15:26??MvvmDataGridHandle\App.config
?????文件?????????390??2020-12-26?15:26??MvvmDataGridHandle\App.xaml
?????文件?????????345??2020-12-26?15:26??MvvmDataGridHandle\App.xaml.cs
?????目錄???????????0??2020-12-26?15:26??MvvmDataGridHandle\bin\
?????目錄???????????0??2020-12-28?09:32??MvvmDataGridHandle\bin\Debug\
?????文件???????91648??2013-03-09?18:25??MvvmDataGridHandle\bin\Debug\Microsoft.ex
?????文件???????76763??2013-03-09?18:25??MvvmDataGridHandle\bin\Debug\Microsoft.ex
?????文件???????17920??2020-12-28?10:35??MvvmDataGridHandle\bin\Debug\MvvmDataGridHandle.exe
?????文件?????????189??2020-12-26?15:26??MvvmDataGridHandle\bin\Debug\MvvmDataGridHandle.exe.config
?????文件???????60928??2020-12-28?10:35??MvvmDataGridHandle\bin\Debug\MvvmDataGridHandle.pdb
?????文件???????39936??2013-03-09?18:25??MvvmDataGridHandle\bin\Debug\System.Windows.Interactivity.dll
?????文件???????62128??2013-03-09?18:25??MvvmDataGridHandle\bin\Debug\System.Windows.Interactivity.xm
?????目錄???????????0??2020-12-26?15:31??MvvmDataGridHandle\Common\
?????文件????????1018??2020-12-26?15:31??MvvmDataGridHandle\Common\DelegateCommands.cs
?????文件????????2860??2020-12-28?10:34??MvvmDataGridHandle\MainWindow.xaml
?????文件?????????664??2020-12-26?15:26??MvvmDataGridHandle\MainWindow.xaml.cs
?????目錄???????????0??2020-12-28?09:31??MvvmDataGridHandle\Model\
?????文件????????1519??2020-12-28?09:31??MvvmDataGridHandle\Model\User.cs
?????文件????????5103??2020-12-26?15:55??MvvmDataGridHandle\MvvmDataGridHandle.csproj
?????文件????????1140??2020-12-26?15:26??MvvmDataGridHandle\MvvmDataGridHandle.sln
?????目錄???????????0??2020-12-26?15:26??MvvmDataGridHandle\obj\
?????目錄???????????0??2020-12-28?10:35??MvvmDataGridHandle\obj\Debug\
?????文件?????????214??2020-12-26?15:26??MvvmDataGridHandle\obj\Debug\.NETfr
?????文件????????2393??2020-12-28?09:32??MvvmDataGridHandle\obj\Debug\App.g.cs
?????文件????????2393??2020-12-28?09:32??MvvmDataGridHandle\obj\Debug\App.g.i.cs
?????文件?????????424??2020-12-28?10:21??MvvmDataGridHandle\obj\Debug\DesignTimeResolveAssemblyReferences.cache
............此處省略41個文件信息
評論
共有 條評論