Pages

Showing posts with label Anil Kumar Pandey. Show all posts
Showing posts with label Anil Kumar Pandey. Show all posts

Thursday, December 16, 2010

Abbreviation for Twitter, FB and Texting

Hello Friends,
Now a days almost every one used Face Book, Twitter or SMS, the very common language used in all these are the abbreviated for of the Words. Most of the peoples know these few words and lot more is unknown. While surfing on net I come across a web site where so many abbreviation were specified, so I am presenting some of the Words here which you can read and come to know...

Abbreviation Meaning
<3>
404 I haven't a clue
A3 Anyplace, anywhere, anytime
ADN Any day now
AFAIK As far as I know
AFK Away from keyboard
ARE Acronym-rich environment
ASAP As soon as possible
A/S/L? Age/sex/location?
B4N Bye for now
BAK Back at the keyboard
BAS Big a** smile
BBIAB Be back in a bit
BBL Be back later
BBN Bye bye now
BBS Be back soon
BEG Big evil grin
BF Boy friend
BFD Big f***ing deal
BFN Bye for now
BG Big grin
BIBO Beer in, beer out
BIOYIOP Blow it out your I/O port
BL Belly laughing


BMGWL Busting my gut with laughter
BOTEC Back-of-the-envelope calculation
BRB Be right back
BTA But then again...
BTDT Been there, done that
BTW By the way
BWL Bursting with laughter
BWTHDIK But what the heck do I know...?
CICO Coffee in, coffee out
C&G Chuckle and grin
CNP Continued in next post
CRB Come right back
CRBT Crying real big tears
CU See you
CUL See you later
CUL8ER See you later
CYA See ya
CYA Cover your ass
CYO See you online
DBA Doing business as
DFLA Disenhanced four-letter acronym (that is, a TLA)
DL Dead link
DLTBBB Don't let the bed bugs bite
DIKU Do I know you?
DITYID Did I tell you I'm distressed?
DOM Dirty old man
DOS Dozing off soon
DQMOT Don't quote me on this
DTRT Do the right thing
DWB Don't write back
E2E exchange to exchange
E2E e-business to e-business
E2E employee to employee
E2E end to end
EG Evil grin
EMFBI Excuse me for butting in
EMSG E-mail message
EOM End of message
EOT End of thread (meaning: end of discussion)
ESAD Eat s**t and die
ETLA Extended three-letter acronym (that is, an FLA)
EWG evil wicked grin
F2F Face to face
FAQ Frequently-ask question(s)
FC Fingers crossed
FISH First in, still here
FLA Four-letter acronym
FMTYEWTK Far more than you ever wanted to know
FOMCL Falling off my chair laughing
FTBOMH From the bottom of my heart
FUBAR F***ed up beyond all repair or recognition
FUD Fear, Uncertainty, and Doubt
FWIW For what it's worth
FYI For your information
G Grin
GA Go ahead
GAL Get a life
GIGO Garbage in, garbage out
GD&R Grinning, ducking, and running
GF Girlfriend
GFN Gone for now
GGP Gotta go pee
GIWIST Gee, I wish I'd said that
GL Good luck
GMAB Give me a break
GMTA Great minds think alike
GOL Giggling out loud
GTRM Going to read mail
GTSY Glad to see you
H&K Hug and kiss
HAGN Have a good night
HAND Have a nice day
HHIS Hanging head in shame
HIG How's it going
HT Hi there
HTH Hope this helps
HUB Head up butt
IAC In any case
IAE In any event
IANAL I am not a lawyer (but)
IAW I agree with or In accordance with
IC I see
IGP I gotta pee
IHA I hate acronyms
IHU I hear you
IIRC If I recall/remember/recollect correctly
ILU or ILY I love you
IM Immediate message
IMCO In my considered opinion
IMHO In my humble opinion
IMing Chatting with someone online usually while doing other things such as playing trivia or other interactive game
IMNSHO In my not so humble opinion
IMO In my opinion
IMS I am sorry
IOW In other words
IPN I'm posting naked
IRL In real life (that is, when not chatting)
ITA I totally agree
ITIGBS I think I'm going to be sick
IWALU I will always love you
IYSWIM If you see what I mean
J4G Just for grins
JBOD Just a bunch of disks (like redundant array of independent disks, etc.)
JIC Just in case
JK or j/k Just kidding
JMO Just my opinion
JTLYK Just to let you know
k ok
KISS Keep it simple stupid
KIT Keep in touch
KOTC Kiss on the cheek
KOTL Kiss on the lips
KWIM? Know what I mean?
L8R Later
L8R G8R Later gator
LD Later, dude
LDR Long-distance relationship
LHO Laughing head off
LLTA Lots and lots of thunderous applause
LMAFO Laughing my f**king a** off
LMAO Laughing my a** off
LMSO Laughing my socks off
LOL Laughing out loud
LRF Little Rubber Feet (the little pads on the bottom of displays and other equipment)
LSHMBH Laughing so hard my belly hurts
LTM Laugh to myself
LTNS Long time no see
LTR Long-term relationship
LULAB Love you like a brother
LULAS Love you like a sister
LUWAMH Love you with all my heart
LY Love ya
LY4E Love ya forever
MorF Male or female
MOSS Member of the same sex
MOTOS Member of the opposite sex
MTF More to follow
MUSM Miss you so much
NADT Not a darn thing
NFG No f*****g good
NFW No feasible way or no f*****g way
NIFOC Naked in front of computer
NP or N/P No problem
NRN No response necessary
OIC Oh, I see
OLL Online love
OMG Oh my God
OTF Off the floor
OTOH On the other hand
OTTOMH Off the top of my head
PANS Pretty awesome new stuff (as opposed to "POTS")
PAW Parents are watching
PCMCIA People can't master computer industry acronyms
PDA Public display of affection
PEBCAK Problem exists between chair and keyboard
PIBKAC Problem is between keyboard and chair
PITA Pain in the ass
PM Private message
PMFJIB Pardon me for jumping in but...
POAHF Put on a happy face
::POOF:: Goodbye (leaving the room)
POTS Plain old telephone service
PU That stinks!
QT Cutie
RL Real life (that is, when not chatting)
ROR Raffing out roud (Engrish for "laughing out loud")
ROTFL Rolling on the floor laughing
ROTFLMAO Rolling on the floor laughing my a** off
ROTFLMAOWPIMP Rolling on the floor laughing my a** off while peeing in my pants
ROTFLMBO Rolling on the floor laughing my butt off
RPG Role-playing games
RSN Real soon now
RT Real time
RTFM Read the f***ing manual
RYO Roll your own (write your own program; derived from cigarettes rolled yourself with tobacco and paper)
S^ S'up - what's up
S4L Spam for life (what you may get when you become someone's customer or client)
SHCOON Shoot hot coffee out of nose
SEG S***-eating grin
SETE Smiling ear to ear
SF Surfer-friendly (low-graphics Web site)
SHID Slaps head in disgust
SNAFU Situation normal, all f***ed up
SO Significant other
SOL Smilling out loud or sh*t out of luck
SOMY Sick of me yet?
SOT Short on time
SOTMG Short on time must go
STFU Shut the f**k up
STFW Search the f*****g Web
STW Search the Web
SU Shut up
SUAKM Shut up and kiss me
SUP What's up
SWAG Stupid wild-a** guess
SWAK Sealed with a kiss
SWL Screaming with laughter
SYS See you soon
TA Thanks again
TAFN That's all for now
TANSTAAFL There ain't no such thing as a free lunch
TCOY Take care of yourself
TFH Thread from hell (a discussion that just won't die and is often irrelevant to the purpose of the forum or group)
TGIF Thank God it's Friday
THX Thanks
TIA Thanks in advance (used if you post a question and are expecting a helpful reply)
TILII Tell it like it is
TLA Three-letter acronym
TLK2UL8R Talk to you later
TB4U Too bad for you
TMI Too much information
TNT Till next time
TOPCA Til our paths cross again (early Celtic chat term)
TOY Thinking of you
TPTB The powers that be
TTFN Ta-Ta for now
TTT Thought that, too (when someone types in what you were about to type)
TTYL Talk to you later
TU Thank you
TY Thank you
TYVM Thank you very much
UAPITA You're a pain in the ass
UAF Until further notice
UW You're welcome
VBG Very big grin
VBSEG Very big s***-eating grin
WAG Wild a** guess
WAYD What are you doing
WB Welcome back
WBS Write back soon
WDALYIC Who died and left you in charge?
WEG Wicked evil grin
WFM Works for me
WIBNI Wouldn't it be nice if
WT? What/who the ?
WTF What the F***!
WTFO What the F***! Over!
WTG Way to go!
WTGP? Want to go private?
WU? What's up?
WYSITWIRL What you see is TOTALLY WORTHLESS IN REAL LIFE!
WUF? Where are you from?
WYSIWYG What you see is what you get
YBS You'll be sorry
YGBSM You gotta be s***tin' me!
YMMV Your mileage may vary.
YW You're welcome

The Source of the Information is here

Enjoy!!!!!

Thanks,
Anil Kumar Pandey
MVP (Visual C# 2009-2010)

Friday, December 3, 2010

Silverlight 5 Plans

Hello All,
I got this news from one of my fellow Silverlight MVP, that the Microsoft is planning for the new version of silver light that is Version 5, with some new features and capability for helping the developer to create some good application.. I have seen the Blog of Timheuer here is the Blog link from where I have got these information. http://tinyurl.com/2wdx6ge


Here are some of the features For the Media side

  • Hardware Decode and presentation of H.264 media
  • “TrickPlay” allows video to be played at different speeds and supports fast-forward and rewind. At up to twice the speed, audio pitch correction allows users to watch videos while preserving a normal audio pitch.
  • Improved power awareness prevents the screen saver from being shown while watching video and allows the computer to sleep when video is not active.
  • Remote-control support allowing users to control media playback.
  • Digital rights management advancements allow seamless switching between DRM media sources.

And In the Application Development side.

  • Fluid user interface enables smoother animation within the UI. Layout transitions allow developers to specify animations to apply when elements are added, removed or re-ordered within a layout. This provides smoother user experiences when, for example, items are inserted into a list.
  • Text improvements make it possible to build rich magazine-style text layouts:
    • Multicolumn text and linked text container allow text to flow around other elements.
    • Tracking/leading set precisely how far apart each character is for full creative control.
    • Text clarity is improved with Pixel Snapping.
    • Text layout performance is significantly improved.
    • OpenType support has been enhanced.
  • Support for Postscript vector printing enables users to create reports and documents, including the ability to create a virtual print view different from what is shown on the screen.
  • Applications can now work the way users expect with added support for double-click and ComboBox type ahead.
  • Databinding enhancements allow more work to be done more easily via XAML:
    • Debugging support now allows breakpoints to be set on a binding, so you can step through binding failures.
    • Implicit DataTemplates allow templates to be created across an application to support a particular type by default.
    • Ancestor RelativeSource allows, for example, a DataTemplate to bind to a property on the control that contains it.
    • Binding in style setters allows bindings to be used within styles to reference other properties.
    • The DataContextChanged event is being introduced. Markup extensions allow code to be run at XAML parse time for both properties and event handlers, enabling cutting-edge MVVM support.
  • Networking and Windows Communication Foundation enhancements:
    • Reduced network latency by using a background thread for networking.
    • WS-Trust support: Security Assertion Markup Language authentication token.
  • Silverlight 5 performance improvements include these:
    • Reduced network latency by using a background thread for networking.
    • XAML parser improvements that speed up startup and runtime performance.
    • Support for 64-bit operating systems.
  • Graphics improvements
    • Graphics Processing Unit (GPU) accelerated 3-D application programming interface (API) provides rich graphics on the Web for building advanced data visualizations and rich user experience (UI).
    • Immediate mode graphics API allows direct rendering to the GPU.
    • Hardware acceleration is enabled in windowless mode with Internet Explorer 9.
  • Silverlight offers a new class of trusted applications that brings desktop capabilities to the browser for the first time. These features, when enabled via a group policy registry key and an application certificate, mean users won’t need to leave the browser to perform complex tasks:
    • Host HTML content as a Web browser control within the Silverlight application. HTML pages, such as help content or e-mail, can be integrated within the application.
    • Read and write files to the user’s My Documents folder, making it easier to find media files or create local copies of reports.
    • Launch Microsoft Office and other desktop programs. Users can open Microsoft Outlook and create an e-mail message, or send a report to Word utilizing the power of Office.
    • Access devices and other system capabilities by calling into application COM components. Users can access a USB security card reader or a bar-code scanner.
    • Enjoy full keyboard support in full screen, which enables richer kiosk and media viewing applications.
    • Call existing unmanaged code directly from within Silverlight with P/Invoke.
  • Out-of-browser trusted applications are further enhanced:
    • Existing unmanaged code can be called directly from within Silverlight with P/Invoke.
    • Child Window support allows multiple windows to be launched from the application.

You can read the detail article on this blog Here. And please post your comment and suggestion so that we can forward it to the silver light team.


Thanks,
Anil Kumar Pandey
MVP (Visual C#)



Monday, November 22, 2010

HTML 5 Rocks!

Hello Guys,
HTML (Hyper Text Markup Language) is the base of NET based programing, we came across several version of HTML in past years, Now we are having the latest version of the HTML that is HTML5. Here are the Evolution of HTML

1991---- HTML
1994---- HTML 2
1996----- CSS 1 + JavaScript
1997 -------HTML 4
1998------ CSS 2
2000---- XHTML 1
2002 -----Tableless Web Design
2005 ------AJAX
2009------ HTML 5

As you all know that HTML 5 is going to rock the INTERNET World soon. The new HTML5 is the combination of the 3 powerful technology that are HTML, CSS & JS API that means

HTML5 = HTML + CSS + JS API

While Surfing on net for HTML5 I came across a very good site that is describing the new feature of HTML5 is a very good manner you can have a look at this site.


Please take a look and check the details and feature of the Rocking HTML5.

Thanks,
Anil Kumar Pandey
MVP (Visual C#)

Monday, November 8, 2010

New Features of Visual c# 4.0

Hello All,
One of my MVP friend has written a very beautiful articles on the latest features of the Visual C# 4.0. I would like to share with you, Please follow the below link and read this article. I hope you will like that.


Hope you will like this.


Thanks & Regards,
Anil Kumar Pandey
MVP Visual C#

Friday, October 1, 2010

MVP (Most Valuable Professional)

Hello All,
I am very happy to inform you all that I got the most prestigious award from Microsoft Most Valuable Professional (MVP) for the second year. I am feeling top of the world, I would like to thanks all my friends and well wishers you supported me in each moment of my life,I would like to have the tremendous support in future also and thanks to the almighty GOD also.

I promise to continue provide the help to technical community as what ever I am now is because of that only..I Would also like to congratulate all the fellow MVPs whop are selected for this Quarter here are the list for the new members who have joined the MVP community.



VenkataRaviKumar Pidikiti

Directory Services

Rajendra Dewani

Commerce Server

Omkarnath Phatak

Visual Basic

Ashish Khandelwal

Visual C#

Kamlesh Rao

SharePoint Server

Udayakumar Ethirajulu

SharePoint Server

Ayush Jain

Excel

Vijaysaradhi Samavedam

Windows Desktop Experience

Niraj Bhat

Windows Azure

Sivakumar Venkataraman

Dynamics GP

Mahender Pal

Dynamics CRM

Vishnu Tiwari

BizTalk

Kunal Chowdhury

Silverlight

Amit Bhawani

Windows Desktop Experience

Abhishek Bhatnagar

Windows Desktop Experience

Ratish Sekharan Nair

Exchange Server


Please congratulate all of them for becoming a Community leader.

Thanks

Anil Kumar Pandey
MVP (2009,2010)

Wednesday, September 29, 2010

Tech Matrix 2 :: Technical Sessions & Loads of Gifts...

Thundering Brain storming technical sessions with stage set to go…

It’s a get-to-gether of Hyderabadtechies..

What do I win if I attend this event .............???

One or more gifts in this mega List

  • Dual Cam Dual Sim Ipod Phone ( Dont keep more expectations its China Made)
  • 10 .Net Ninja /Telerik T Shirts ( Prove as a perfect Geek)
  • 10 Orielly Discount Coupons ( Njoy the special Discount)
  • 10 Mini Mementos (Feel Proud to keep it on your desk)
  • 10 Mini Mobile Recharge Vouchers ( 10 rs - 100 rs)
  • 10 pens ( likhthe likthe......)
  • 10 Kit .................cats ( kawo jawo)
  • 10 Hyderabadtechies points coupons ( 10000 points to reach Hall of fame)
  • Every one will get a participation certificate PDF
  • Every one will get 3 Vouchers for Tech Class Rooms
  • Every one will get 3 Vouchers for Mock Interviews
  • Special Gifts ..... coming soon....

All multi-talented techies under one roof. Assuring that you will return with a wonderful experience.

Wondering What’s this all about?

Hyderabad Techies has successfully organized first offline event i.e., Tech Matrix. Here again going to launch second phase i.e., Tech Matrix2. Putting all efforts to make it a grand success which is possible only with all your co-operation. We know how valuable your time is.. So we are coming up with a schedule which can add incredible value to your time.

TECH MATRIX2

The Technical boon.. Offline sessions from Hyderabad Techies.. Lets meet at one place to share and gain knowledge..

Agenda

OCTOBER 9th Saturday


9:30 AM - 10.00 AM - Open Registrations / Peer networking

10.00 AM - 10.45AM- Cloud Computing/Windows Azure

By Mukul (Microsoft)


10.45 AM - 11. 30 AM- Developing Ensuring the Quality Code with VSTS 2010

By Mr. Durga Rao (eCanarys)


11.30 AM - 11.45 AM - Tea + Snacks
11.45 AM- 12.00 PM - Prize Distribution


12.00 PM - 12.40 PM –MOSS 2010

By Tanveer Fatma (Microsoft)


12.45 PM - 1. 30 PM - .Net apps/Telerik Controls

By Surender (HCL/Microsoft)


1.30 PM - 2.00 PM - Lunch followed by Closing Note

:: Group Photo ::

To know more about TechMatrix2 contact admin@hyderabadtechies.info or chandrashekarthota@gmail.com

Feel free to contact

Mr. ChandraShekarThota @ +91 – 8801094253
or
Chakravarthy in case you face any issue finding out venue.



Please Use this opportunity and attend the session to learn about new things..


Thanks

Anil Kumar Pandey


Monday, September 20, 2010

Important: ASP.NET Security Vulnerability

A few hours ago we released a Microsoft Security Advisory about a security vulnerability in ASP.NET. This vulnerability exists in all versions of ASP.NET.

This vulnerability was publically disclosed late Friday at a security conference. We recommend that all customers immediately apply a workaround (described below) to prevent attackers from using this vulnerability against your ASP.NET applications.

What does the vulnerability enable?

An attacker using this vulnerability can request and download files within an ASP.NET Application like the web.config file (which often contains sensitive data).

At attacker exploiting this vulnerability can also decrypt data sent to the client in an encrypted state (like ViewState data within a page).

How the Vulnerability Works

To understand how this vulnerability works, you need to know about cryptographic oracles. An oracle in the context of cryptography is a system which provides hints as you ask it questions. In this case, there is a vulnerability in ASP.NET which acts as a padding oracle. This allows an attacker to send cipher text to the web server and learn if it was decrypted properly by examining which error code was returned by the web server. By making many such requests (and watching what errors are returned) the attacker can learn enough to successfully decrypt the rest of the cipher text.

How to Workaround The Vulnerability

A workaround you can use to prevent this vulnerability is to enable the feature of ASP.NET, and explicitly configure your applications to always return the same error page - regardless of the error encountered on the server. By mapping all error pages to a single error page, you prevent a hacker from distinguishing between the different types of errors that occur on a server.

Important: It is not enough to simply turn on CustomErrors or have it set to RemoteOnly. You also need to make sure that all errors are configured to return the same error page. This requires you to explicitly set the “defaultRedirect” attribute on the section and ensure that no per-status codes are set.

Enabling the Workaround on ASP.NET V1.0 to V3.5

If you are using ASP.NET 1.0, ASP.NET 1.1, ASP.NET 2.0, or ASP.NET 3.5 then you should follow the below steps to enable and map all errors to a single error page:

1) Edit your ASP.NET Application’s root Web.Config file. If the file doesn’t exist, then create one in the root directory of the application.

2) Create or modify the section of the web.config file to have the below settings:

<configuration>             <system.web>        <customErrors mode="On" defaultRedirect="~/error.html" />     system.web>          configuration>

3) You can then add an error.html file to your application that contains an appropriate error page of your choosing (containing whatever content you like). This file will be displayed anytime an error occurs within the web application.

Notes: The important things to note above is that customErrors is set to “on”, and that all errors are handled by the defaultRedirect error page. There are not any per-status code error pages defined – which means that there are no sub-elements within the section. This avoids an attacker being able to differentiate why an error occurred on the server, and prevents information disclosure.

Enabling the Workaround on ASP.NET V3.5 SP1 and ASP.NET 4.0

If you are using ASP.NET 3.5 SP1 or ASP.NET 4.0 then you should follow the below steps to enable and map all errors to a single error page:

1) Edit your ASP.NET Application’s root Web.Config file. If the file doesn’t exist, then create one in the root directory of the application.

2) Create or modify the section of the web.config file to have the below settings. Note the use of redirectMode=”ResponseRewrite” with .NET 3.5 SP1 and .NET 4.0:

