English 中文(简体)
wp7 的完整屏幕网络浏览器控制
原标题:Full screen web browser control for wp7

窗口电话 7, 我写了一个隐藏文本框和应用程序栏的代码 。 在隐藏这些内容后, 我需要网络浏览器控制进行伸展, 并将其作为一个完整的屏幕网络浏览器。 发生了一些奇怪的事情。 如果我没有在 UrlTextBox 中输入任何输入任何内容, 如果我触摸 Web 浏览器控制( 目前是空白的), 网络浏览器控制会延伸至整个屏幕( 参见图像 1), 但如果我将一些 URL 输入到 UrlTextBox ( 即浏览到该 URL) 中, 并且如果我触动 Web 浏览器控制( 见图 2), 它不会扩展。 以下的图像可以给你们一些想法 。

图1-图1-

""https://i.sstatic.net/prO6g.png" alt="此处输入图像描述"/ >

图像2-

""https://i.sstatic.net/q3Y4u.png" alt="此处输入图像描述"/ >

以下代码用于隐藏上述内容:

  private void browsers_Focus(object sender, RoutedEventArgs e) 
  { 
  UrlTextBox.Visibility = Visibility.Collapsed; 
  Back.Visibility = Visibility.Collapsed; 
  Forward.Visibility = Visibility.Collapsed; 
  } 

我的... 共产主义专页...

<Grid x:Name="LayoutRoot"> 
<Grid.RowDefinitions> 
    <RowDefinition Height="Auto" /> 
    <RowDefinition Height="*" /> 
</Grid.RowDefinitions> 
<TextBox x:Name="UrlTextBox" Background="White" InputScope="URL" 
     KeyDown="UrlTextBox_KeyDown" Margin="0,0,98,0" GotFocus="UrlTextBox_GotFocus" LostFocus="UrlTextBox_LostFocus" KeyUp="UrlTextBox_KeyUp"/> 
<Grid x:Name="BrowserHost"  
  Grid.Row="1" GotFocus="BrowserHost_GotFocus"> 
</Grid> 

What i need is "If the user touches the browser control, then the browser control should stretch to full screen". Can anybody help me with this? Thanks in advance for your hard word!

最佳回答

你试过《银灯工具箱》里的 手势听家吗?

问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签