Provide a name for your window and explicitly bind to it, for example
<window x:Name="ReportsPage"/> ... <MenuItem DataContext="{Binding ElementName=ReportsPage}"/>
UPDATE
Since the context menu is actually located in its own window, binding is a bit more complicated. Therefore, it is best to approach the RelativeSource to the parent context and pull the header text from there:
<Window.DataContext> <local:MainVM HeaderText="Jabberwocky" /> </Window.DataContext> ... <TextBlock Text="{Binding HeaderText}"> <TextBlock.ContextMenu> <ContextMenu> <MenuItem Header="{Binding Path=Parent.DataContext.HeaderText, RelativeSource={RelativeSource Self}}" /> </ContextMenu> </TextBlock.ContextMenu>
What for this context creates this

OmegaMan Oct. 15 '14 at 13:10 2014-10-15 13:10
source share