MVVM模式和联系路由命令? [英] MVVM pattern and contact routing command ?

查看:81
本文介绍了MVVM模式和联系路由命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,


我正在建立一个表面应用程序,我使用MVVM模式

我正在使用Surface例程的Surface按钮如下所示:


命令 =" { x 静态
local
QuizzCommands 。开始}"
使用类例程如下:

 
public static class QuizzCommands
{
public 静态 RoutedCommand GoToNext = new RoutedCommand();
public static RoutedCommand Start = new RoutedCommand();

}

解决方案

你去...


http://joyfulwpf.blogspot.com/2009/05/mvvm-invoking-command-on-attached-event.html


Dear all,

I am building a surface applciation where I have use the MVVM pattern
I am using the Command routine for Surface button as follow :

Command="{x:Static local:QuizzCommands.Start}" which use a class for the routine as below:

public static class QuizzCommands
  {
    public static RoutedCommand GoToNext = new RoutedCommand();
    public static RoutedCommand Start = new RoutedCommand();

  }

解决方案

there you go...

http://joyfulwpf.blogspot.com/2009/05/mvvm-invoking-command-on-attached-event.html


这篇关于MVVM模式和联系路由命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