Top "Relativesource" questions

WPF pass parent binding object to the converter

I have ItemsControl that is bound to collection of type Student. Inside the ItemTemplate I have a TextBox that uses …

wpf binding parent relativesource
WPF Passing data object from Main application UI to user control

I have user controls defined to represent the contents of tab items so as to split up a large XAML …

wpf user-controls relativesource
WPF - RelativeSource in Style

My target is to bind the Content-Property of the Label to the Tag-Property of the Elements the Style is applied …

wpf xaml binding styles relativesource
Using FindAncestor from within an Itemscontrol datatemplate to find a textblock outside of the datatemplate

I have a ItemsControl that's bound to an object, within the datatemplate of the ItemsControl i have two textblocks, I …

wpf relativesource findancestor
Difference between setting DataContext=this in constructor and Binding to {RelativeSource Self} in WPF?

Next code works as expected: AskWindow.xaml: <Window x:Class='AskWPF.AskWindow' xmlns:x='http://schemas.microsoft.com/winfx/2006/…

c# wpf xaml datacontext relativesource
WPF Relative source- Cannot find source for binding with reference

have you ever have a problem like this: System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource …

wpf binding listbox relativesource
Binding to a RelativeSource Self in Silverlight

I am trying to bind a value of a slider control to a property that is in the same control: &…

silverlight binding self relativesource
How to properly bind datacontext RelativeSource in WPF?

I am defining the RelativeSource in my Template in the XAML, with DataContext="{Binding RelativeSource={RelativeSource Self}}" I am getting …

wpf relativesource
Programmatically creating a RelativeSource FindAncestor binding

I am writing some code which programmatically creates bindings on the fly, but I can't seem to read the value …

c# wpf xaml relativesource findancestor
Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='MahApps.Metro.Controls.Glow', AncestorLevel='1''

I've created one wpf application in which I've used MahApps Metro tools for my view window. My application is working …

c# wpf xaml relativesource findancestor