Thursday, April 30, 2009

CHARACTERISTICS OF API

1.Easy to learn.
2.Easy to use, even without documentation.
3.Hard to misuse.
4.Easy to read and maintain code that uses it.
5.Sufficiently powerful to satisfy requirements.
6.Easy to extend.
7.Appropriate to audience.

API

An application programming interface (API) is a set of routines, data structures, object classes and/or protocols provided by libraries and/or operating system services in order to support the building of applications.
An API may be:
Language-dependent:
i.e., available only in a particular programming language, using the particular syntax and elements of the programming language to make the API convenient to use in this particular context.
Language-independent:
i.e., written in a way that means it can be called from several programming languages (typically an assembly/C-level interface).
This is a desired feature for a service-style API that is not bound to a particular process or system and is available as a remote procedure call.

DATAGRID EVENTS

DataGrid columns have an ‘IsReadOnly’ property.
When set to false, the cell is an editable one.
To get the changed values and for updating the data source, the DataGrid provides the following events:
1.BeginningCellEdit
2.CommitCellEdit
3.CommittingCellEdit
4.CommittingRowEdit
5.CurrentCellChanged

DATAGRID PROPERTIES

The DataGrid supports a text box column, check box column, and a template column for customizing content.
Text box column:
The text box column will show content in a text block control in non-editing mode and in a text box control in editing mode.
Check box column:
The check box column renders content in a check box control.
It provides an IsThree state property when set to true.
The state of the check box can be Checked, Unchecked, or Indeterminate.
Template column:
For custom content/controls on the column, we can use the template column.
CellTemplate and CellEditing template columns can be used for changing content in edit mode.

DATAGRID

The DataGrid is one of the powerful controls in Silverlight 2.0.
Data binding is a powerful way to create a connection between our UI and a source of data.
This simple technique can be used to create a clean separation between our user interface and its underlying data.

STORYBOARD

A Storyboard is the container that we can put animation objects in.
We have to make the storyboard a resource that is available to the object that we want to animate.

Wednesday, April 29, 2009

SOCKET CLASS

The Socket class allows you to perform asynchronous data transfer using the following methods:
· ConnectAsync - Starts an asynchronous request for a connection to the remote host.
· SendAsync - Writes outgoing data from one or more buffers on a connected socket.
· ReceiveAsync - Reads incoming data into one or more buffers from a connected socket.
· Shutdown - Finishes any pending send operations, and signals the remote endpoint that the connection should be closed. If Send is specified, data may still be received until the remote computer closes its end of the connection (indicated by receiving 0 bytes).
· Close - Closes the remote host connection and releases all managed and unmanaged resources associated with the socket.

SOCKETS

Sockets are used for communication among applications over a network.
Network architecture can be generalized as consisting of four layers:
1. Application
2. Transport
3. Network
4. Link and Physical

WEB 2.0

Web 2.0 is all about the following and more...

1. User Centric and User Oriented

2. Web Services, Web API's

3. Widgets, Gadgets, Mashup's

4. Blogs, Feeds, Wiki's, Tagging, Podcasting

5. Social profile

6. Social bookmarking

7. Client rich technologies like CSS, HTML, DOM, XML, AJAX, JSON, XHTML, REST, SOAP

Sunday, April 19, 2009

XAML

Extensible Application Markup Language (XAML) is a declarative language.
We can create visible user interface (UI) elements in the declarative XAML markup.
We can then use a separate code-behind file to respond to events and manipulate the objects you declared in XAML.
An XML-based declarative language is very intuitive for creating interfaces from prototype to production, especially for people with a background in Web design and technologies.
XAML files are XML files that generally have the .xaml file name extension.

Creating a Silverlight plug-in

The goal of creating a Silverlight plug-in is to host a Silverlight application.
This plugin can be created in at least two different ways.
One of these approaches is to use the Silverlight server control that’s part of the Silverlight 2 Software Development Kit (SDK).2
In general, if you’re an ASP.NET developer, this is the approach you’ll want to use.
But we’re going to discuss the specifics of a Silverlight plug-in while covering another approach. Another approach for creating a Silverlight plug-in enables you to deliver Silverlight content through any server technology.
You can use Silverlight along with a variety of technologies including PHP, JSP, ASP, and ASP.NET.
To get Silverlight to work with these technologies, you use the two steps covered in this section. The first step is to reference the required Silverlight utility file.
The second step involves writing the JavaScript that will create an instance of the Silverlight plug-in.

Delegates properties

  • Delegates are similar to C++ function pointers, but are type safe.
    Delegates allow methods to be passed as parameters.
    Delegates can be used to define callback methods.
    Delegates can be chained together; for example, multiple methods can be called on a single event.
    Methods don't need to match the delegate signature exactly.

C# version 2.0 introduces the concept of Anonymous methos, which permit code blocks to be passed as parameters in place of a separately defined method.

Delegates

A delegate in C# is similar to a function pointer in C or C++.
Using a delegate allows the programmer to encapsulate a reference to a method inside a delegate object.
The delegate object can then be passed to code which can call the referenced method, without having to know at compile time which method will be invoked.
The signature of a single cast delegate is shown below:
delegate result-type identifier ([parameters]);

Events

Delegate usefulness does not just lie in the fact that it can hold the references to functions but in the fact that it can define and use function names at runtime and not at compile time.
A large goal of design delegates is their applicability in events model of .Net.
Events are the actions of the system on user manipulations (e.g. mouse clicks, key press, timer etc.) or any event triggered by the program.

