1 Replies - 1342 Views - Last Post: 07 December 2012 - 10:42 AM Rate Topic: -----

#1 bawlsfreak  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 07-December 12

Trying to launch a pivot control screen

Posted 07 December 2012 - 10:21 AM

I think this is the right place as I'm using visual studio. I'm working on a windows phone app and I want to launch a pivot from when I click on of the items from the list. Example when I click on Cars from the list I want it to launch a new screen where I can scroll through pictures of cars.

 
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

Is This A Good Question/Topic? 0
  • +

Replies To: Trying to launch a pivot control screen

#2 tlhIn`toq  Icon User is offline

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5529
  • View blog
  • Posts: 11,846
  • Joined: 02-June 10

Re: Trying to launch a pivot control screen

Posted 07 December 2012 - 10:42 AM

View Postbawlsfreak, on 07 December 2012 - 11:21 AM, said:

I'm working on a windows phone app


In VB6? I seriously doubt it. Should this be moved to VB.NET?

Please read: This is not the VB.NET forum
Please read: Is learning VB6 now a complete waste of time?

View Postbawlsfreak, on 07 December 2012 - 11:21 AM, said:

I have no clue


View Postbawlsfreak, on 07 December 2012 - 11:21 AM, said:

I am teaching myself


Are you following a book for this, or just trying to teach yourself out of thin air?
There are so many courses available (many for free like this one) that it makes no sense to try to figure it out by banging on the keyboard and seeing if something works. Would you send your kid to a school where the teachers admitted they didn't know the material any better than the kids? No, of course not. So why do you think you're qualified to teach yourself material you don't know? Buy a book and/or find a course on-line.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1