【发布时间】:2015-06-06 12:20:42
【问题描述】:
我想将远程图像添加到应用栏按钮。
我的图片是这个网址http://2.bp.blogspot.com/-yEbb9_qp-jg/U8-KGeZAy3I/AAAAAAAAB0U/m91Bv1jPAQI/s1600/india+win+at+lords.jpg
我想将它从后端绑定到 appbarbutton 。我的后端代码是propic.UriSource = new Uri("http://2.bp.blogspot.com/-yEbb9_qp-jg/U8-KGeZAy3I/AAAAAAAAB0U/m91Bv1jPAQI/s1600/india+win+at+lords.jpg");
但是我的后端代码不起作用...请告诉我该怎么做
下面是我的 Xaml 代码
<AppBarButton Label="Ride Now">
<AppBarButton.Icon>
<BitmapIcon x:Name="propic" Height="100" Width="100"/>
</AppBarButton.Icon>
</AppBarButton>
<CommandBar.SecondaryCommands>
<AppBarButton Label="Ride Now">
<AppBarButton.Icon>
<BitmapIcon x:Name="propic12" Height="100" Width="100"/>
</AppBarButton.Icon>
</AppBarButton>
<AppBarButton Label="x" Icon="Admin" />
</CommandBar.SecondaryCommands>
</CommandBar>
</Page.BottomAppBar>
【问题讨论】:
标签: c# xaml windows-phone-8 windows-phone-8.1 windows-phone-7.1