Fast and Furious - Trailer: Remix

Tuesday, June 05, 2012

Purpose of InitializeComponent() in WPF and Why it is public in WPF in contrast to Winforms implementation

As it pertains to WPF applications, the method InitializeComponent() is quite a lot different than the one which was present in the earlier Winforms applications. InitializeComponent is actually a method defined on the interface System.Windows.Markup.IComponentConnector and is used for loading the compiled page of a component.

See MSDN excerpt below from this link which has more info:
IComponentConnector is used internally by Baml2006Reader.

Furthermore, InitializeComponent() method also exists in the compiled WPF application assembly and plays a role in the WPF application model of loading the XAML UI content at XAML parse time.

Implementations of InitializeComponent are widely observable as part of the infrastructure provided by frameworks or technologies that use XAML combined with application and programming models. For example, whenever you look at the generated classes for XAML root elements in WPF pages and applications, you will see InitializeComponent defined in the output.
InitializeComponent has to be in an interface and be public so that other outside WPF related assemblies in System.XAML namespace can make use of it and parse the XAML and generate the binaries.

InitializeComponent is also public (due to being part of an interface); to explain this further, go to the definition of InitializeComponent() method in your (say): Window1.g.cs class of say: WPFProject project, and change its access modifier from public to private

(keep the .g.cs file open in your project otherwise the build process re-generates this file, and you won't be able to see the error and access modifier will be reverted back to public again)

Now, when you compile your WPF project with private accessor to InitializeComponent being set, it throws a compile error as below:
Error 22 'WPFProject.Window1' does not implement interface member 'System.Windows.Markup.IComponentConnector.InitializeComponent()'. 'WPFProject.Window1.InitializeComponent()' cannot implement an interface member because it is not public.

Additionally, InitializeComponent() is marked with the [System.Diagnostics.DebuggerNonUserCodeAttribute()] attribute so you can't step into this method while debugging.

Happy WPFing.. ::VJSS::

Thursday, August 04, 2011

My First Listu.be Music Playlist

listube - free online on-demand music player

Thursday, May 21, 2009

Visual Studio 2010 Beta 1 Released !!



Microsoft has just released Visual Studio 2010 Beta 1, and .Net Framework 4.0 Beta 1 for download, below are the resources for more detailed information on from where to download and some screenshots of the new IDE :

Post from Dan Fernandez's Blog:
http://blogs.msdn.com/danielfe/archive/2009/05/20/visual-studio-2010-beta-1-cheat-sheet.aspx

Post from Charles Sterling's WebLog:
http://blogs.msdn.com/charles_sterling/archive/2009/05/18/visual-studio-2010-and-net-fx-4-beta1-forums-now-live.aspx

Microsoft download link:
http://www.microsoft.com/visualstudio/en-us/products/2010/default.mspx#thank-you-page

Some Screenshots:





More screenshots can be seen on Post from Jason Zander's WebLog:
http://blogs.msdn.com/jasonz/archive/2009/05/18/announcing-vs2010-net-framework-4-0-beta-1.aspx



Work it out and Enjoy.... ::VJSS::

Saturday, September 13, 2008

Gof Design Patterns Poster and Gear

For the Design Pattern programmers and lovers, a Gof Design Patterns reference poster is available to download from the Jason McDonald's site . You can also find other good resources from his site.
The download link can be obtained by browsing to this link: http://www.mcdonaldland.info/2007/11/28/40/
























Other interesting link I found on his website was the coding gear for Gof Design Patterns available for ordering. This site http://www.cafepress.com/codergear offers pattern lovers to purchase T-Shirts printed with Design Pattern diagrams in various colors.



















Happy Gof Coding and Enjoy: VJSS

Thursday, September 04, 2008

Create Amazing Word Clouds

There is a very good site (www.wordle.net) for creating your word cloud images in different fonts, layouts, and colors.
It generates a word cloud image from a bunch of text, or a blog or any site which has an atom or rss feed.
Here are my delicious tag clouds created by using 2 different layouts (Randomized) from wordle:



To create your own wordle tag cloud images, just go to www.wordle.net and click on the Create link. The site will show you all the options to create the tag clouds.

Share these wonderful cloud images with your friends or print them and have fun.

Cheers...

Sunday, August 31, 2008

BRIAN WILSON - That Lucky Old Sun

This is one of my favorite album and is going to be released on 2nd Sep. It has some lovely lovely soft and soothing songs; you can listen 3 of them right here by clicking on the following links:

FOREVER MY SURFER GIRL
MIDNIGHT'S ANOTHER DAY
SOUTHERN CALIFORNIA

Buy this album and you will surely enjoy it...

Tuesday, June 03, 2008

Commuting between Office and Home - A tiring drive

These days lots of construction of flyovers and Delhi Metro is going on in the way between my office and home. I usually take the route through ring road to commute between my office and home which is well known to me, but yesterday evening while returning from office I took some other unknown route for trying to see if it takes less time and has less traffic. To my surprise, it included some roads with bad conditions and also took more time to reach home and I had to ask the route to my destination (home) from the passer byes. It nearly takes 1.30 hrs to reach to my home in evening, but yesterday that route took me more than 2 hrs to reach my home and I was very tired.

So, I have decided that I will always go with known route and not experiment much with other routes even if some traffic is there on my normal route.

All in all, Yesterday's commute to home was a bad experience for me.

Thursday, March 06, 2008

.Net Framework 2.0 Namespaces and Types Poster


Dear Friends,

Poster of .Net Framework 2.0 Namespaces and types is available for download from the Brad Adams' weblog. This poster contains the existing and new namespaces, types and interfaces that are being added in version 2.0 of .Net framework.

Here is the download link for this poster:

http://blogs.msdn.com/photos/brada/picture524537.aspx

So, if you are working on .Net 2.0 then this poster has to be a must right in front of your eyes near your PC.

Author of Poster: Brad Abrams

Happy .Net Coding
::VJSS::

Sunday, December 09, 2007

CLIFF RICHARD - TAKE ANOTHER LOOK (Lyrics)

I HEAR YOU SAY HELLO
NOW IS THERE SOME THING THE MATTER
OH WON'T YOU TELL ME SO
DON'T YOU KNOW THAT IT'S BETTER TO
TELL ME IF YOU'RE FEELIN' SAD
NOTHIN' SHOULD BE QUITE THIS BAD
WE'RE PLAYING (SILLY GAMES)
TAKE ANOTHER LOOK
PLEASE ANOTHER LOOK
AT JUST WHO YOU'RE TALKIN' TO TONIGHT
MAY BE THERE'S A CHANCE
PLEASE ANOTHER CHANCE
THAT WE WONT BE WASTIN' TIME TONIGHT
(TAKE ANOTHER LOOK)
OH WON'T YOU - OH WON'T YOU (TAKE ANOTHER LOOK)
OH PLEASE PLEASE (TAKE ANOTHER LOOK)
YOU WONDER FOR TONIGHT
'COS YOU SAY THAT YOU NEED TO
WELL DON'T YOU KNOW IT'S ALRIGHT
PRETTY SOON YOU'LL BE FREE TO GO
WHEREVER YOU NEED TO GO
BUT THERE'S SOMETHIN' THAT WE BOTH SHOULD KNOW
WE'RE PLAYIN' (SILLY GAMES)
TAKE ANOTHER LOOK
PLEASE ANOTHER LOOK
AT JUST WHO YOU'RE TALKING TO TONIGHT
MAYBE THERE'S A CHANCE
PLEASE ANOTHER CHANCE
THAT WE WON'T BE WASTIN' TIME TONIGHT
(TAKE ANOTHER LOOK)
OH WON'T YOU - OH WON'T YOU (TAKE ANOTHER LOOK)
OH PLEASE (TAKE ANOTHER LOOK)

-SOLO-

I HEAR YOU SAY HELLO
NOW IS THERE SOME THING THE MATTER
OH WON'T YOU TELL ME SO
DON'T YOU KNOW THAT IT'S BETTER TO
TELL ME IF YOU'RE FEELIN' SAD
NOTHIN' SHOULD BE QUITE THIS BAD
WE'RE PLAYING (SILLY GAMES)
TAKE ANOTHER LOOK
PLEASE ANOTHER LOOK
AT JUST WHO YOU'RE TALKIN' TO TONIGHT
MAY BE THERE'S A CHANCE
PLEASE ANOTHER CHANCE
THAT WE WONT BE WASTIN' TIME TONIGHT
(TAKE ANOTHER LOOK)
OH WON'T YOU - OH WON'T YOU (TAKE ANOTHER LOOK)
OH PLEASE (TAKE ANOTHER LOOK)
TAKE ANOTHER LOOK - JUST ANOTHER LOOK BABY
TAKE ANOTHER CHANCE - JUST ANOTHER CHANCE
BABY MAYBE - COME ON BABY
TAKE ANOTHER LOOK ANOTHER -
JUST ANOTHER LOOK ANOTHER
MAYBE THERE'S A CHANCE - MAYBE JUST A CHANCE
TAKE ANOTHER LOOK - JUST ANOTHER LOOK -
TAKE ANOTHER LOOK BABY

Monday, October 15, 2007

Quotable Quotes - I

Here are some interesting quotable quotes, do quote them ;-)

