added SSCLI 1.0
[windows-sources.git] / sdk / samples / WPFSamples / SafeFileUploadPartialTrustSample / visualbasic / imagecustomcontentstate.vb
blobc005744cd97511b4e6b396a4581588a46a9b74de
1 Imports System
2 Imports System.Windows.Media
3 Imports System.Windows.Navigation
5 <Serializable()> _
6 Public Class ImageCustomContentState
7 Inherits CustomContentState
9 Public Sub New(ByVal imageSource As ImageSource, ByVal filename As String)
10 Me.imageSource = imageSource
11 Me.filename = filename
12 End Sub
14 Public Overrides Sub Replay(ByVal navigationService As NavigationService, ByVal mode As NavigationMode)
15 Dim homePage As HomePage = DirectCast(navigationService.Content, HomePage)
16 homePage.viewImage.Source = Me.imageSource
17 homePage.nameLabel.Content = Me.filename
18 End Sub
20 Public Overrides ReadOnly Property JournalEntryName() As String
21 Get
22 Return Me.filename
23 End Get
24 End Property
26 Private filename As String
27 Private imageSource As ImageSource
29 End Class