<configuration>     <system.web>       <customErrors mode="On" redirectMode="ResponseRewrite" defaultRedirect="~/error.aspx" />     system.web>  configuration>

3) You can then add an Error.aspx to your application that contains an appropriate error page of your choosing (containing whatever content you like). This file will be displayed anytime an error occurs within the web application.

4) We recommend adding the below code to the Page_Load() server event handler within the Error.aspx file to add a random, small sleep delay. This will help to further obfuscate errors.

VB Version

Below is a VB version of an Error.aspx file that you can use, and which has a random, small sleep delay in it. You do not need to compile this into an application – you can optionally just save this Error.aspx file into the application directory on your web-server:

<%@ Page Language="VB" AutoEventWireup="true" %> <%@ Import Namespace="System.Security.Cryptography" %> <%@ Import Namespace="System.Threading" %>          <span class="kwrd" style="color: rgb(0, 0, 255); ">Error</span>       
Sorry - an error occured

C# Version

Below is a C# version of an Error.aspx file that you can use, and which has a random, small sleep delay in it. You do not need to compile this into an application – you can optionally just save it into the application directory on your web-server:

<%@ Page Language="C#" AutoEventWireup="true" %> <%@ Import Namespace="System.Security.Cryptography" %> <%@ Import Namespace="System.Threading" %>          Error       
An error occurred while processing your request.

