|
Today, we’ve reached the milestone in a new generation of Microsoft All-In-One Code Framework. It is with great pleasure that we are announcing general availability of Sample Browser to the world. This is a momentous occasion for All-In-One Code Framework. With the new Sample Browser, we embrace the opportunity of getting more feedback, retaining more users, and better serving our customers.
Download: http://1code.codeplex.com/releases/ Feedback: onecode@microsoft.com
|
|
The Sample Browser runs on top of All-In-One Code Framework. It greatly facilitates the browse of 400+ code samples in the project. Although this first release provides only the sample search function, more features such as sample polling, and auto-update will be added in the near future.
The Sample Browser is green and does not require installation. You can find the application in the root folder of the All-In-One Code Framework package. SampleBrowser2008.exe is for browsing Visual Studio 2008 code samples, and SampleBrowser2010.exe is for Visual Studio 2010 samples. You can launch the application with a simple double-click. The application lists all code samples in the main window. Above the samples is a search bar with language filters. The Sample Browser filters samples by looking for your keywords in the sample names and the documentations (ReadMe.txt), and displays the search results in the main window. By clicking a sample, its documentation (ReadMe.txt) is displayed in a cool black form. By double-clicking a sample, the sample will be opened in Visual Studio.
Many efforts have been devoted to the Sample Browser. Jie Wang designed and developed the fantastic application by using his extra time. Vivian Luo worked with LCA to ensure legal compliance. Zhi-Qiang Ni designed the application icon. Yifeng, Lijing, Jialiang, Kira, Mog, and Michael tested the application to eliminate issues before the release. I’d like to thank all these people for the hard work that has brought us to this point. |
|
|
Starting today, we will launch a series of promotions to let more and more people know about the Sample Browser. It is appreciated if you spread the availability of the Sample Browser on your blog, twitter, facebook, or any other social media.
We have an incredible opportunity in front of us. Let’s lead with our future! |
I felt so proud to be a member of this project. You may also refer to this article that our PM --Jialiang Ge published just now:
http://www.cnblogs.com/Jialiang/archive/2010/06/21/SampleBrowserV1.html
Best regards,
Zhi-Qiang Ni
posted @ 2010-06-21 17:37 Zhi-Qiang Ni 阅读(175) 评论(0)
编辑
摘要: In one scenario, there are two GridViews with the Main Data and Detailed Data. The Customer would like to show the Detailed Value for the associated Hovered Row by using the HoverMenuExtender.To achie...
阅读全文
posted @ 2009-12-18 17:56 Zhi-Qiang Ni 阅读(489) 评论(3)
编辑
摘要: There is a requirement: A customer would like to built a Custom CollapsiblePanel control. There are two contents of this control, the Header and the Content, both of them are Panels. His requirement i...
阅读全文
posted @ 2009-12-08 17:42 Zhi-Qiang Ni 阅读(317) 评论(1)
编辑
posted @ 2009-02-12 12:35 Zhi-Qiang Ni 阅读(1372) 评论(5)
编辑
Some programmers would like to find a function to handle the Accordion’s SelectedIndexChanged event. As we all know, the Accordion’s Client behavior has provided such two events:

Code
add_selectedIndexChanged(handler)
add_selectedIndexChanging(handler)
Now, let's have a look at how to add a confirmation when the Accordion pane header is clicked.

Code
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="TestHandleSelectedChangedEvent.aspx.vb"
Inherits="SoluTest_Accordion.TestHandleSelectedChangedEvent" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style type="text/css">
.accordionHeader
{
border: 1px solid #2F4F4F;
color: white;
background-color: #2E4d7B;
font-family: Arial, Sans-Serif;
font-size: 12px;
font-weight: bold;
padding: 5px;
margin-top: 5px;
cursor: pointer;
height: 10px;
}
.accordionHeaderSelect
{
border: 1px solid #2F4F4F;
color: red;
background-color: #2E4d7B;
font-family: Arial, Sans-Serif;
font-size: 12px;
font-weight: bold;
padding: 5px;
margin-top: 5px;
cursor: pointer;
height: 10px;
}
.accordionContent
{
background-color: #D3DEEF;
border: 1px dashed #2F4F4F;
border-top: none;
padding: 5px;
padding-top: 10px;
}
</style>
<script type="text/javascript">
var accordion;
var handlerFired;
function pageLoad() {
accordion = $find("Accordion1_AccordionExtender"); //parameter should be the ID_AccordionExtender
accordion.add_selectedIndexChanged(selectedIndexChangedHandler)
}
function selectedIndexChangedHandler(sender, args) {
if (handlerFired) {
//add this variable to prevent firing the handler twice.
handlerFired = false;
return;
}
if (confirm("Would you like to change the index from " + args._oldIndex + " to " + args._selectedIndex + "?")) {
return;
} else {
handlerFired = true;
// if we don't want to change the index, we need to set it to the old value.
accordion.set_SelectedIndex(args._oldIndex);
}
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<cc1:Accordion ID="Accordion1" runat="server" HeaderCssClass="accordionHeader" HeaderSelectedCssClass="accordionHeaderSelect"
ContentCssClass="accordionContent" FadeTransitions="True" FramesPerSecond="40"
TransitionDuration="250" AutoSize="None" RequireOpenedPane="false" SuppressHeaderPostbacks="false"
SelectedIndex="-1">
<Panes>
<cc1:AccordionPane ID="AccordionPane1" runat="server">
<Header>
<p>
Header1</p>
</Header>
<Content>
<p>
This is the content area!</p>
</Content>
</cc1:AccordionPane>
<cc1:AccordionPane ID="AccordionPane2" runat="server">
<Header>
<p>
Header2</p>
</Header>
<Content>
<p>
This is the content area!</p>
</Content>
</cc1:AccordionPane>
<cc1:AccordionPane ID="AccordionPane3" runat="server">
<Header>
<p>
Header3</p>
</Header>
<Content>
<p>
This is the content area!</p>
</Content>
</cc1:AccordionPane>
</Panes>
</cc1:Accordion>
</div>
</form>
</body>
</html>
The related thread url: http://forums.asp.net/t/1380353.aspx
posted @ 2009-02-09 17:50 Zhi-Qiang Ni 阅读(1073) 评论(0)
编辑
posted @ 2009-01-27 10:44 Zhi-Qiang Ni 阅读(1159) 评论(2)
编辑
posted @ 2009-01-15 17:24 Zhi-Qiang Ni 阅读(1213) 评论(8)
编辑
posted @ 2009-01-15 14:52 Zhi-Qiang Ni 阅读(1244) 评论(2)
编辑
posted @ 2009-01-13 13:20 Zhi-Qiang Ni 阅读(396) 评论(0)
编辑
posted @ 2009-01-13 13:16 Zhi-Qiang Ni 阅读(224) 评论(0)
编辑