WPF的数据绑定——控件与类成员及类对象成员双向绑定

上传者: mandylover | 上传时间: 2022-05-13 21:00:44 | 文件大小: 60KB | 文件类型: RAR
最近研究WPF,遇到并解决了一些难题(至少是初学者的入门难题),包括: 1)控件如何绑定数据? 2)控件与数据如何双向绑定? 3)控件如何绑定类成员变量? 4)控件如何绑定类对象的成员变量? 5)每次加载页面时,都会重新初始化,如何保持数据不变?

文件下载

资源详情

[{"title":"( 38 个子文件 60KB ) WPF的数据绑定——控件与类成员及类对象成员双向绑定","children":[{"title":"TestBinding","children":[{"title":"TestBinding.sln <span style='color:#111;'> 875B </span>","children":null,"spread":false},{"title":"TestBinding.suo <span style='color:#111;'> 28.50KB </span>","children":null,"spread":false},{"title":"TestBinding","children":[{"title":"TestViewMode.cs <span style='color:#111;'> 3.14KB </span>","children":null,"spread":false},{"title":"App.xaml.cs <span style='color:#111;'> 307B </span>","children":null,"spread":false},{"title":"MainWindow.xaml.cs <span style='color:#111;'> 724B </span>","children":null,"spread":false},{"title":"Page1.xaml.cs <span style='color:#111;'> 898B </span>","children":null,"spread":false},{"title":"MainWindow.xaml <span style='color:#111;'> 823B </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"Settings.settings <span style='color:#111;'> 201B </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 2.80KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 2.14KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false}],"spread":true},{"title":"App.xaml <span style='color:#111;'> 322B </span>","children":null,"spread":false},{"title":"Page1.xaml <span style='color:#111;'> 850B </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"x86","children":[{"title":"Debug","children":[{"title":"Page1.g.i.cs <span style='color:#111;'> 3.61KB </span>","children":null,"spread":false},{"title":"Page1.g.cs <span style='color:#111;'> 3.61KB </span>","children":null,"spread":false},{"title":"TestBinding.csproj.FileListAbsolute.txt <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"TempPE","children":[{"title":"Properties.Resources.Designer.cs.dll <span style='color:#111;'> 4.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"TestBinding_MarkupCompile.cache <span style='color:#111;'> 317B </span>","children":null,"spread":false},{"title":"MainWindow.g.cs <span style='color:#111;'> 2.95KB </span>","children":null,"spread":false},{"title":"TestBinding_MarkupCompile.i.cache <span style='color:#111;'> 316B </span>","children":null,"spread":false},{"title":"TestBinding.g.resources <span style='color:#111;'> 2.57KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.27KB </span>","children":null,"spread":false},{"title":"TestBinding.csproj.GenerateResource.Cache <span style='color:#111;'> 917B </span>","children":null,"spread":false},{"title":"App.g.i.cs <span style='color:#111;'> 2.26KB </span>","children":null,"spread":false},{"title":"Page1.baml <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false},{"title":"TestBinding.pdb <span style='color:#111;'> 43.50KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 9.60KB </span>","children":null,"spread":false},{"title":"TestBinding.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"TestBinding.exe <span style='color:#111;'> 12.50KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"App.g.cs <span style='color:#111;'> 2.26KB </span>","children":null,"spread":false},{"title":"MainWindow.g.i.cs <span style='color:#111;'> 2.95KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"TestBinding.csproj <span style='color:#111;'> 4.47KB </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"Debug","children":[{"title":"TestBinding.vshost.exe <span style='color:#111;'> 11.33KB </span>","children":null,"spread":false},{"title":"TestBinding.pdb <span style='color:#111;'> 43.50KB </span>","children":null,"spread":false},{"title":"TestBinding.exe <span style='color:#111;'> 12.50KB </span>","children":null,"spread":false},{"title":"TestBinding.vshost.exe.manifest <span style='color:#111;'> 490B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}]

评论信息

  • qq_36126487 :
    真垃圾,骗积分的吧
    2018-11-09
  • firehuohua :
    能不能把这该死的js关了,老是逼人写评论
    2017-09-29

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明