Get Started with Visual Basic Development for Windows Phone 7: Listing 2.

XAML for a Simple Web Browser in MainPage.xaml

<controls:PivotItem Header="Web">
    <Grid Name="ContentPanel" Grid.Row="1">
        <TextBox HorizontalAlignment="Stretch" Margin="0,0,73,0" Name="txtURL" 
                 Text="http://www.visualstudiomagazine.com" VerticalAlignment="Top" Width="383" />
        <Button Content="Go" HorizontalAlignment="Right" Name="btnGo" VerticalAlignment="Top"/>
        <phone:WebBrowser HorizontalAlignment="Stretch" Margin="0,85,0,0" Name="webBrowser1" 
                          VerticalAlignment="Stretch" />
    </Grid>
</controls:PivotItem>

About the Author

Joe Kunk is a Microsoft MVP in Visual Basic, three-time president of the Greater Lansing User Group for .NET, and developer for Dart Container Corporation of Mason, Michigan. He's been developing software for over 30 years and has worked in the education, government, financial and manufacturing industries. Kunk's co-authored the book "Professional DevExpress ASP.NET Controls" (Wrox Programmer to Programmer, 2009). He can be reached via email at [email protected].

comments powered by Disqus

Featured

Subscribe on YouTube