Telerik blogs

Latest

For the latest product updates, please visit Release.

  • Mobile

    Windows 8 & Data Binding. Part 4–Data Conversion

    In Part 3 of this little mini-series on data binding in Windows 8 we looked at Element Binding. Today, we’ll take a look at Data Conversion. At times the data in your business object (the source for your binding) and the target UIElement may not have an exact type match. For example, if your Employee class wants to keep track of the start date for each Employee, a sensible way to do so is with a DateTime object. However, when we display that data we’ll want to use a Text object, and we may not want the entire default conversion of...
    August 17, 2012
  • Mobile

    Data Binding In Windows 8. Part 3–Element Binding

    In my previous post, I discussed the three modes of DataBinding for Windows 8. Today we’ll take a brief look at binding not to data, but rather binding one UI element to the value of another.  In this example, we’ll bind the IsActive property of the ProgressRing to the IsChecked property’s value in a CheckBox.  <StackPanel> <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" > <TextBlock ...
    August 15, 2012
  • Mobile

    Windows 8–Data binding Part 2

    In my previous blog post I introduced data binding.  It worked, but there was no mechanism for updating.  Updating comes in two flavors, and these are often confused by folks new to databinding: Someone else updates the underlying data; we’d like the display to be updated The user updates the data on the display, we’d like the underlying data to be updated The first case arises because most of the time you are not the only user of your program – other users may be connected to the same data and while you are looking at your data someone else...
    August 13, 2012
  • Mobile

    Windows 8 Primer–Data Binding (Part 1)

    Data-binding is often thought of as an advanced topic, but there really is no reason for that. data-binding is Critical to writing XAML applications Not very difficult to learn A very powerful technique Note to Silverlight, WPF and Windows Phone Programmers: Nothing Here Is New.  Data-binding in Windows 8 works exactly as you expect. The basic idea behind data-binding couldn’t be simpler: we are going to provide values to UIElements based on the values of objects or of other UIElements.  In this first tutorial, we’ll keep it simple and bind the value of POCO (Plain Old CLR Objects) to UI elements. For example, if I have...
    August 10, 2012