C1.Silverlight.Binding Namespace : C1Binding Class |
'Declaration
Public Class C1Binding Inherits System.Windows.Markup.MarkupExtension
public class C1Binding : System.Windows.Markup.MarkupExtension
The C1Binding class is similar to a regular C1.Silverlight.Binding, but supports expressions instead of simple paths.
The expression syntax is similar to the one used in Excel formulas, including support for the IF statement which makes it easy to create bindings that make Converters unnecessary.
<TextBlock Text="{c1:C1Binding Expression=CustomerName}" Visibility="{c1:C1Binding Expression='if(Active, |Visible|, |Collapsed|)'}" FontWeight="{c1:C1Binding Expression='if(Sales > 200, |Bold|, |Normal|)'}" Foreground="{c1:C1Binding Expression='if(Sales > 200, |Blue|, |Red|)'}" />
System.Object
System.Windows.Markup.MarkupExtension
C1.Silverlight.Binding.C1Binding
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2