WPF Databinding: How do I access the “parent” data context?

I have a list (see below) contained in a window. The window’s DataContext has two properties, Items and AllowItemCommand. How do I get the binding for the Hyperlink‘s Command property needs to resolve against the window’s DataContext? <ListView ItemsSource=”{Binding Items}”> <ListView.View> <GridView> <GridViewColumn Header=”Action”> <GridViewColumn.CellTemplate> <DataTemplate> <StackPanel> <TextBlock> <!– this binding is not working –> … Read more

How to bind multiple values to a single WPF TextBlock?

I’m currently using the TextBlock below to bind the value of a property named Name: <TextBlock Text=”{Binding Name}” /> Now, I want to bind another property named ID to the same TextBlock. Is it possible to bind two or more values to the same TextBlock? Can it be done with simple concatenation, like Name + … Read more