How to Verify if the Workaround is Enabled

Once you have applied the above workaround, you can test to make sure the section is correctly configured by requesting a URL like this from your site:http://mysite.com/pagethatdoesnotexist.aspx

If you see the custom error page appear (because the file you requested doesn’t exist) then your configuration should be setup correctly. If you see a standard ASP.NET error then it is likely that you missed one of the steps above. To see more information about what might be the cause of the problem, you can try setting – which will enable you to see the error message if you are connecting to the site from a local browser.

How to Find Vulnerable ASP.NET Applications on Your Web Server

We have published a .vbs script that you can save and run on your web-server to determine if there are ASP.NET applications installed on it that either have turned off, or which differentiate error messages depending on status codes.

You can download the .vbs script here. Simply copy/paste the script into a text file called “DetectCustomErrors.vbs” and save it to disk. Then launch a command window that is elevated as admin and run “cscript DetectCustomErrors.vbs” to run it against your local web-server. It will enumerate all of the applications within your web server and verify that the correct configuration has been specified.

command[1]

It will flag any application where it finds that an application’s web.config file doesn’t have the section (in which case you need to add it), or doesn’t have it set correctly to workaround this attack (in which case you need to update it). It will print “ok” for each application web.config file it finds that is fine. This should hopefully make it easier to locate issues.

