| |
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.
|
26 Articles match "How To"
See all articles with
"How To"
| The Latest from Mark's Blog of Random Thoughts | MORE | | MVVM: IUIVisualizer and event management with behaviors It’s not designed to be a true image application ala photoSuru, it’s really more of a sample of MVVM practices with the helper library. It maps mouse DoubleClick on an image into a command in the ViewModel to display the properties. The project structure is pretty much like all the other samples I’ve blogged about – I’m trying to keep to a consistent model: Service Registration. First, note that it registers the standard services – that’s something I always do, even if I don’t anticipate needing them all, it doesn’t hurt to have them there. par ?? par ?? Mark's Blog of Random Thoughts - Friday, February 5, 2010 MVVM: Binding RadioButton groups A question I got recently was how to manage Radio Buttons with bindings – in this instance, the sample code was trying to map a single value to a set of Radio Buttons based on an enumeration set. The original implementation was using a Value Converter to compare the “bound” value with the enumeration value expected for that radio button choice – if it was equal then the converter returned true, otherwise false. This happens because the selected Radio Button itself tells the group to uncheck all the others. cf0 cf1 ///cf3 Game they like to playpar ??cf0 Mark's Blog of Random Thoughts - Friday, January 29, 2010 MVVM: Rename TreeView nodes I know I said I was going to cover some services next, but I got a request last night to show how to rename TreeView nodes (ala Explorer) using the MVVM pattern in WPF. First, the idea is we want to be able to double-click on the text portion of the TreeViewItem and have it allow us to type in a new name, replacing the current text. This involves changing the visual template out (from a TextBlock to a TextBox ) and then detecting that the edit is complete. First, let’s add a property to indicate whether we are in “editing” mode or not. Mark's Blog of Random Thoughts - Thursday, January 28, 2010 | | The Best from Mark's Blog of Random Thoughts | MORE | | WPF MVVM Helper Library (WPF + MVVM = testability) 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. With all the focus on it lately, I figured maybe it's time to release it to the public. that I tend to use a lot. These classes tended to evolve with new functionality (either due to necessity, or because a good idea occurred to me or someone else). file -. Mark's Blog of Random Thoughts - Friday, April 17, 2009 WPF Data Providers It ships with two out of the box: ObjectDataProvider: allows you to execute binding expressions against an object and it's methods. side note here is that you could write your own custom data provider if you needed to, although if the data is exposed through a.NET object, then the ObjectDataProvider is probably sufficient. However, this is the 21st century and so we want to avoid coding as much as we can and utilize the underlying framework support instead! In this case, we want to see everything under the node "taxrecords" which is the root of the document. Mark's Blog of Random Thoughts - Wednesday, January 17, 2007 Part 3: Shifting focus to the first available element in WPF 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. We won't be able to find the child in the visual tree if the parent isn't yet loaded. Mark's Blog of Random Thoughts - Friday, September 12, 2008 | - Part 3: Shifting focus to the first available element in WPF
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. We won't be able to find the child in the visual tree if the parent isn't yet loaded. - Creating a legacy web service proxy in Visual Studio 2008
This happens to be one of the most obviously changed things in Orcas - the dialog presented is a more professional version than what was supplied with the original WCF CTP for VS.2005: The "Discover" button above can locate IIS-hosted web services (not Self Hosted however) and it now shows operations directly which is pretty cool. The bottom section - "Compatibility" allows you to generate a web service proxy using that original WS technology. You might be asking - "Why would I want to generate one of those? The best part is the "Advanced" button though. - Focusing on WPF: How to deal with Focus() in the WPF world
Recently I was involved in a project where we needed to build a multi-step input application where each step showed progress and you could proceed forward and backward through the pages. looked at the Navigation support in WPF (which is nice) but ultimately decided to model it around a styled TabControl – each page being a tab and the progress noted through the custom TabItem visuals across the top. Those that are new to WPF might be surprised that it does not assign initial focus to any particular child control – you must deliberately click or tab into a control to give it focus. - Part 3: Shifting focus to the first available element in WPF
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. We won't be able to find the child in the visual tree if the parent isn't yet loaded. - MVVM: IUIVisualizer and event management with behaviors
It’s not designed to be a true image application ala photoSuru, it’s really more of a sample of MVVM practices with the helper library. It maps mouse DoubleClick on an image into a command in the ViewModel to display the properties. The project structure is pretty much like all the other samples I’ve blogged about – I’m trying to keep to a consistent model: Service Registration. First, note that it registers the standard services – that’s something I always do, even if I don’t anticipate needing them all, it doesn’t hurt to have them there. par ?? par ?? - MVVM: Binding RadioButton groups
A question I got recently was how to manage Radio Buttons with bindings – in this instance, the sample code was trying to map a single value to a set of Radio Buttons based on an enumeration set. The original implementation was using a Value Converter to compare the “bound” value with the enumeration value expected for that radio button choice – if it was equal then the converter returned true, otherwise false. This happens because the selected Radio Button itself tells the group to uncheck all the others. cf0 cf1 ///cf3 Game they like to playpar ??cf0 - MVVM: Rename TreeView nodes
I know I said I was going to cover some services next, but I got a request last night to show how to rename TreeView nodes (ala Explorer) using the MVVM pattern in WPF. First, the idea is we want to be able to double-click on the text portion of the TreeViewItem and have it allow us to type in a new name, replacing the current text. This involves changing the visual template out (from a TextBlock to a TextBox ) and then detecting that the edit is complete. First, let’s add a property to indicate whether we are in “editing” mode or not. %>
355 Articles match "How To"
See all articles with
"How To"
| The Latest from DevelopMentor | MORE | | Unit testing code depending on the ASP.NET #WebApi HttpClient 'In a previous post I showed how to unit test an ASP.NET WebAPI Controller. In this case the client application contains the following class to load books from the REST WebAPI controller: 1: public class BooksClient. This class uses the HttpClient to request the data from the service and extracts the books from the body before returning them. If we want to test this class we need to pass in an HttpClient object. This HttpMessageHandler is used as the pipeline to send requests and we can completely replace this with our own implementation. 14: {. The Problem Solver - Monday, May 20, 2013 Using repeating elements in #AngularJS 'Index: Getting started with AngularJS Creating an AngularJS Controller The AngularJS $scope is not the MVC Model Using repeating elements in #AngularJS In the previous posts I showed how to get started with AngularJS and use some of the basic AngularJS directives to data bind. In these examples I uses a really simple single element to bind to. However in lots of business cases you really need to display a list of repeating elements. Fortunately this is really easy to do. Take a look at the simple list of people below. 2: 3: $scope.people = [. The Problem Solver - Friday, May 10, 2013 A Roundup of MongoDB Management Tools Back in the early days, there really were no management tools analogous to RDBMS tools (e.g. It’s time to look around and see what management / monitoring tooling is around these days for MongoDB. There are many different options to choose depending on your platform and use-cases. Key features : Complete (albeit command-line only) access to MongoDB. So you should take the time to learn it properly. Especially since you’ll need to know most of the features to take advantage of Robomongo above anyway. SQL Server Management Studio ). Michael C. Kennedy's Weblog - Monday, April 22, 2013 | -
| The Best from DevelopMentor | MORE | - How to improve a team's velocity?
By way of wrapping up my velocity mini-series ( Two ways to fill and iteration , Filling an iteration too well , and Velocity Targeting and Velocity Inflation ) I’m going to end with some advice on how to improve a team’s velocity. Over time these add up to big improvements. To use economic logic: this is about improving the supply-side. The supply-side argument (largely monetarist) suggests the way to solve unemployment is not to increase demand (Keynes style) but to loosen and liberalise the labour market. But back to software. Allan Kelly's Blog - Thursday, July 1, 2010 - How to rip audio books
So i listen to a lot of audio books, and here's how i create the mp3 of them. Overview we are going to create bite size files about 30 minutes each. link] 4) set your encoding bitrate to 64k & stereo, this is a very high quality audio book. To do this double click a track. then label them, and create the id tags. finally we'll attach a picture. Make sure the book is UNABRIDGED 1) get a ipod - i prefer the nano. link] Ripping 2) download audiograbber & install. link] 3) download lame encoder & install. select the Sectors>Last. And there you go Llewellyn Falco - Sunday, July 6, 2008 - How to build a Development/Test/Demo CA
So I ended up running Windows Cerificate Services which proved to be an easy to use, robust solution. just had to rebuild my Test CA (on Hyper-V) so I thought I'll document the important steps (for self-reference and whoever might be interested). They usually expire on the very day where you have to do an important demo. Now by default there is an entry pointing to the CA's Netbios name. better solution is to create a revocation list once, and store that at a publicly available location. Next you have to publish a CRL. Set it to e.g. five years. www.leastprivilege.com - Thursday, August 14, 2008 - How to get started with Knockout.js
Once you get into doing more client side JavaScript code with business applications and REST services you are going to run into the question of how to construct the client side HTML required to show the data to the users. Using jQuery Assuming most people are going to be using jQuery on the client you might start with some jQuery code to generate HTML. And in all likelihood the actual HTML that needs to be generated will be quite a bit more complex. The next step people tend to take is using templates. click( function () {. $.getJSON( The Problem Solver - Monday, February 6, 2012 - How to data bind to collections using Knockout.js
I showed to to get started with the awesome Knockout.js In this post I am going to show how easy it is to load a collection of items from a REST service and data bind to the complete collection. To data bind to collections of data Knockout supports the foreach data binding. In the example below I am using an html to display a list of books. The has the data binding attribute so its contents are going to be repeated for each item in the collection being used, books in this case. and controlling updates using Knockout.js Title. The Problem Solver - Wednesday, February 15, 2012 %>
| | |