Show / Hide Table of Contents

Class BindingProxy

A proxy to allow binding of a DependencyObject that is not part of a visual tree (e.g. a DataGridColumn).

Inheritance
object
DispatcherObject
DependencyObject
Freezable
BindingProxy
Freezable.Clone()
Freezable.CloneCore(Freezable)
Freezable.CloneCurrentValue()
Freezable.CloneCurrentValueCore(Freezable)
Freezable.CreateInstance()
Freezable.Freeze()
Freezable.Freeze(Freezable, bool)
Freezable.FreezeCore(bool)
Freezable.GetAsFrozen()
Freezable.GetAsFrozenCore(Freezable)
Freezable.GetCurrentValueAsFrozen()
Freezable.GetCurrentValueAsFrozenCore(Freezable)
Freezable.OnChanged()
Freezable.OnFreezablePropertyChanged(DependencyObject, DependencyObject)
Freezable.OnFreezablePropertyChanged(DependencyObject, DependencyObject, DependencyProperty)
Freezable.OnPropertyChanged(DependencyPropertyChangedEventArgs)
Freezable.ReadPreamble()
Freezable.WritePostscript()
Freezable.WritePreamble()
Freezable.CanFreeze
Freezable.IsFrozen
Freezable.Changed
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Equals(object)
DependencyObject.GetHashCode()
DependencyObject.GetLocalValueEnumerator()
DependencyObject.GetValue(DependencyProperty)
DependencyObject.InvalidateProperty(DependencyProperty)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, object)
DependencyObject.SetValue(DependencyProperty, object)
DependencyObject.SetValue(DependencyPropertyKey, object)
DependencyObject.ShouldSerializeProperty(DependencyProperty)
DependencyObject.DependencyObjectType
DependencyObject.IsSealed
DispatcherObject.Dispatcher
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Sartorius.SAF.Presentation.Infrastructure
Assembly: Sartorius.SAF.Presentation.dll
Syntax
public class BindingProxy : Freezable
Examples

The following example shows how to bind the visibility of a DataGridColumn to a property of the current data context.

<SAF:DataGrid>
    <SAF:DataGrid.Resources>
        <SAF:BindingProxy x:Key="DataContextProxy" DataContext="{Binding}" />
        <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
    </SAF:DataGrid.Resources>
    <DataGrid.Columns>
        <DataGridTextColumn Binding="{Binding Property}"
                            Visibility="{Binding DataContext.IsColumnVisible, Source={StaticResource DataContextProxy}, Converter={StaticResource BooleanToVisibilityConverter}}" />
    </DataGrid.Columns>
</SAF:DataGrid>

Fields

View Source

DataContextProperty

Identifies the DependencyProperty for DataContext.

Declaration
public static readonly DependencyProperty DataContextProperty
Field Value
Type Description
DependencyProperty

Properties

View Source

DataContext

Gets or sets the data context.

Declaration
public object DataContext { get; set; }
Property Value
Type Description
object

Methods

View Source

CreateInstanceCore()

When implemented in a derived class, creates a new instance of the Freezable derived class.

Declaration
protected override Freezable CreateInstanceCore()
Returns
Type Description
Freezable

The new instance.

Overrides
Freezable.CreateInstanceCore()

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
DependencyObjectExtensions.XamlClone<T>(T)
DependencyObjectExtensions.FindAncestor<T>(DependencyObject)
DependencyObjectExtensions.FindFirstChildByType<T>(DependencyObject)
DependencyObjectExtensions.FindLogicalAncestor<T>(DependencyObject)
DependencyObjectExtensions.GetChildrenByType<T>(DependencyObject)
DependencyObjectExtensions.GetContainer(DependencyObject)
DependencyObjectExtensions.SetContainer(DependencyObject, CompositionContainer)
  • View Source
Back to top Generated by DocFX