| |
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.
|
51 Articles match "Sample"
See all articles with
"Sample"
| The Latest from Mark's Blog of Random Thoughts | MORE | | Replacing Services in MVVM Helpers In the sample I’m using the ViewModelCreator extension to bind the View and the ViewModel, but you could use your technique of preference – here’s my markup: In the new MainViewModel class, I’ll first derive it from the JulMar.Mvvm.ViewModel base class – I do this because that class exposes everything from it’s base SimpleViewModel , but also provides direct access to the service resolver through a Resolve method. The implementation provided in the sample code displays a notification dialog – where the IDisposable returned object closes the dialog for you. Happy Coding! Mark's Blog of Random Thoughts - Wednesday, March 9, 2011 Using the Message Mediator Service in MVVM Helpers 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). Since this post is about the mediator, I’ll leave the implementation of these to your imagination (or to looking at the final sample!). One of the services exposed in the MVVM Helpers library is a Message Mediator. This service implements the mediator design pattern which is used to enable objects to talk to each other without having any explicit knowledge of each other. they can be used in any.NET project type). 3: ///. Mark's Blog of Random Thoughts - Tuesday, February 22, 2011 MVVM Helpers 2.0 is live Here’s the sample if you want to peruse it: V2SampleApp.zip.… and available on codeplex in beta form: [link]. There are several new features in this release that I've been tinkering with for a while. First, I now use MEF to link things together. waited until.NET 4.0 was released to push this out because MEF is part of the framework now. If you don't want to take a dependency on it (in 3.5) then please stay with 1.06 which is also available. Managing Services with the Service Locator pattern + MEF. The advantage to MEF are several. First, you can easily add or replace services. Export ]. Mark's Blog of Random Thoughts - Friday, April 16, 2010 | | The Best from Mark's Blog of Random Thoughts | MORE | | WPF MVVM Helper Library (WPF + MVVM = testability) Just remember I put no guarentee on this code - consider it a sample for you to do whatever you like with. >>. 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. One of the things I give the students is a library to do MVVM - I also use it in my consulting work. that I tend to use a lot. So, what all is here? file -. Mark's Blog of Random Thoughts - Friday, April 17, 2009 Part 3: Shifting focus to the first available element in WPF didn't in the sample (or in my production app) but I could certainly see that being a common reality. We've seen how to programatically control focus and that's all great stuff, but one thing I like to do with WPF is see how much of the repetitive or UI-specific code I can move into the XAML and keep out of the code behind. We can use the FocusManager.FocusedElement property to shift focus in XAML but it only works when the element exists in the main XAML file. In my specific case, I have a wizard-style application which utilizes a TabControl to move between the pages. FocusTest.zip (17.88 Mark's Blog of Random Thoughts - Friday, September 12, 2008 MVVM: Views and ViewModels cf0 cf3 ///cf4 Sample ViewModel that wraps a Directory.par ??cf0 par ??} -->. ///. /// Sample ViewModel that wraps a Directory. ///. cf0 messageVisualizer.Show(cf7 "About File Explorer Sample"cf0 , cf7 "File Explorer Sample 1.0"cf0 messageVisualizer.Show( "About File Explorer Sample" , "File Explorer Sample 1.0" , MessageButtons.OK); }. }. ///. /// This method is invoked by the message mediator when a DirectoryViewModel is selected. ///. /// <param name="newDirectory"> DirectoryViewModel that is now active. Project Template. Dependencies. Views. Mark's Blog of Random Thoughts - Friday, January 22, 2010 | - Using Excel for VSTS Data Driven Testing
Let's start by stealing Kev's sample, hopefully he won't mind -- say I have a starship class with a FirePhotonTorpedo method: public class Enterprise. {. My sample Excel document has the following columns: ID. A colleague of mine, Kev Jones , has posted some information on using a detached SQL Server database for driving VSTS unit tests which works great if you need a full blown SQL implementation. However, if all you want is a simple data feed, you can also use an Excel file, and as it turns out, it's pretty easy to do. if (torpedosLeft < count). return torpedosLeft; }. }. - Replacing Services in MVVM Helpers
In the sample I’m using the ViewModelCreator extension to bind the View and the ViewModel, but you could use your technique of preference – here’s my markup: In the new MainViewModel class, I’ll first derive it from the JulMar.Mvvm.ViewModel base class – I do this because that class exposes everything from it’s base SimpleViewModel , but also provides direct access to the service resolver through a Resolve method. The implementation provided in the sample code displays a notification dialog – where the IDisposable returned object closes the dialog for you. Happy Coding! - Part 3: Shifting focus to the first available element in WPF
didn't in the sample (or in my production app) but I could certainly see that being a common reality. We've seen how to programatically control focus and that's all great stuff, but one thing I like to do with WPF is see how much of the repetitive or UI-specific code I can move into the XAML and keep out of the code behind. We can use the FocusManager.FocusedElement property to shift focus in XAML but it only works when the element exists in the main XAML file. In my specific case, I have a wizard-style application which utilizes a TabControl to move between the pages. FocusTest.zip (17.88 - Using the Message Mediator Service in MVVM Helpers
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). Since this post is about the mediator, I’ll leave the implementation of these to your imagination (or to looking at the final sample!). One of the services exposed in the MVVM Helpers library is a Message Mediator. This service implements the mediator design pattern which is used to enable objects to talk to each other without having any explicit knowledge of each other. they can be used in any.NET project type). 3: ///. - Adding Pause/Resume into SynchronizationContext based components
He asked if there was an easy way to modify the sample I presented, and it turns out that there is. About a year ago, I blogged on using the.NET 2.0 facility SynchronizationContext to create thread-aware components which could be hosted and would "do the right thing" for callbacks. Here's the Link to that post. Recently, I got an email from a reader who wanted to use that paradigm, but wanted to be able to suspend the operation for some period of time and then resume it later on. It essentially involves three steps: 1. In the AsyncStateData structure, add a ManualResetEvent object. Mark's Blog of Random Thoughts - Wednesday, January 17, 2007 - TSP++ 3.0 is now free!
Documentation and samples are all part of the image so have fun! Sales of the TSP++ products have steadily fallen over the past 5 years, so much so that I decided two years ago to release the 2.x product into the open-source community, and now I am doing the same for the server edition. The download is available here and requires a key to install it - use. J35M-3KXo-q60T. which will let you install the full product. Code Tapi - Part 3: Shifting focus to the first available element in WPF
didn't in the sample (or in my production app) but I could certainly see that being a common reality. We've seen how to programatically control focus and that's all great stuff, but one thing I like to do with WPF is see how much of the repetitive or UI-specific code I can move into the XAML and keep out of the code behind. We can use the FocusManager.FocusedElement property to shift focus in XAML but it only works when the element exists in the main XAML file. In my specific case, I have a wizard-style application which utilizes a TabControl to move between the pages. FocusTest.zip (17.88 %>
216 Articles match "Sample"
See all articles with
"Sample"
| The Latest from DevelopMentor | MORE | | Optimistic concurrency in MongoDB using.NET and C# Here’s the download for the source, library with the concurrent data context, and the sample app: MongoDB.Kennedy.zip. 'This article demonstrates a technique and supporting library for adding optimistic concurrency control to NoSQL databases and MongoDB in particular. Quickly, what is optimistic concurrency control? Ideally, all databases that allow concurrent access or disconnected access need to implement some form of concurrency control. This usually comes in two flavors: Pessimistic concurrency control. Optimistic concurrency control. Edit in memory. Nice huh? Conclusion. Michael C. Kennedy's Weblog - Monday, April 8, 2013 Understanding Map - Reduce Running the sample code produces output like this. Quite a few people seem to be intimidated by the concept of Map-Reduce. As it turns out Map-Reduce is actually quite simple and straightforward when you get to understand the basic principle. Basic principle The basic Map-Reduce consists of two steps. guess you are not going to be very surprised when I tell you that these steps are called Map and Reduce. Simple right? And the Reduce process takes the output of the Map process and combines/discards data to produce the result. Again pretty simple right? simple example. 3: public Order(). The Problem Solver - Monday, December 3, 2012 Understanding Map - Reduce Running the sample code produces output like this. Quite a few people seem to be intimidated by the concept of Map-Reduce. As it turns out Map-Reduce is actually quite simple and straightforward when you get to understand the basic principle. Basic principle The basic Map-Reduce consists of two steps. guess you are not going to be very surprised when I tell you that these steps are called Map and Reduce. Simple right? And the Reduce process takes the output of the Map process and combines/discards data to produce the result. Again pretty simple right? simple example. 3: public Order(). The Problem Solver - Monday, December 3, 2012 | -
| The Best from DevelopMentor | MORE | - Access Control Service: Passive/Active Transition Sample
Here you can find my updated ACS2 sample. In addition to the existing front ends (web [WS-Federation], console [SOAP & REST], Silverlight [REST]) and error handling , it now also includes a WPF client that shows the passive/active transition with a SOAP service as illustrated here. All the ACS interaction is encapsulated in a WPF user control that: retrieves the JSON feed. displays a list of supported identity providers. triggers the sign in via a browser control. retrieves the token response. All you need to supply is the ACS namespace and the realm. Have fun! Azure IdentityModel www.leastprivilege.com - Thursday, June 23, 2011 - HTML5 Slides and Samples
The slides and samples from the HTML5 talk I did yesterday at the DevelopMentor office in London. HTML5 from Maurice Beijer Enjoy! Futures HTML5 Modernizr WebSockets WebWorkers Video IE The Problem Solver - Thursday, October 18, 2012 - Download My Web Apps Have HotKeys Too Sample App
and a sample application. I recently blogged about how web apps have hotkeys too. To encourage more developers to add hotkeys to their web applications, I created a jQuery plugin called jQuery.hotKeyMap.js just added a download link for the source code: WebAppsHaveHotKeysTooSample-MichaelKennedy-v1.zip. It’s an ASP.NET MVC 3 web app. Hope you find it useful! Cheers, @mkennedy. Filed under: jQuery Tagged: NET , ASP.NET , MVC , Open Source , Plugins , web. jQuery.NET ASP.NET MVC Open Source Plugins web Michael C. Kennedy's Weblog - Thursday, August 30, 2012 - 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. 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. Other sample apps demonstrate features such as enum lists, associated properties, and async support. Tony and Zuzana's World - Sunday, January 23, 2011 - Online Workflow 4 presentation
Attached are the PowerPoint sheets and samples from my online Window Workflow Foundation 4 presentation today. Let me know if you have any questions. WF4Demo.zip www.TheProblemSolver.nl Wiki.WindowsWorkflowFoundation.eu. The Problem Solver - Tuesday, December 1, 2009 %>
| | |