Microsoft All-In-One Code Framework is updated on 2010-10-10.
Download address: http://1code.codeplex.com/releases/view/53729#DownloadId=156489
If it’s the first time that you hear about Microsoft All-In-One Code Framework, please read the introduction on our homepage http://1code.codeplex.com/, and this Port25 article http://port25.technet.com/archive/2010/01/18/the-all-in-one-code-framework.aspx.
Windows Shell Extension New Samples
(Shell Infotip Handler)
(Shell Drag-and-Drop Handler)
In the September release of All-In-One Code Framework, we gave an introduction of writing Windows Shell extension in .NET Framework 4, and demonstrated a “skeleton” Context Menu Handler. In this release, you can find the code samples of Windows Shell drag-and-drop handlers. An infotip handler is a shell extension handler that provides pop-up text when the user hovers the mouse pointer over the object. It is the most flexible way to customize infotips. The alternative way is to specify either a fixed string or a list of certain file properties to be displayed (See the Infotip Customization section in http://msdn.microsoft.com/en-us/library/cc144067.aspx)
CSShellExtInfotipHandler: Shell infotip handler (C#)
VBShellExtInfotipHandler: Shell infotip handler (VB.NET)
CppShellExtInfotipHandler: Shell infotip handler (C++)
CppShellExtDragDropHandler: Shell drag-and-drop handler (C++).
ASP.NET New Samples
Microsoft Ajax extender controls enhance the client capabilities of standard ASP.NET Web server controls. We can target standard Web server controls such as TextBox controls, Button controls, and Panel controls by using one or more extender controls to provide a richer user experience in the browser. For example, to let users confirm before they submit a form to the server, we can use an extender control that adds client functionality to a Button control.
Some programmers in the ASP.NET community asked how to create a custom ASP.NET Ajax Extender control, just like these controls in the AjaxControlToolkit. In this sample, we illustrated how to create that kind of control step by step. The sample, ASPNETImagePreviewExtender make Image server control as target, and it will show the image as a thumbnail by default and when user clicks the image it will automatically show the full image from client side without postback.
HTMLEditor is an AJAX server control in the AjaxControlToolkit package. It allow us to input data with HTML format. That’s a very complicated control and always a lot of people want to find a way to add a custom toolbar control to the HTMLEditor and realize some custom feature. In this sample, I create a custom toolbar control step by step to realize a feature that make a <H1></H1> tag surround the selected string.
This sample illustrates how to dynamically add controls in ASP.NET pages. For the reason that HTTP is a stateless protocol, it’s hard to know when the controls have been created and whether the controls have been changed. However, we can use ViewState to store these information in the page and when the next time the page posts back, we can re-create these controls according to the ViewState values.
This sample shows the way to use the Bing Maps API map in an ASP.NET page. Sometime we need to embed a map in our ASP.NET pages to locate a place and show the surroundings around the place. To achieve this task, Bing Maps API provide a map control which is by no means weak than Google Map. And it can be easily set the location, zoom level, display mode and other properties by few code.
This sample demonstrates how to use AutoComplete Control in Ajax Control Toolkit. AutoComplete can be attached to any TextBox control, and will associate that control with a popup panel to display words that begin with the prefix typed into the textbox.
Sometime we need different web page experience for different visitors, The CSASPNETTheme populate how to set page output with themes.
Office New Samples
These two samples show how to use the Microsoft Active Accessibility API to do Office 2010 Ribbon UI automation. The program define a custom form, which shows the whole structure of the ribbon in three layers. The tab contains multiple groups. The group contains multiple controls. It also shows how to invoke an control’s functionality as well.
Windows Base New Samples
Sometimes we need to monitor the creation, deletion and modification events of the specific process in .Net application. Is there any simple way to achieve this except the sophisticated and unsupported way such as hooking APIs? This sample shows a fairly simple solution — using WMI to monitor process creation, deletion and modification events. You can be programmatically notified when a certain process is started or stopped.
CppPlatformDetector, CSPlatformDetector, VBPlatformDetector
The code samples demonstrate the following tasks related to platform detection:
1. Detect the name of the current operating system. (e.g. “Microsoft Windows 7 Enterprise”)
2. Detect the version of the current operating system. (e.g. “Microsoft Windows NT 6.1.7600.0”)
3. Determine whether the current operating system is a 64-bit operating system.
4. Determine whether the current process is a 64-bit process.
5. Determine whether an arbitrary process running on the system is 64-bit.
WPF New Samples
The sample demonstrates how to implement the MVVM pattern in a WPF application through a small game.
If you have any suggestions, questions or feedback about this release, please email us: firstname.lastname@example.org.