随笔分类 - WPF
【WPF】七、通知更改INotifyPropertyChanged
摘要:首先要继承INotifyPropertyChanged 简单方式在赋值的时候调用PropertyChanged namespace WpfApp1 { public class MainViewModel:INotifyPropertyChanged { public MyCommand ShowC
【WPF】六、WPF命令(ICommand)
摘要:使用Command可以实现UI层跟业务层分离,不必在UI层定义事件方法,近而减少耦合。 下一章是关于内容变更在界面上重新展示。 界面展示_UI层 <Window x:Class="WpfApp1.Window5" xmlns="http://schemas.microsoft.com/winfx/2
【WPF】五、WPF绑定
摘要:<Window x:Class="WpfApp1.Window4" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/x
【WPF】四、数据模板
摘要:<Window x:Class="WpfApp1.Window3" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/x
【WPF】二、样式基础
摘要:<Window x:Class="WpfApp1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/200
【WPF】一、布局基础
摘要:<Window x:Class="WpfApp1.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/x