relativesource

WPF binding screentip with relative source

I was expecting the title of the screen tip to show "X" as well, but it is empty: <Fluent:Button x:Name="rbNewProject" Header="X"> <Fluent:Button.ToolTip> <Fluent:ScreenTip Title="{Binding Header, RelativeSource={RelativeSource FindAncestor, AncestorType=Fluent:Button}}"> </Fluent:ScreenTip> </Fluent:But...

Binding to DataContext outside current ItemsSource context

Hello, I have a DataSet bound to the Window.DataContext; I also have a DataGrid <DataGrid ItemsSource={Binding Tables[Items]}> <DataGrid.Columns> <DataGridTextBoxColumn Header={Binding Path=DataContext.Tables[Names]/Test, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}} /> </DataGrid.Columns> <...