我在使用VS Express for Windows 8 Phone构建的解决方案时遇到问题 . MainPage.xaml处于设计器模式,我添加了3个Textboxes:

TextBox1, Textbox2, Textbox3

现在,我需要在单击按钮后从这些文本框中获取数据到文件名 . 这是按钮代码:

Private Sub cam_GetFilename(ByVal sender As Object, ByVal e As Microsoft.Devices.ContentReadyEventArgs)
Dim fileName As String = savedCounter & "_" & DateTime.Now.ToString("d") & ".jpg"

我正在寻找有关如何将Textbox1.value,Textbox2.value,Textbox3.value添加到上面的代码中的帮助,如下例所示:

Dim fileName As String = savedCounter & "_" & Textbox1.value & "_" & Textbox2.value & "-" & Textbox3.value & "-" & DateTime.Now.ToString("d") & ".jpg"

Textbox1.value,Textbox2.value,Textbox3.value来自MainPage.xaml .