1
我正在尝试创建一个新的uri,并试图从几个按钮中使用一些信息。WP从按钮收集信息?
在XAML我有例如3个按键,所有的按钮具有相同的Click="button_clicked"
当按钮被点击我要一张从被点击即其内容按键信息,并在一个新的URI使用。
private void Button_Click(object sender, RoutedEventArgs e)
{
newurl.findurl = ("http://website.com/" + Content + ".zip");
NavigationService.Navigate(new Uri("/WebPage.xaml", UriKind.Relative));
}
如果我使用System.Diagnostics.Debug.Writeline(Content);
我得到的是这样的System.Windows.Controls.Grid
谢谢你,我结束了使用VAR OBJ =发件人为按钮;字符串内容= obj.Tag.ToString(); newurl.findurl = content; – black1stallion2 2014-11-02 10:36:29