• Home
  • About
  • BestBloggingIdeas
  • DotNetLearningSource
  • FORUM
  • Joblinks
  • Latest News
  • Policy
  • POSTS
  • SimplySqlServer.Com && SimplyAspDotNet.Com
  • Sitemap

Join Ours Forum

Asp.Net,C#,Ajax,Sql server,silverlight,Javascript codes exambles articles,Programming exambles

RSS Feed
  • Bounty Huge Roll [Amazon Frustration-Free Packaging]
  • XML Introduction to XML VHS Video Training, 1 hr., 32 minutes.
  • The Basic Overview of Windows Mobile Development Asp.Net C#
  • Overview of Sql server extended properties Asp.Net C#
  • How to Use Sql Server Extended properties using visual studio Asp.Net C#
  • Adobe Dreamweaver Templates Accelerate Web Development
  • Top Tips for Web Design Projects
  • How to Achieve a Good Web Design Structure
  • To Use Or Not To Use Website Templates
  • Five Tips to a Successful Website
  • Top 10 Articles,


    Silverlight Datagrid Select Update Delete Insert Asp.Net C#

    Differences Similarities Benefits Between Typed Datasets and Untyped Datasets asp.net c#

    Linq to Sql Introduction Entities Ado.Net C# SqlClasses Attributes Linq Mapping

    Linq Programming/How Linq Works?/Linq Implementation In Asp.Net C# Ado.Net

    Performing Developing Using Investigating Asp.Net 2.0 Ajax Application Development Asp.Net C#

    Hosting/Install Wcf Services in a Windows Service Asp.Net C#

    Connecting Silverlight to Wcf Asp.Net C#

    Silverlight Data Grid Data Binding WCF Asp.Net C#

    Invoking/Accessing/Calling WCF Service Without Adding/Creating Proxy/Reference Asp.Net C#

    Performing Doing Creating Insert Update Delete sql data Using Linq Database Asp.Net C#

    Silverlight Data Binding OneWay TwoWay Asp.Net C# XAML

    Posted by on August 31, 2010 Leave a comment (1) Go to comments

    Introduction:
    In this article,i am going explain about,what are the binding options and modes available in silverlight application.

    Main:
    Data binding is simply a process of displaying data to the end user.Silverlight contains a rich data binding platform
    that will help us to fetching data in faster and using less code.

    Databinding needs atleast the below two items,

    1.UI elements, (refers UI element,element property)
    2.A Collection Source (refers a datasource and its path)

    Next we need to find a path/protocol for connecting the above two items,Normally we will use datacontext for mapping
    data into UI elements.

    The DataContext is the source of all entities mapped over a connection. It tracks changes that you made to all
    retrieved entities and maintains an “identity cache” that guarantees that entities retrieved more than one time are
    represented by using the same object instance.

    Different Modes of Data Binding,

    The direction of the flow of data in a data binding scenario is controlled by the Mode property of the Binding.

    The data has flowed from the source to the target (the UI controls). However, it can also flow in the opposite direction,
    that is, from the target towards the source. This way, not only can data binding help us in displaying data, but also in
    persisting data.

    The data flow from source to target can be classified into modes ONEWAY,TWOWAY,ONLY ONCE,

    A OneTime binding should be the default for data that does not change when displayed to the user. When using this mode,
    the data flows from source to target. The target receives the value initially during loading and the data displayed in
    the target will never change. Quite logically, even if a OneTime binding is used for a TextBox, changes done to the data
    by the user will not flow back to the source.

    We should use a OneWay binding for binding scenarios in which we want an up-to-date display of data. Data will flow from source to target here also, but every change in the values of the source properties will propagate to a change of the displayed values. Think of a stock market application where updates are happening every second. We need to push the updates to the UI of the application.

    <TextBlock x:Name="CurrentBalanceValueTextBlock"
               Text="{Binding CurrentBalance, Mode=OneWay}" >
    </TextBlock>

    The TwoWay bindings can help in persisting data. The data can now flow from source to target, and vice versa. Initially, the values of the source properties will be loaded in the properties of the controls. When we interact with these values (type in a textbox, drag a slider, and so on), these updates are pushed back to the source object. If needed, conversions can be done in both directions.

    Add a note hereThere is one important requirement for the OneWay and TwoWay bindings. If we want to display up-to-date values, then the INotifyPropertyChanged interface should be implemented. The OneTime and OneWay bindings would have the same effect, even if this interface is not implemented on the source. The TwoWay bindings would still send the updated values if the interface was not implemented; however, they wouldn’t notify about the changed values. It can be considered as a good practice to implement the interface, unless there is no chance that the updates of the data would be displayed somewhere in the application. The overhead created by the implementation is minimal.

    <TextBlock x:Name="CurrentBalanceValueTextBlock"
               Text="{Binding CurrentBalance, Mode=TwoWay}" >
    </TextBlock>

    conclusion:
    Hope this helps,
    Happy coding.

    SILVERLIGHT
    ← Accessing Executing Running Stored Procedure/Function/Package Using Linq Silverlight Xaml
    How to declare/use global constants (enum’s) in javascript ajax function →

    Learn Easily Using Video Tutorials


    How to choose the right Java IDE – explained Eclipse NetBeans BlueJ

    Developing/Creating/Performing/Configuring Java Applications Using Eclipse IDE

    Step By Step Guide for Download/Install Configure Eclipse IDE for Java

    Editing data with the GridView control Asp.Net C#

    Registering/Configuring Web Controls globally in web.config file asp.net c#

    Registering/Configuring Web Controls globally in web.config file asp.net c#

    Best way to prepare asp.net Interview - Success Stories

    Download Important Questions and PPT's:

    Sql Server Important Questions Online free download

    Dotnet Important Questions Online free download

    Exploring Linq to Sql Process Flow

    Learn how to perform silverlight programming

    Learn OOPs concepts in better and well manner

    Learn Ajax in better and well manner

    Leave a comment

    1 Comments.

    1. meble kuchenne Kraków August 15, 2011 at 9:40 pm

      Home is like an escalation of our ideas about the interior, where we feel good and we can relax. We try therefore to choose such furniture

    Leave a Reply Cancel reply

    Your email address will not be published. Required fields are marked *

    *

    *


    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

    Enter your email address:

    Delivered by FeedBurner

    • Recent Posts

      • Bounty Huge Roll [Amazon Frustration-Free Packaging]
      • XML Introduction to XML VHS Video Training, 1 hr., 32 minutes.
      • The Basic Overview of Windows Mobile Development Asp.Net C#
      • Overview of Sql server extended properties Asp.Net C#
      • How to Use Sql Server Extended properties using visual studio Asp.Net C#
    • Search by Tags!

      Application AspNet Basic between Black Bluetooth Build Business Collection Consultants Design Development Downloading effective Excel Experts Generics Implement Installing Interview Logic Management Microsoft Minutes Object Outlook Professional Programmer Programming Project Projects Questions Ready Select Server Services Silverlight Source Strings Studio Through using Visual Website Wordpress
    • Archives

      • August 2011
      • June 2011
      • May 2011
      • April 2011
      • March 2011
      • February 2011
      • December 2010
      • November 2010
      • October 2010
      • September 2010
      • August 2010
      • July 2010
      • June 2010
      • May 2010
      • April 2010
      • March 2010
      • February 2010
      • January 2010
      • December 2009
      • November 2009
      • October 2009
      • September 2009

    Copyright © 2012 NetProgrammingHelp.com

    Δ Top