Note: We have developed this detection script over the last few hours, and will be refining it further in the future. I will post an update in this section each time we make a change to it.

How to Find More Information about this Vulnerability

You can learn more about this vulnerability from:

Forum for Questions

We have setup a dedicated forum on the www.asp.net site to help answer questions about this vulnerability.

Post questions here to ask questions and get help about this vulnerability.

Summary

We will post more details as we learn more, and will also be releasing a patch that can be used to correct the root cause of the issue (and avoid the need for the above workaround).

Until then, please apply the above workaround to all of your ASP.NET applications to prevent attackers from exploiting it.

Thanks,


Anil Kumar Pandey

Wednesday, September 8, 2010

Data Binding Directions in WPF

Hello All,
As you all know that binding in WPF is simple with the help of "Binding" keyword we can bind the Item to any data source. For binding there must be 2 thing "Source" & "Target", The target can be any any Control or Property derived from DependencyProperty and the Source can be any of the following

  • Public Property of a control
  • CLR(Common Language Runtime) Object
  • XML Element
  • A Dataset
  • and the Static Resource
Text="{Binding ElementName=lbSource}"

Here I am going to discuss the various data binding direction available in the WPF. There are 4 different kind of binding Direction are available we can use them according to our need the various binding directions are.

  1. OneWay
  2. OneWayToSource
  3. OneTime
  4. TwoWay
