PriorityBinding.Bindings Property

Gets the collection of Binding objects that is established for this instance of PriorityBinding.

Namespace:  System.Windows.Data
Assembly:  PresentationFramework (in PresentationFramework.dll)

public Collection<BindingBase> Bindings { get; }

XAML Values


One or more Binding objects; PriorityBinding does not currently support MultiBinding or PriorityBinding objects.

Property Value

Type: System.Collections.ObjectModel.Collection<BindingBase>
A collection of Binding objects. PriorityBinding currently supports only objects of type Binding and not MultiBinding or PriorityBinding. Adding a Binding child to a PriorityBinding object implicitly adds the child to the BindingBase collection for the MultiBinding object. The default is an empty collection.


This property can only be set in Extensible Application Markup Language (XAML) by using the collection syntax that is shown in the following example, or by accessing the collection object and using its various methods, such as Add. The property that you use to access the collection object is read-only, whereas the collection itself is read/write.

In the following example, <PriorityBinding.Bindings> is implicit. The Binding objects that are established for the PriorityBinding are implicitly added to the BindingBase collection. For more information, see the "Property Value" section earlier in this topic.

  <c:AsyncDataSource SlowestDP="Slowest Value" SlowerDP="Slower Value"
                     FastDP="Fast Value" x:Key="AsyncDS" />
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center"
  DataContext="{Binding Source={StaticResource AsyncDS}}">
  <TextBlock FontSize="18" FontWeight="Bold" Margin="10"
    HorizontalAlignment="Center">Priority Binding</TextBlock>
  <TextBlock Background="Honeydew" Width="100" HorizontalAlignment="Center">
      <PriorityBinding FallbackValue="defaultvalue">
        <Binding Path="SlowestDP" IsAsync="True"/>
        <Binding Path="SlowerDP" IsAsync="True"/>
        <Binding Path="FastDP" />

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0

.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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft