1
Buttonの親の親を取得したいとします。私は親を得ることができるwpfボタンの親の親を取得する方法
Dim tempB As Button = CType(sender, Button)
Dim g1 As Grid = CType(tempB.Parent, Grid)
(私のクリックハンドラーで)。私は
Dim g2 As New Object
g2 = g1.Parent
tempB.Content = g2.GetType
をすればしかし、私はここでNullReference Exception