0
我有一個數據模板內的圖像,我想調用一個方法時,它獲得焦點,但gotfocus事件不會觸發。下面是代碼:GotFocus事件沒有觸發
<DataTemplate>
<Canvas x:Name="cv">
<Image x:Name="img1" Source = "{Binding ModelImage}" Stretch="Fill" Width="432" Height="357" MaxWidth="432" MaxHeight="357"/>
<Image Source = "{Binding HairStyleImage}" Stretch="Fill" ManipulationMode="All" ManipulationDelta="ResourceImage_ManipulationDelta" GotFocus="focussed" LostFocus="lostFocus">
<Image.RenderTransform>
<CompositeTransform />
</Image.RenderTransform>
</Image>
</Canvas>
</DataTemplate>