首页 新闻 搜索 专区 学院

wpf datatemplate 绑定button.click

0
悬赏园豆:30 [待解决问题]

<window.resources> 

<datatemplate>

<local:DynamicImageButton x:Name="myLocation" Content="我的位置" Height="90" Click="Convertmap_Click">
                                            <local:DynamicImageButton.IconImage>
                                                <BitmapImage UriSource="/Resources/6.jpg"/>
                                            </local:DynamicImageButton.IconImage>
                                        </local:DynamicImageButton>

</datatemplate>

<datatemplate>

  <Border.Triggers>
                            <EventTrigger RoutedEvent="local:DynamicImageButton.Click"  SourceName ="myLocation">

-------------------------

</datatemplate>

<window.resources>

 

 ,无法使用sourcename = myLocation.创建mylocation失败,怎么样修改才能够不报错???
 
 
蚂蚁大侠的主页 蚂蚁大侠 | 初学一级 | 园豆:115
提问于:2012-10-19 12:45
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册