Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

get datacontext of parent wpf

Binding="{Binding RelativeSource={RelativeSource FindAncestor, 
AncestorType={x:Type Window}}, Path=DataContext.AllowItemCommand}" 
 
PREVIOUS NEXT
Tagged: #datacontext #parent #wpf
ADD COMMENT
Topic
Name
4+1 =