Exemplo n.º 1
0
 private void StatusBar_ContextMenu_Click(object sender, RoutedEventArgs e)
 {
     if (startusBar.Visibility == Visibility.Visible)
     {
         startusBar.Visibility = Visibility.Collapsed;
         OptionMenu.Visibility = Visibility.Collapsed;
         BrowserCore.GetInstance( ).wb.Margin = new Thickness(0, 37, 0, 0);
         HidestartusBar.Header = "显示状态栏";
     }
     else
     {
         startusBar.Visibility = Visibility.Visible;
         OptionMenu.Visibility = Visibility.Visible;
         BrowserCore.GetInstance( ).wb.Margin = new Thickness(0, 37, 0, 35);
         HidestartusBar.Header = "隐藏状态栏";
     }
 }
Exemplo n.º 2
0
 private void Window_Unloaded(object sender, RoutedEventArgs e)
 {
     BrowserCore.GetInstance( ).wb.Dispose( );
 }