Export (0) Print
Expand All

FrameworkContentElement.BindingGroup Property

Gets or sets the BindingGroup that is used for the element.

Namespace:  System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

[LocalizabilityAttribute(LocalizationCategory.NeverLocalize)]
public BindingGroup BindingGroup { get; set; }
<object>
  <object.BindingGroup>
    <BindingGroup .../>
  </object.BindingGroup>
</object>

Property Value

Type: System.Windows.Data.BindingGroup
The BindingGroup that is used for the element.

Identifier field

BindingGroupProperty

Metadata properties set to true

Inherits

A BindingGroup can be used to validate the values of multiple properties of an object. For example, suppose that an application prompts the user to enter an address and then populates an object of type Address, which has the properties Street, City, ZipCode, and Country, with the values that the user provided. The application has a panel that contains four TextBox controls, each of which is bound to one of the object’s properties. You can use a ValidationRule in a BindingGroup to validate the Address object. For example, the ValidationRule can ensure that the zip code is valid for the country of the address.

Child elements inherit the BindingGroup from their parent elements, just as with any other inheritable property.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5 SP1, 3.0 SP2

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft