WPF学习日记——Window的DataContext绑定ViewModel
2020-12-13 05:22
标签:blog http os strong io width art re 1、全局的ViewModel绑定: a)设定全局的ViewModel(App.xaml中): b)绑定全局的ViewModel(MainWindow中): 2、单独的ViewModel绑定(MainWindow中): WPF学习日记——Window的DataContext绑定ViewModel,搜素材,soscw.com WPF学习日记——Window的DataContext绑定ViewModel 标签:blog http os strong io width art re 原文地址:http://www.cnblogs.com/zuixieyang/p/3865678.html1
1
3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4 xmlns:local="clr-namespace:MyTest"
5 Title="MainWindow" Height="600" Width="850" WindowStartupLocation="CenterScreen"
6 DataContext="{DynamicResource mainVM}">
7 1
9
上一篇:执行一条cmd命令的window.bat 批处理代码:
下一篇:qt mvc2
文章标题:WPF学习日记——Window的DataContext绑定ViewModel
文章链接:http://soscw.com/essay/30835.html