zoukankan      html  css  js  c++  java
  • WPF Prism v4 MVVM

    1.Install-package Prism -v 4

    2.

    1 using Microsoft.Practices.Prism;
    2 using Microsoft.Practices.Prism.Commands;
    3 using Microsoft.Practices.Prism.Events;
    4 using Microsoft.Practices.Prism.Interactivity;
    5 using Microsoft.Practices.Prism.Modularity;
    6 using Microsoft.Practices.Prism.Logging;
    7 using Microsoft.Practices.Prism.Regions;
    8 using Microsoft.Practices.Prism.ViewModel;

    3.

    private DelegateCommand<object> clickCmd;
            public DelegateCommand<object> ClickCmd
            {
                get
                {
                    if(clickCmd==null)
                    {
                        clickCmd = new DelegateCommand<object>(ClickCmdExecuted);
                    }
                    return clickCmd;
                }
            }
    
            private void ClickCmdExecuted(object obj)
            {
                System.Windows.MessageBox.Show(obj.ToString());
            }
  • 相关阅读:
    初识jQuery(2)
    初识jQuery(1)
    document和javaScript内置对象
    location
    history
    window对象
    注释、语法约定、函数和作用域
    运算符和typeof
    string
    数据恢复
  • 原文地址:https://www.cnblogs.com/Fred1987/p/14530265.html
Copyright © 2011-2022 走看看