public static UiLabelBindingBuilderSyntax BindTo <TSource>(this UILabel label, Property <TSource> property) { var builder = new UiLabelBindingBuilderSyntax(label); builder.target.text = property.Value.ToString(); property.PropertyChanged += (sender, e) => builder.target.text = String.Format(builder.Format, e.PropertyValue.ToString()); return(builder); }
public static void WithFormat(this UiLabelBindingBuilderSyntax builderSyntax, string format) { builderSyntax.Format = format; }