Top "Relativesource" questions

How do I use WPF bindings with RelativeSource?

How do I use RelativeSource with WPF bindings and what are the different use-cases?

.net wpf xaml data-binding relativesource
Access parent DataContext from DataTemplate

I have a ListBox which binds to a child collection on a ViewModel. The listbox items are styled in a …

wpf xaml data-binding datatemplate relativesource
WPF TemplateBinding vs RelativeSource TemplatedParent

What is the difference between these 2 bindings: <ControlTemplate TargetType="{x:Type Button}"> <Border BorderBrush="{TemplateBinding Property=Background}"&…

wpf relativesource templatebinding
What exactly does WPF Data Binding's "RelativeSource FindAncestor" do?

I am currently working within a WPF user control (the root element of my XAML file is "UserControl"), which I …

wpf data-binding xaml relativesource findancestor
Silverlight 4 RelativeSource FindAncestor binding

Will there be RelativeSource FindAncestor, AncestorType... in Silverlight 4?

.net silverlight binding relativesource
RelativeSource FindAncestor issue

Here is the code: <GridViewColumn DisplayMemberBinding="{Binding Path=BookId}" Width="100"> <GridViewColumn.Header> <Border BorderBrush="Black"&…

wpf listview binding relativesource
RelativeSource binding from a ToolTip or ContextMenu

What am I doing wrong here?: <GridViewColumn> <GridViewColumn.CellTemplate> <DataTemplate> <Button> <…

wpf xaml binding relativesource
WPF Bind to parent property from within nested element using style

I've been trying to build a text box with a hint that's displaying while it's empty. I'm having trouble setting …

wpf styles relativesource
Binding to DataContext outside current ItemsSource context

I have a DataSet bound to the Window.DataContext; I also have a DataGrid: <DataGrid ItemsSource={Binding Tables[Items]}&…

wpf data-binding datagrid itemssource relativesource
Bind to Parent Object Property with RelativeSource

I've built a WPF based Treeview with Item -Subitem If Subitem is selected, I would like to display also Properties …

c# wpf binding treeview relativesource