Office Ribbon Control (wpf)

Saturday, October 31, 2009


Now Create Office like layout application give`s new looks to your wpf applications . Now you can Enjoy Microsoft office Ribbon is Command bar Which is collection of tabs and the Organizes a Program`s Features at top of a Window.


A new WPF Ribbon Control will be available for download shortly after the release of WPF 4. It features skins for Windows 7 and Office, as well as all the standard Ribbon features that end-users are familiar with, including tabs and groups, dynamic resizing, quick access toolbar, application menu, contextual tabs, key tips, and more.

The WPF Ribbon will be fully extensible to meet changing guidelines for future releases. A CTP with a limited feature set is available today here




Fix Bug in Vs 2010 for javascript intellisense

Monday, October 26, 2009

In Vs 2010 had Perblem in JavaScript for JScript intellisense or Html If by any chance you are not seeing in your JavaScript or HTML after installing Visual Studio 2010 Beta 2 you might be running into a known bug that we can show you how to fix. This Problem or bug is related to User Settings Which did remove in beta 1 is uninstalled . Single Setting udder HKCU\Software\Microsoft\VisualStudio\10.0\HTML Editor\TargetFriendlyName . in beta 2 this setting dose not match the Schema`s we konw about . in result JScript intellisense will fail and your were press ctrl + space and nothing come out lol its was quit embaressing
The minimum fix is to manually repair the TargetFriendlyName setting in the registry (change it to be just "XHTML 1.0 Transitional”) but due to the fact that more settings could be affected the recommended fix is to reset all settings after Beta 2 is installed.
To reset all settings drop down the Tools menu and select Import and Export Settings. This will bring up the Import and Export Settings Wizard as seen below. Choose the last option “Reset all settings” and click Next when ready.



From there choose whether you want to saving your settings or not and click Next again.




Finally, choose the collection of settings that best fits your development environment and click Finish when done.

Usama wahab khan

Osmani Engg(team lead)

Mike Snow

SDET Lead (Visual Studio Web Tools)

Optional Parameter in Csharp 4.0

Monday, October 19, 2009


Can i Use Optional Parameter in Csharp ? in 3.5 it was so difficult or impossible but Now Csharp i Mature language so Microsoft has introduced a new feature in C# 4.0 Called Optional Parameter . In this if we will not specify the value of parameter then function will automatically take default value rather then giving the compile time error. or

public void SendEMail(string toAddress, string bodyText, bool ccAdmin = true, bool isBodyHtml = false)
{
// Full implementation here
}

Least specified “overload” consuming code written will look like this:

SendEMail("jhon@foo.com", "Hello World");
The IL that the C# compiler will generate will actually be the equivalent of this:

SendEMail("jhon@foo.com", "Hello World", true, false);
The best part in this is that, unlike traditional method overloading, you have the ability to omit only the 3rd parameter in conjunction with the new Named Parameters language feature and write your code like this:

SendEMail("jhon@foo.com", "Hello World", isBodyHtml: true);
This will allow consuming code to only pass 3 arguments for succinctness but still invoke the appropriate overload since the IL generated in that instance will be equivalent to this:

SendEMail("jhon@foo.com", "Hello World", true, true);

Asp.net 4 in Viual Studio 2010

Wednesday, October 14, 2009


Asp.net 4 Microsoft Mostly focus on Client Side Programming Databindind,Template randing ,and in Vs 2010 Microsoft enhance Css designer Power Full Support of AJAX.NET , add new Controls in asp.net like Chart Controls now you didn't need use single Third party Control Everything under on umbrella URL Routing , C# diynamic datatype ,with help of DLC CHART control . The Great sussce of asp.net 2.0,3.5 now asp.net 4.0 is much more mature product any one else


The new functionality in ASP.NET AJAX enables new client data scenarios for page and component developers that enable JSON data from the server to be rendered as HTML in a highly manageable and efficient way. To enable these scenarios, so now databinding is becomes very elzy and fast with help AJAX.NET
ASP.NET AJAX includes the following major features:

Client-side template rendering.
Declarative instantiation of client-side behaviors and controls.
Live data binding.
Use of the observer pattern with JavaScript types.
An AdoNetServiceProxy class for client-side interaction with ADO.NET Data Services.
A client-side DataView control for data-bound UI in the browser.
DataContext and AdoNetDataContext classes for interaction with Web services.
Refactored ASP.NET AJAX framework libraries.
Support for the DOM Ready event.
Using JSONP to retrieve cross-domain data.

Asp.Net Chart Control Reivew

The ASP.NET Chart control expands the data-visualization offerings in the .NET Framework. Using the Chart control, you can easily create ASP.NET pages that have intuitive and visually compelling charts for complex statistical or financial analysis. The ASP.NET Chart control was introduced as an add-on to the .NET Framework version 3.5 SP1 release and will become part of the .NET Framework 4 release.

Major features of the control include the following:

35 distinct chart types.
An unlimited number of chart areas, titles, legends, and annotations.
A wide variety of appearance settings for all chart elements.
3-D support for most chart types.
Smart data labels that can automatically fit around data points.
Strip lines, scale breaks, and logarithmic scaling.
More than 50 financial and statistical formulas for data analysis and transformation.
Simple binding and manipulation of chart data.
Support for common data formats, such as dates, times, and currency.
Support for interactivity and event-driven customization, including client click events using AJAX.
State management.
Binary streaming.

Windows 8 Microsoft Planing for 128 bit Os

Tuesday, October 13, 2009



Windows 7 is not even out the door yet and rumors are already circulating about the next version of Microsoft’s OS, Windows 8.
According to Microsoft employee Robert Morgan, future iterations of Windows, including Windows 8, could support a 128-bit architecture. Two weeks ago his now defunct LinkedIn profile disclosed that he had been working on “research and development projects including 128-bit architecture compatibility with the Windows 8 kernel and Windows 9 project plan”.
Further to this, Morgan’s profile also let slip that Microsoft are hoping to form a number of future relationships with major players such as IBM, Intel, AMD and others in the run up to 128-bit support. (Keep in mind that 64-bit computing is just now going mainstream.)
An interview with Robert Morgan, who has been with the company since 2002, is expected to appear on Windows 8 News within the coming days, hopefully shedding more light on what to expect from the next version of Windows, codenamed Chirdori.
So while we wait to learn more on the future of Windows, be sure to check our our coverage on Microsoft’s latest effort, Windows 7.

Now Deep Zoom in Asp.net (Seadragon control )

Monday, October 12, 2009



After Great success of silverlight Deep Zoom now Microsoft put this Feature in Asp.net With
Help of Ajax .nt now you can add Zoom ,Pan,Center Images in Asp.net with the help of Silverlight its called Seadragon . you can

  • Seadragon with a scalable overlay
  • Pan images
  • Zoom in
  • Zoom Out
  • Auto title
  • Fulpage mode

so Enjoy the World of Ajax.net



some Examples




Seadragon control with default properties
Click on the buttons to zoom in, zoom out, reset zoom, and make the image full screen. You also can drag the image with your mouse or double-click to zoom.
The Seadragon control is written in pure JavaScript. It works with all popular modern browsers.
Learn how to create images that work with the Seadragon control by visiting the Microsoft Live Labs website at http://livelabs.com/seadragon-ajax/.




Want to show Deep Zoom Images on your page? Try our Embed Builder. No download, no hassle.
It's easy to embed the Seadragon Ajax Viewer:
Use PhotoZoom. Just create a new album and upload your photo to it. Wait until it's done processing, then view an individual photo and copy the URL that appears at the bottom. Or, you could download Deep Zoom Composer to compose a Deep Zoom Image that you upload to your site.
Create the code for the viewer, below.
Copy the code into your web page or blog.

Type in the URL of the Deep Zoom Image you want to show:
This doesn't appear to be a valid Deep Zoom Image.
The URL submitted will not be retained by Microsoft, nor will it be used for any other purpose

C# 4.0 Dynamic Programming

Tuesday, October 6, 2009





C# 4.0 supports Dynamic Programming by introducing new Dynamic Typed Objects. The type of these objects is resolved at run-time instead of compile-time. A new keyword dynamic is introduced to declare dynamic typed object. The keyword tells the compiler that everything to do with the object, declared as dynamic, should be done dynamically at the run-time using Dynamic Language Runtime(DLR). Remember dynamic keyword is different from varkeyword. When we declare an object as var, it is resolved at compile-time whereas in case of dynamic the object type is dynamic and its resolved at run-time. Let’s do some coding to see advantage of Dynamic Typed Objects :)


A year back I wrote a code of setting property of an object using Reflection:


1: Assembly asmLib= Assembly.LoadFile(@"C:\temp\DemoClass\bin\Debug\DemoClass.dll");

2: Type demoClassType = asmLib.GetType("DemoClass.DemoClassLib");

3: object demoClassobj= Activator.CreateInstance(demoClassType);

4: PropertyInfo pInfo= demoClassType.GetProperty("Name");

5: pInfo.SetValue(demoClassobj, "Adil", null);

Notice line 3-5 creates instance of ‘demoClassType’ and set property ‘Name’ to ‘Adil’. Now with C# 4.0 line # 3-5 can be written as simple as:


dynamic dynamicDemoClassObj = Activator.CreateInstance(demoClassType);

dynamicDemoClassObj.Name = "Adil";

Simple isn’t it? Let’s see a slide from Anders Hejlsberg’s session at PDC 2008:




From the above slide, you can call method(s) such as x.ToString(), y.ToLower(), z.Add(1) etc and it will work smoothly :)


This feature is great and provides much flexibility for developers. In this post, we explore the dynamic typed object in C# 4.0. We will explore dynamic in detail and other features as well in the coming posts. Of course there are pros and cons of dynamic programming as well but where C# is going is something like having features of both static languages and dynamic languages.



dynamic d = 1;

var testSum = d + 3;

// Rest the mouse pointer over testSum in the following statement.

System.Console.WriteLine(testSum)


Conversions


Conversions between dynamic objects and other types are easy. This enables the developer to switch between dynamic and non-dynamic behavior.


Any object can be converted to dynamic type implicitly, as shown in the following example

C#

dynamic d1 = 7;

The dynamic language runtime (DLR) is a new API in .NET Framework 4 Beta 1. It provides the infrastructure that supports the dynamic type in C#, and also the implementation of dynamic programming languages such as IronPython and IronRuby. For more information about the DLR, see Dynamic Language Runtime

dynamic d2 = "a string";



The dynamic language runtime (DLR) is a new API in .NET Framework 4 Beta 1. It provides the infrastructure that supports the dynamic type in C#, and also the implementation of dynamic programming languages such as IronPython and IronRuby. For more information about the DLR, see Dynamic Language Runtime

dynamic d3 = System.DateTime.Today;

dynamic d4 = System.Diagnostics.Process.GetProcesses();

Microsoft DreamSpark for Students in Pakistan



Now Microsft introducing the best Gifts for student Call DreamSprak .DreamSpart is the Platform which will provide best opportunities specially for Pakistan we were lives in 3rd world country resources are alway matter for our student. On this issue Microsoft come`s like Farry God mother and this Program call the DREAMSPARK Deram comes true now Pakistan Student can development on world lastest Microsft technonogies with any fee and cost even a single peni and Learning Classes,Certification


its become`s free now just registartor , virifidd , download tree setp for sucessus by Microsoft so what are You waiting for go on Microsoft DreamSprak.com and get started millions of millions student were taking advantage of thisunbeliveable Offer by Microsoft for applying Microsft DreamSpark you just have Live Account and Select your country , find your Universit or Collage, school submit your identification information and download software online and get license key

List of Software


and enjoy and show the world what your dreams if you guys have any problem to find your Universities,Collages ,School so contact : contact Microsoft Student Partner at your University AND Contact Mic or Microsft led pakistanthank you

Copy Past Clipboard in ASP.net

Friday, October 2, 2009


Copy and Past in Asp.net With the help of javascript
its very easy by using Java Clipboard Function and Call from C# or Vb.net
and use it

for Copy
ScriptManager.RegisterStartupScript(Me, Me.GetType(), "Copy", "clipboardData.setData('text', '" + TextBox1.Text + "');", True)


for past
ScriptManager.RegisterStartupScript(Me, Me.GetType(), "Past", "document.getElementById('textbox2').focus(); ; PastedText = d

enjoy Aspnet Learn Free
by usama wahab khan
Download Source Code

Print GridView , Report Builder

Thursday, October 1, 2009

Download Source Code