BindingBase.StringFormat Property
Gets or sets a string that specifies how to format the binding if it displays the bound value as a string.
Namespace: System.Windows.Data
Assembly: System.Windows (in System.Windows.dll)
Property Value
Type: System.StringA string that specifies how to format the binding if it displays the bound value as a string. The default is null.
| Exception | Condition |
|---|---|
| InvalidOperationException |
When setting this property, the binding has already been attached to a binding target. |
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
An example
<TextBlock Text="{Binding ValidationIssues.Count, StringFormat='Validation Issues ({0})'}" />
- 1/26/2011
- Arunjeet Singh2
No example for this property
It's a string property. Great; what do you put in the string? It doesn't follow string.Format formatters...
- 11/7/2010
- Alexander G. Bykin
- 12/17/2010
- Brad Wood