开发者

Visual Studio 2010 and WPF: Creating a special template

开发者 https://www.devze.com 2023-01-12 09:09 出处:网络
Is it possible to do the following in VS 2010: Create a new template (or something sim开发者_如何学Goilar) so I get a XAML - view and a view model, completely with the INotifyPropertyChanged impleme

Is it possible to do the following in VS 2010:

  • Create a new template (or something sim开发者_如何学Goilar) so I get a XAML - view and a view model, completely with the INotifyPropertyChanged implementation and a view model invoker, all in one?

  • Create a project template that gives me a view and a full view model in App.OnStartup(...) instead of this less - than - optimal "set a startup view in App.xaml"?


I use MVVM light for my Silverlight, WPF and Windows Phone 7 applications. The MVVM light is a very lightweight framework to do MVVM but gives you a nice set of features, including Templates to start the projects. You can find more info on this on: Silverlight 4: Detect browser F5 / refresh and X / Close

And at stackoverflow there is a special tag "MVVM-light" for questions about this framework.

0

精彩评论

暂无评论...
验证码 换一张
取 消