Resource Dictionary

A resource dictionary is a keyed dictionary of objects that can be used both in XAML and in code. XAML is the most common usage, particularly for initially defining objects in a resource dictionary.
Resource dictionaries can exist at several positions in an application structure, including as immediate (page) resources, application resources (as part of the application object) or as XAML files that are kept separate and unloaded in the application structure, for later run-time use. Resource dictionaries commonly support two major Silverlight scenarios: defining templates for controls, and defining storyboards for animated properties.
We can change the build properties on the Resource Dictionary from Page to Content or Resource depending on our intentions; Content for Xaml; and Resource for codebehind.

Moonlight

Moonlight is an open sourceimplementation of the Silverlight browser plug-in based on Mono(an open source implementation of .Net)
  • Allows Silverlight application to run on LINUX.
  • Offers a Linux SDK for silverlight applications.
  • Use the existing silverlight engine to develop desktop application.

Mouse Events

Mouse Entered event is raised when mouse pointer enters inside the object area.
Mouse Leave event is raised when mouse pointer leaves object area.
MouseLeftButtonDown event is raised when left mouse button is clicked.
MouseLeftButtonUp event is raised when left mouse button is released button after clicking.

Path element

Path element is used to draw complex type of shapes. To use Path element we need to set a special type of attribute called Data. The Data attribute string contains several single character string and all have different meaning.

  • M denotes the start point in the absolute valuem denotes the start point in an offset to the previous point.
  • L denotes the straight line between the current line and the specified point.
  • H denotes the horizontal line between the current point and the specified x-coordinate.
  • V denotes the vertical line between the current point and the specified y-coordinate.
  • C denotes a cubic Bezier curve between the current point and specified end point by using the two specified control points.
  • Q denotes the quadratic Bezier curve point between the current point and the specified end point by using a specified control point.
  • S denotes a cubit Bezier curve between the current point and specified end point by using the two specific control points.
    A denotes the elliptical arc between the current point and the specified end point.
  • Z denotes the end of the current shape and creates the line that connect the current point to the starting point.

Silverlight websites

There are two types of Silverlight web sites that you can create in Visual
Studio:
Ordinary HTML web site: In this case, the entry point to your Silverlight application is a basic HTML file that includes a Silverlight content region.
ASP.NET web site: In this case, Visual Studio creates two projects-one to contain the Silverlight application files, and one to hold the server-side ASP.NET web site that will be deployed alongside your Silverlight files.
The entry point to your Silverlight application can be an ordinary HTML file or an ASP.NET web form that also includes server-generated content.

Silverlight plug-in

  • The Silverlight plug-in is a lightweight browser plug-in responsible for rendering Silverlight content.
  • This content is intended to be rendered consistently across platforms.
  • To ensure that this occurs, the Silverlight plug-in must take advantage of each platform’s plug-in technology.

Windows Workflow Foundation (WF)

WF is used to model complex workflow processes.
CardSpace is the embodiment of new security and user authorization functionality.

Windows Communication Foundation (WCF)

WCF encompasses the ASP.NET Web Services and .NET remoting functionality that was contained in the .NET Framework 2.0 as well as new communication technologies.

Windows Presentation Foundation (WPF)

  • WPF is used to develop elaborate user interfaces like those that adorn Windows Vista and managed advanced media streaming and integration.
  • WPF is the a complete revamp of Windows Forms so that user interface, graphic, and media development is now designed around the .NET Framework.

.NET Framework

The four primary additions to the .NET Framework as of version 3.0 are:
Windows Presentation Foundation (WPF)
Windows Communication Foundation (WCF)
Windows Workflow Foundation (WF)
CardSpace Windows Presentation Foundation (WPF)

Canvas layout container

A Canvas layout container defines a rectangular region in which you place child containers and controls.
Unlike all other components, you cannot let Flex lay child controls out automatically.
You must use absolute or constraint-based layout to position child components.
With absolute layout you specify the x and y positions of the children; with constraint-based layout you specify side or center anchors.

Stack panel

A stack panel allows you to stack elements in an assigned direction. Based on the properties that you define within a stack panel, content can flow both vertically (by default) and horizontally.
A stack panel is predominantly used within list controls, such as within a list box or within the pop-up list in a combo box.
Any element that you create or draw within a stack panel will be added automatically as the last child element in the stacking order of the elements in the panel.

Grid Layout

The grid layout is an invisible control that helps you in arranging and aligning controls in an application, group or other container in a tabular manner.
USAGE:-

  • Use the grid layout to align controls within containers in a tabular fashion. The grid consists of cells that are arranged in rows and columns. Various controls can be added to the cells. We can insert the grid layout into any container control. Especially, use it in groups, tabstrips and trays (iViews).
  • The most common usage of the grid layout is the layout of forms inside containers and the arrangement of different containers. There are two attributes for managing the spacing between rows and columns, cellSpacing and cellPadding.

RIA

Rich Inernet Applications are Web applications that have the features and functionality of traditional desktop applications
RIAs typically transfer the processing necessary for the user interface to the web client but keep the bulk of the data processing on the application server

Silverlight

Silverlight is a programmable Web browser plug-in that enables features such as animation,vector graphics and audio-video playback that characterises rich internet application

Friday, April 3, 2009

silverlight

hi i'm currently working in silverlight..i want to add agmenu.how can i?

3/4/09

created own blog