so, i am trying to get the following to work:
<Style x:Key="ToolTipVisibility" TargetType="{x:Type StackPanel}">
<Setter Property="Visibility" Value="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}},Path=EnabledToolTips}" />
calling this from inside of a xaml control, and the property is in my main window:
public Visibility EnabledToolTips {
get { return Visibility.Collapsed; } // testing
}
nothing fails, it just shows default tooltip behavior.
are there ways to profile wpf binding process to see why exactly this fails? Looking for ways to troubleshoot cases such as this one..