Those who purposely create problems are more intelligent than those who solve them.
By: UNKNOWN

Integrity is telling myself the truth, and honesty is telling the truth to other people.
By: SPENCER JOHNSON

Talent is the gift plus the passion - a desire to succeed so intense that no force on earth can stop it.
By: NEIL SIMON

A common enemy does not a true friendship make.
By: RICHARD STENGEL

Fear can keep us up all night long, but faith makes one fine pillow.
By: PHILIP GULLEY

We never really grow up, we only learn how to act in public.
By: BRYAN WHITE

Leaders must be seen to be upfront, up-to-date, up-to their job, & up early in the morning.
By: LORD SIEFF

Winning is everything. The only ones who remember you when you come second are your wife and your dog.
By: RACING DRIVER DAMON HILL

The years pass by in an instant, but the end of the month never seems to arrive.
By: JORGE RAPOSO

Never allow yourself to become fully satisfied. Holding on to that nagging anxiety is what being globally minded is all about.
By: DOUG READY (ICEDR, Founder & CEO)

You find where the flow is, and go against it. Its a way of feeling alive.
By: STEWART BRAND

The harder you work, the luckier you get.
By: RINGO STARR

Photography is to put in the same line of sight, the head; the eye and the heart.
By: HENRI CARTIER - BRESSON

