Search This Blog

Friday, July 24, 2015

How to bind to a parent DataContext WPF

WPF > RelativeSource



IsEnabled="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}, Path=DataContext.IsAPGCSourceFitted}"