随笔分类 -  WPF

WPF
摘要:首先要继承INotifyPropertyChanged 简单方式在赋值的时候调用PropertyChanged namespace WpfApp1 { public class MainViewModel:INotifyPropertyChanged { public MyCommand ShowC 阅读全文
posted @ 2022-09-04 10:31 xxxyz 阅读(197) 评论(0) 推荐(0)
摘要:使用Command可以实现UI层跟业务层分离,不必在UI层定义事件方法,近而减少耦合。 下一章是关于内容变更在界面上重新展示。 界面展示_UI层 <Window x:Class="WpfApp1.Window5" xmlns="http://schemas.microsoft.com/winfx/2 阅读全文
posted @ 2022-09-03 09:55 xxxyz 阅读(221) 评论(0) 推荐(0)
摘要:<Window x:Class="WpfApp1.Window4" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/x 阅读全文
posted @ 2022-08-28 21:59 xxxyz 阅读(114) 评论(0) 推荐(0)
摘要:<Window x:Class="WpfApp1.Window3" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/x 阅读全文
posted @ 2022-08-28 21:31 xxxyz 阅读(53) 评论(0) 推荐(0)
摘要:【WPF】三、控件模板 阅读全文
posted @ 2022-08-27 21:13 xxxyz 阅读(27) 评论(0) 推荐(0)
摘要:<Window x:Class="WpfApp1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/200 阅读全文
posted @ 2022-08-26 22:09 xxxyz 阅读(42) 评论(0) 推荐(0)
摘要:<Window x:Class="WpfApp1.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/x 阅读全文
posted @ 2022-08-26 22:07 xxxyz 阅读(36) 评论(0) 推荐(0)