| |
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.
|
21 Articles match "Helper","Sample"
| The Latest from DevelopMentor | MORE | | Understanding Text Encoding in ASP.NET MVC (ASP.NET MVC Foundations Series) On the other hand, if you’re building a CMS or utility helper method, you do not want to filter out the HTML a user might type. In order to demonstrate these concepts, I created a working sample app here: [link]. You can download the code from the sample as well. Then we can use the helper method: @Html.Raw(cmsSectionData). Finally, if you are writing little helper methods to make your views cleaner (a good idea!), Check out the Helpers section of the demo to see this in action. You need to be very careful about how you redisplay their input. Michael C. Kennedy's Weblog - Monday, October 15, 2012 Simple MVVM Toolkit versus MVVM Light Toolkit Presently MVVM Light requires a manual installation , but the download for Simple MVVM is an installer which gives you the assembly binaries, external libraries, samples and source code. Simple MVVM Toolkit, on the other hand, has Documentation that includes the following topics: Introduction , Features , Prerequisites , Download Contents , Installation , Samples , and a Programming Reference. That is why I have focused a great deal of my energy on building two categories of sample applications that are installed with the Simple MVVM Toolkit. Platforms. Support. Usability. Tony and Zuzana's World - Saturday, April 23, 2011 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. Hopefully that gives some background on service resolution – the full sample is located at [link]. Happy Coding! Mark's Blog of Random Thoughts - Wednesday, March 9, 2011 | -
| The Best from DevelopMentor | MORE | - WPF MVVM Helper Library (WPF + MVVM = testability)
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. There are some helper classes implemented through interfaces and a (very) simple ServiceProvider to locate them: IErrorVisualizer - to display errors (title + message). Just remember I put no guarentee on this code - consider it a sample for you to do whatever you like with. >>. that I tend to use a lot. So, what all is here? - 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. Hopefully that gives some background on service resolution – the full sample is located at [link]. Happy Coding! - Using the Message Mediator Service in MVVM Helpers
One of the services exposed in the MVVM Helpers library is a Message Mediator. As with most things in MVVM Helpers, the above interface has a private, internal implementation that is used by default – you an override services by supplying your own implementation of the above interface in your code. project in Visual Studio 2010 – I’ll name it MessageMediatorExamples for clarity (the code is at the end of the article if you’d like to download the sample). In this pattern, we use a third-party object (the “mediator”) to negotiate communication between the interested parties. - Simple MVVM Toolkit Improvements: Documentation, Features, Sample Apps
I’ve released a new version of my Simple MVVM Toolkit for Silverlight that has improved documentation, a bunch of new features and additional sample applications. And many of those other toolkits are woefully lacking in the way of documentation and code samples. The initial version of my toolkit includes the following features: Helper classes , Visual Studio templates , code snippets. Sample applications with step-by-step instructions. have spent quite a bit of time fleshing out documentation for the toolkit, and the download includes several sample applications. Tony and Zuzana's World - Sunday, January 23, 2011 - Understanding Text Encoding in ASP.NET MVC (ASP.NET MVC Foundations Series)
On the other hand, if you’re building a CMS or utility helper method, you do not want to filter out the HTML a user might type. In order to demonstrate these concepts, I created a working sample app here: [link]. You can download the code from the sample as well. Then we can use the helper method: @Html.Raw(cmsSectionData). Finally, if you are writing little helper methods to make your views cleaner (a good idea!), Check out the Helpers section of the demo to see this in action. You need to be very careful about how you redisplay their input. Michael C. Kennedy's Weblog - Monday, October 15, 2012 - Simple MVVM Toolkit versus MVVM Light Toolkit
Presently MVVM Light requires a manual installation , but the download for Simple MVVM is an installer which gives you the assembly binaries, external libraries, samples and source code. Simple MVVM Toolkit, on the other hand, has Documentation that includes the following topics: Introduction , Features , Prerequisites , Download Contents , Installation , Samples , and a Programming Reference. That is why I have focused a great deal of my energy on building two categories of sample applications that are installed with the Simple MVVM Toolkit. Platforms. Support. Usability. Tony and Zuzana's World - Saturday, April 23, 2011 - Article: Avoiding 5 Common Pitfalls in Unit Testing
To = to, From = from, Body = "Sample", Subject = "test" }; mail.SetFormat( Formats.Html ); mockMailServer.Send( mail ); } return from; }. However, without that helper, our test would have become an unreadable rat's nest. There is the introduction of helper methods in the unit test. Llewellyn Falco and I recently wrote an article for DevelopMentor's Developments newsletter entitled Avoiding 5 Common Pitfalls in Unit Testing. You can read it at the DevelopMentor website: [link]. I've republished here for my readers. Enjoy! Avoiding 5 Common Pitfalls in Unit Testing. Kennedy. Michael C. Kennedy's Weblog - Thursday, August 6, 2009 %>
| | |