OneWay :- The most common and the first direction used in the WPF data binding is OneWay. this is the default binding direction which does not need to be specified, in this direction the data always flow from Source to target. The TEXT property of the textblock default binding is OneWay. This is useful when we just want to display the result to the users.


OneWayToSource :- This is also similar to the OneWay binding but the main difference between them is , when we use the OneWayToSource direction the data flows from Target to Source. This can be useful when we want that a user can change the value in the back end.

OneTime :- OneTime property is also similar to the OneWay binding direction, but the thing is that using this option the change in the source not always reflect to the target, the target get updated only when the application load or there is a context change. This is pretty useful when we want to display a user a ReadOnly type of value which does not get change each time.

TwoWay :- This is the useful binding direction in the WPF, when we want that the value can be changed from either side. Here the changes get reflected each time a source value is changed or the target value is changed. This can be quite useful when we want to display the value to the user as well as allow user to change the the value in the back end.

Hope you all have understood waht all are the data binding direction in the WPF, as I always says thing are not complex until we know them. Here are examples for using the binding.

<StackPanel>
<TextBlock Width="248" Height="24" Text="Colors:"
TextWrapping="Wrap"/>
<ListBox x:Name="lbSource" Width="248" Height="56">
<ListBoxItem Content="Blue"/>
<ListBoxItem Content="Green"/>
<ListBoxItem Content="Yellow"/>
</ListBox>

<TextBlock Width="100" Height="30" Text="You selected color:" />

<TextBlock Width="100" Height="30">
<TextBlock.Text>
<Binding ElementName="lbSource" Path="SelectedItem.Content"/>
</TextBlock.Text>
</TextBlock>
</StackPanel>



I hope this post will help in understanding the things of bindings in WPF. Please feel free to post the comments.

Thanks
Anil Kumar Pandey
MVP (Visual c#)

Kontera