Class BindingProxy
A proxy to allow binding of a System.Windows.DependencyObject that is not part of a visual tree (e.g. a System.Windows.Controls.DataGridColumn).
Inheritance
System.Object
System.Windows.Threading.DispatcherObject
System.Windows.DependencyObject
System.Windows.Freezable
BindingProxy
System.Windows.Freezable.Clone()
System.Windows.Freezable.CloneCore(System.Windows.Freezable)
System.Windows.Freezable.CloneCurrentValue()
System.Windows.Freezable.CloneCurrentValueCore(System.Windows.Freezable)
System.Windows.Freezable.CreateInstance()
System.Windows.Freezable.Freeze()
System.Windows.Freezable.Freeze(System.Windows.Freezable, System.Boolean)
System.Windows.Freezable.FreezeCore(System.Boolean)
System.Windows.Freezable.GetAsFrozen()
System.Windows.Freezable.GetAsFrozenCore(System.Windows.Freezable)
System.Windows.Freezable.GetCurrentValueAsFrozen()
System.Windows.Freezable.GetCurrentValueAsFrozenCore(System.Windows.Freezable)
System.Windows.Freezable.OnChanged()
System.Windows.Freezable.OnFreezablePropertyChanged(System.Windows.DependencyObject, System.Windows.DependencyObject)
System.Windows.Freezable.OnFreezablePropertyChanged(System.Windows.DependencyObject, System.Windows.DependencyObject, System.Windows.DependencyProperty)
System.Windows.Freezable.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)
System.Windows.Freezable.ReadPreamble()
System.Windows.Freezable.WritePostscript()
System.Windows.Freezable.WritePreamble()
System.Windows.Freezable.CanFreeze
System.Windows.Freezable.IsFrozen
System.Windows.Freezable.Changed
System.Windows.DependencyObject.ClearValue(System.Windows.DependencyProperty)
System.Windows.DependencyObject.ClearValue(System.Windows.DependencyPropertyKey)
System.Windows.DependencyObject.CoerceValue(System.Windows.DependencyProperty)
System.Windows.DependencyObject.Equals(System.Object)
System.Windows.DependencyObject.GetHashCode()
System.Windows.DependencyObject.GetLocalValueEnumerator()
System.Windows.DependencyObject.GetValue(System.Windows.DependencyProperty)
System.Windows.DependencyObject.InvalidateProperty(System.Windows.DependencyProperty)
System.Windows.DependencyObject.ReadLocalValue(System.Windows.DependencyProperty)
System.Windows.DependencyObject.SetCurrentValue(System.Windows.DependencyProperty, System.Object)
System.Windows.DependencyObject.SetValue(System.Windows.DependencyProperty, System.Object)
System.Windows.DependencyObject.SetValue(System.Windows.DependencyPropertyKey, System.Object)
System.Windows.DependencyObject.ShouldSerializeProperty(System.Windows.DependencyProperty)
System.Windows.DependencyObject.DependencyObjectType
System.Windows.DependencyObject.IsSealed
System.Windows.Threading.DispatcherObject.Dispatcher
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.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 System.Windows.Controls.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 SourceDataContextProperty
Identifies the System.Windows.DependencyProperty for DataContext.
Declaration
public static readonly DependencyProperty DataContextProperty
Field Value
Type | Description |
---|---|
System.Windows.DependencyProperty |
Properties
View SourceDataContext
Gets or sets the data context.
Declaration
public object DataContext { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
Methods
View SourceCreateInstanceCore()
When implemented in a derived class, creates a new instance of the System.Windows.Freezable derived class.
Declaration
protected override Freezable CreateInstanceCore()
Returns
Type | Description |
---|---|
System.Windows.Freezable | The new instance. |
Overrides
System.Windows.Freezable.CreateInstanceCore()