我想在Next按钮的click事件中导航到新页面.假设我当前的页面是"FirstTestPage.xaml",并想点击nextButton_Click事件继续页面"SecondTestPage.xaml"
private void RadButton_Click(object sender, RoutedEventArgs e)
{
///CODE HERE
}
Run Code Online (Sandbox Code Playgroud)
并且还想要后退按钮将我转移到FirstTestPage.xaml.
谢谢
我想找到当前URL中文件的扩展名.我用过
http://tol.imagingtech.com/eIL/cgi-bin/eIL.pl?ACTION=get_trans_doc&DOC=ALL&CAB_NAME=TOL_AP_2012&WHSE=18&PAYEE=23003655&INV=01235770
这个文件的扩展名是(.pdf)我怎么能得到这个.有时它会是(.doc,.txt,.jpeg),所以我想要一个确切的.
以下是我用来检索文件扩展名的代码
var extFile = Document.DocumentFilePath.Split('.');
return "Backup document." + extFile[extFile.Length-1].Trim().ToLower();
它适用于普通的本地路径,但无法检索DocumentFilePath是url的扩展.