我有一个WPF WebBrowser控件在一个窗口中。
我想要移除默认的窗口控件,所以我设置了AllowsTransparency="True"和WindowStyle="None"。
我想要移除默认的窗口控件,所以我设置了AllowsTransparency="True"和WindowStyle="None"。
<Window x:Class="InstallerToolkit.InteractiveDemosWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Height="870" Width="1110" WindowStyle="None" AllowsTransparency="True" WindowStartupLocation="CenterScreen">
<Grid>
<WebBrowser Name="WebBrowser" HorizontalAlignment="Left" Height="795" Margin="10,35,0,0" VerticalAlignment="Top" Width="1082" />
</Grid>
这导致我无法看到浏览器内容。如果我去掉AllowsTransparency="True",那么我就可以看到我的网页内容,但是现在我有了默认的控件,而我不想要。
我该怎么解决这个问题呢?
ResizeMode = NoResize
。我在电话上,我猜那就是属性; - trinaldi