Software Development is like talking to a distant star, by the time you receive the answer, you may've forgotten the question.
By: UNKNOWN


Enjoy :: VJSS

Thursday, May 03, 2007

Anatomy of a .Net Web Service

Folks, lets examine how a request for a web service is handled by .Net when it comes in from any client:
------------------------------------------
When a request comes into IIS for a .Net web service, IIS examines the request and determines that it is being sent a file that ends with the extn. .asmx. The ASP.Net handler is registered with IIS as handling this extn.; therefore, this request is handed over to the ASP.Net process.

At this point, the ASP.Net worker process examines the request and discovers that it has a handler registered in machine.config file, for a request for resources with the extn. .asmx. It therefore invokes this handler and passes the request onto it.

Next, the handler creates an instance of the class defined in the handler, and uses reflection to examine which operations the class supports and how those operations should be routed. By default, operations are mapped to methods using the SOAPAction HTTP header, but this can be changed to map to the first child element of the SOAP body.

Once the message is routed, the handler uses the XML Serializer to deserialize the request XML into the parameters the method is expecting. Once the method returns, the return value and any out parameters are mapped back into XML using XML Serializer. Then, a response SOAP message is created that wraps this XML , and the response is sent back via ASP.Net's HTTPResponse context.

If an exception is thrown, then it is wrapped into a SOAPException and a SOAP fault is returned instead, with the HTTP status code set to 500. (For non-error responses, the status code is 200 or OK).

Ref: .Net Web Services (Keith Ballinger)

Thursday, January 18, 2007

PotPourri of Short Shayari - Part II

(Waking up)
Na hogi kabhi aesi bhool,
ki abb toe kaante bhi bann jayenge phool.

Phoolon se kehna kabhi hamarey liye bhi khilna
aur fursat miley toe hamse zaroor milna...(chahey sapnoon maen sahi)
--------------------------------------------------------
(Modified)
Zindagi nen hamaen bahut kuchh seekhaya
kabhi jeeta kar haraya toe kabhi haraa kar jeetaya

Zindagi se maeney bahut kuchh seekha
kabhi jeet kar haara toe kabhi haar kar jeeta
--------------------------------------------------------
tum na thay toe duniya lagti thi badi sooni sooni
tum jo aaye to humne tarakki ki din duni raat chauguni

Thanks,
::VJSS::®

Tuesday, January 09, 2007

Even Bollywood is singing Cliff Richard

Hi Bollywood and Cliff Richard Fans,

Seems like that Bollywood Music likes Cliff Richard. The song - Pal Pal Har Pal of Lagge Raho Munnabhai sounds is topping the charts and sounds much like the You are my theme for a dream of Cliff Richard. Even if its a copy its crafted and lyricised beautifully

I Hope to see more Bollywood songs sound like Cliff Richard as much as more Indian Music and Cliff Richard fans do.

Thanks to Musician: Shantanu Moitra

'Enjoy'
::VJSS::