| |
browse.develop.com
Browse.develop.com is a community that was established to collect and
organize valuable web information. Our technical staff have selected and
indexed information and courses that they feel will help you stay
current on best practices across the SDLC.
|
1 Articles match "Helper","WPF"
| Related DevelopMentor Courses | MORE | | Essential Silverlight 5 Training You'll get answers to these questions: What is Silverlight, and when should I use it in preference to HTML5 or WPF? Well, Silverlight's keyboard handling is far less capable than that of WPF; it has to cope with multiple browsers running on multiple operating systems and has to be more constrained due to the security restrictions of the plug-in. It also surveys a few other features such as shared code projected to the client, validation attributes, and the XAML helper classes. ? NOTE: This class runs using the latest Release Candidate build of Silverlight 5. DevelopMentor Courses - Wednesday, February 22, 2012 |
24 Articles match "Helper","WPF"
| The Latest from DevelopMentor | MORE | | Using Ninject with WCF Services In an ASP.NET MVC application, it is possible to use repositories directly from controllers, but it may be desirable to place a WCF services façade over the data access layer, so that other kinds of clients, such as Silverlight or WPF, won’t directly access the database. For that reason, it’s convenient to use a helper class responsible for initializing both service host and client. Disclaimer: I have to credit my friend, Pete Young, for coming up with a helper that does this same sort of thing.). Download the code for this post. To< NinjectServiceHost >(); } }. Tony and Zuzana's World - Monday, October 24, 2011 Simple MVVM Toolkit versus MVVM Light Toolkit Both Simple MVVM and MVVM Light toolkits support WPF, Silverlight and Windows Phone clients. One is an assortment of small samples, each illustrating a particular feature or aspect of the toolkit: Property Association, Enums, Async, Dependency Injection, Messaging, Navigation, and RIA Services, as well as Getting Started samples for Silverlight, WPF and Windows Phone. Speaking of ease of use, the ViewModelBase class in Simple MVVM has helper methods for sending and receiving messages. Simple MVVM Toolkit would fall into the latter category. Platforms. Support. Usability. Tony and Zuzana's World - Saturday, April 23, 2011 Unit Testing with services in MVVM Helpers The unit testing framework makes no guarantee of the Synchronization Context being present however – unlike WPF. NET Code MVVM WPFIn the previous post I showed how you can easily replace services within your application to fit whatever your goals are. This is also a requirement when you would like to unit test your application, but there’s a slightly different twist to it. As a simple example, let’s use the little demo app we built to play with service replacement. Are you sure you want to proceed?" , MessageButtons.YesNo); if (result == MessageResult.Yes). {. TestMethod()]. Mark's Blog of Random Thoughts - Wednesday, March 9, 2011 | -
| The Best from DevelopMentor | MORE | - WPF MVVM Helper Library (WPF + MVVM = testability)
There's been a lot of talk about the Model-View-ViewModel pattern recently and it's usage around the WPF and Silverlight technology stack. When teaching WPF, I always introduce students to MVVM as part of the Essential WPF class, it's an incredibly useful pattern that really separates the UI from the code behind behavior. bit of history -- the library is really just a place where I dump all kinds of useful utility classes, helpers, wrappers, etc. As I said, this is a collection of helpers I've built and reused over the years doing WPF consulting and instruction. - Replacing Services in MVVM Helpers
MVVM Helpers provides this capability using the Managed Extensibility Framework (MEF) which is built into.NET 4.0 MVVM Helpers automatically registers the current AppBase directory (where the.EXE loads from) as the primary catalog directory and puts all the JulMar assemblies at the end of the search list. MessageResult Show( string title, string message, MessageButtons buttons); } This is then implemented internally by MVVM Helpers as a MessageBox.Show. NET Code MVVM WPFand provided on [link] for.NET 3.5. In addition, one of the features added to MVVMHelpers 4.03 - MVVM: Views and ViewModels
Here's the two links in case you didn't get them before: MVVM Helpers Distribution. Views are the UI presentation of data - in the case of a WPF/Silverlight application this is most commonly the XAML and XAML code behind files (they are considered a single element together). That way, my ViewModel sticks with base (non-WPF) types. This is necessary under WPF 3.5 This is one of three primary VM classes in the MVVM helper library. Tags: NET Code MVVM WPF Project Template. Ok, so once you have these installed, what can you do with them? Dependencies. - Using the Message Mediator Service in MVVM Helpers
One of the services exposed in the MVVM Helpers library is a Message Mediator. actually work in all kinds of fields and technologies, but WPF has a special place in my heart – and it turns out this service is pretty useful for GUI applications to enable loose-coupling between elements, particularly when you are relying on other design patterns such as Model-View-ViewModel (MVVM). First, I am going to create a new WPF 4.0 In this pattern, we use a third-party object (the “mediator”) to negotiate communication between the interested parties. 3: ///. will be. 6: ///. 12: ///. - Using Ninject with WCF Services
In an ASP.NET MVC application, it is possible to use repositories directly from controllers, but it may be desirable to place a WCF services façade over the data access layer, so that other kinds of clients, such as Silverlight or WPF, won’t directly access the database. For that reason, it’s convenient to use a helper class responsible for initializing both service host and client. Disclaimer: I have to credit my friend, Pete Young, for coming up with a helper that does this same sort of thing.). Download the code for this post. To< NinjectServiceHost >(); } }. Tony and Zuzana's World - Monday, October 24, 2011 - Simple MVVM Toolkit versus MVVM Light Toolkit
Both Simple MVVM and MVVM Light toolkits support WPF, Silverlight and Windows Phone clients. One is an assortment of small samples, each illustrating a particular feature or aspect of the toolkit: Property Association, Enums, Async, Dependency Injection, Messaging, Navigation, and RIA Services, as well as Getting Started samples for Silverlight, WPF and Windows Phone. Speaking of ease of use, the ViewModelBase class in Simple MVVM has helper methods for sending and receiving messages. Simple MVVM Toolkit would fall into the latter category. Platforms. Support. Usability. Tony and Zuzana's World - Saturday, April 23, 2011 - Type-Safe Two-Way Data Binding with INotifyPropertyChanged
Anyone who’s developed a UI application using Windows Forms, WPF or Silverlight is probably aware that you have to implement the INotifyPropertyChanged interface to get two-way data binding between UI elements and an underlying data source. My Simple MVVM Toolkit provides base classes that include convenient helper methods for firing the PropertyChanged event in a type-safe manner. To solve this, it’s possible to write a helper method that accepts a lambda expression instead of a string. You can download the code for this blog post here. null ). Body).Member.Name; Tony and Zuzana's World - Tuesday, January 25, 2011 %>
| | |