${res:Templates.File.WinFXPageFunction.Name}
3.0
3.0
3.0
]]>
''' Interaction logic for ${FileName}
'''
Public Partial Class ${FileNameWithoutExtension}
Inherits PageFunction(Of String)
Public Sub New()
InitializeComponent()
End Sub
' The OnLoaded handler can be run automatically when the class is loaded. To use it, add Loaded="OnLoaded" to the attributes of the root element of the .xaml file and uncomment the following line.
' Private Sub OnLoaded(sender As Object, e As RoutedEventArgs)
' End Sub
'
' Sample Finish Handler
' Private Sub OnClickDone(sender As Object, e As RoutedEventArgs)
' OnFinish(New ReturnEventArgs(Of String)("The return value"))
' End Sub
' To launch this page function, put this code in the launching page.
' Dim pageFunction As New ${FileNameWithoutExtension}()
' pageFunction.[Return] += New ReturnEventHandler(Of String)(OnFileNameWithoutExtensionReturned)
' _NavWin.Navigate(pageFunction)
'
' This handler goes in the launching page.
' Public Sub On${FileNameWithoutExtension}Returned(sender As Object, e As ReturnEventArgs(Of String))
' Console.WriteLine("${FileNameWithoutExtension} returned: " & e.Result)
' End Sub
End Class]]>