windows phone 7 errors
http://i.stack.imgur.com/ZxpaP.png


http://i.stack.imgur.com/na20Z.png

I have no idea why i am getting these errors.Please check the links for images of the errors.I have converted the code from c# to Vb.net using many converters.All of them gives the same conversion.


  

Code :-

    Imports System.Windows
    Imports System.Windows.Input
    Imports System.Windows.Navigation
    Imports Microsoft.Phone.Controls
    Imports Tally.WindowsPhoneApp ' For the Setting class
    
    
    
    Namespace Tally
        Partial Public Class MainPage
            Inherits PhoneApplicationPage
            Private count As Integer = 0
            ' Remember what the user typed, for future app activations or launches:
            Private savedCount As New Setting(Of Integer)("SavedCount", 0)
    
            Public Sub New()
                InitializeComponent()
            End Sub
    
            ' Handle a tap anywhere on the page (other than the Button)
            Protected Overrides Sub OnMouseLeftButtonDown(ByVal e As MouseButtonEventArgs)
                MyBase.OnMouseLeftButtonDown(e)
                Me.count += 1
                Me.CountTextBlock.Text = Me.count.ToString("N0")
            End Sub
    
            ' Handle a tap on the button
            Private Sub ResetButton_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
                Me.count = 0
                Me.CountTextBlock.Text = Me.count.ToString("N0")
            End Sub
    
            Protected Overrides Sub OnNavigatedFrom(ByVal e As NavigationEventArgs)
                MyBase.OnNavigatedFrom(e)
                ' Persist state when leaving for any reason (Deactivated or Closing):
                Me.savedCount.Value = Me.count
            End Sub
    
            Protected Overrides Sub OnNavigatedTo(ByVal e As NavigationEventArgs)
                MyBase.OnNavigatedTo(e)
                ' Restore persisted state:
                Me.count = Me.savedCount.Value
                Me.CountTextBlock.Text = Me.count.ToString("N0")
            End Sub
        End Class
    End Namespace


windows phone 7 errors
===

http://i.stack.imgur.com/ZxpaP.png


http://i.stack.imgur.com/na20Z.png

I have no idea why i am getting these errors.Please check the links for images of the errors.I have converted the code from c# to Vb.net using many converters.All of them gives the same conversion.


  

Code :-

    Imports System.Windows
    Imports System.Windows.Input
    Imports System.Windows.Navigation
    Imports Microsoft.Phone.Controls
    Imports Tally.WindowsPhoneApp ' For the Setting class
    
    
    
    Namespace Tally
        Partial Public Class MainPage
            Inherits PhoneApplicationPage
            Private count As Integer = 0
            ' Remember what the user typed, for future app activations or launches:
            Private savedCount As New Setting(Of Integer)("SavedCount", 0)
    
            Public Sub New()
                InitializeComponent()
            End Sub
    
            ' Handle a tap anywhere on the page (other than the Button)
            Protected Overrides Sub OnMouseLeftButtonDown(ByVal e As MouseButtonEventArgs)
                MyBase.OnMouseLeftButtonDown(e)
                Me.count += 1
                Me.CountTextBlock.Text = Me.count.ToString("N0")
            End Sub
    
            ' Handle a tap on the button
            Private Sub ResetButton_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
                Me.count = 0
                Me.CountTextBlock.Text = Me.count.ToString("N0")
            End Sub
    
            Protected Overrides Sub OnNavigatedFrom(ByVal e As NavigationEventArgs)
                MyBase.OnNavigatedFrom(e)
                ' Persist state when leaving for any reason (Deactivated or Closing):
                Me.savedCount.Value = Me.count
            End Sub
    
            Protected Overrides Sub OnNavigatedTo(ByVal e As NavigationEventArgs)
                MyBase.OnNavigatedTo(e)
                ' Restore persisted state:
                Me.count = Me.savedCount.Value
                Me.CountTextBlock.Text = Me.count.ToString("N0")
            End Sub
        End Class
    End Namespace

