wpf RelativeSource binding
Self
FindAncestor
TemplatedParent
b.FindAncestor
FindAncestor
As the name suggests, this option is used when the binding source is one of the ancestors (parents) of the binding target. Ancestors can be found at any level using the FindAncestor extension.
Now, let’s use the FindAncestor extension to bind the ancestor’s Name property to the Content property of the child element button.
Final renderings
My series of articles
A.Sql Server2005 Transact-SQL New Weapon Learning
B.MCAD Learning
C.Code Reading Summary
D.ASP.NET State Management
E.DB (database)
F.WAP
G.WinForm
H.Flex
I hope the knowledge mentioned above can be helpful to you, and welcome exchanges and corrections
Author: aierong
Source: http://www.cnblogs.com/aierong
The post ends with “Current Situation” “Provided without any guarantee and without granting any rights!
The copyright of this article belongs to the author, welcome to reprint!
Original technical articles and experiences, please indicate the source when reprinting! This is also a respect for the original author!