main.xaml
/ Here is the list section
<Grid x:Name="LayoutRoot" Background="Transparent">
<Grid.RowDefinitions>
<RowDefinition Height="199"/>
<RowDefinition Height="569*"/>
</Grid.RowDefinitions>
<!--TitlePanel contains the name of the application and page title-->
<StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
<TextBlock x:Name="PageTitle" Text="Interview Prep" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
</StackPanel>
<!--ContentPanel contains ListBox and ListBox ItemTemplate. Place additional content here-->
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0" Height="569" VerticalAlignment="Bottom">
<ListBox Name="lb1" FontSize="46" Margin="-1,32,1,3">
<TextBlock>
Cars <LineBreak/>
</TextBlock>
<TextBlock>
Trucks<LineBreak/>
</TextBlock>
<TextBlock>
Planes<LineBreak/>
</TextBlock>
</ListBox>
</Grid>
</Grid>
</phone:PhoneApplicationPage>
/here is the vb part
Partial Public Class MainPage
Inherits PhoneApplicationPage
Public Sub New()
InitializeComponent()
DataContext = App.ViewModel
End Sub
Private Sub MainListBox_Selectionchanged(ByVal sender As Object, ByVal e As SelectionchangedEventArgs)
End Sub
Private Sub MainPage_Loaded(ByVal sender As Object, ByVal e As RoutedEventArgs) Handles Me.Loaded
If Not App.ViewModel.IsDataLoaded Then
App.ViewModel.LoadData()
End If
End Sub
End Class
I have no clue where to go from here as I am teaching myself as best I can. Thanks

New Topic/Question
Reply



MultiQuote





|