Advertisement
theblueeyz

WPF Data Binding WebBrowser - Usage

Oct 31st, 2011
2,048
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.34 KB | None | 0 0
  1.                     <Grid>
  2.                         <Grid.RowDefinitions>
  3.                             <RowDefinition Height="auto"/>
  4.                             <RowDefinition Height="*"/>
  5.                         </Grid.RowDefinitions>
  6.                        
  7.                         <!--<Label Content="The browser area" FontSize="14" FontWeight="Bold" Padding="2" FontFamily="Segoe WP" />-->
  8.                         <StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Stretch">
  9.                             <Button Content="&lt;-" Padding="10" Command="BrowseBack" CommandTarget="{Binding ElementName=TestWebBrowser}" />
  10.                             <Button Content="-&gt;" Padding="10" Command="BrowseForward" CommandTarget="{Binding ElementName=TestWebBrowser}" />
  11.                             <Button Content="--@--" Padding="10" Command="Refresh" CommandTarget="{Binding ElementName=TestWebBrowser}" />
  12.                             <TextBox Text="{Binding ElementName=TestWebBrowser, Path=BindableSource}" HorizontalAlignment="Left"  HorizontalContentAlignment="Stretch"/>
  13.                         </StackPanel>
  14.                        
  15.                         <local:BindableWebBrowser Grid.Row="1" x:Name="TestWebBrowser" BindableSource="{Binding YourUrl}">
  16.                         </local:BindableWebBrowser>
  17.                     </Grid>
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement