○実現したいこと
・WebBrowserにイントラにある画像を貼り付け閲覧。セキュリティー上、印刷をさせたくない。
そこで、透明のグリッドをWebBrowserの前面にレイアウトして、印刷できないようにしようとしました。
下記、XAMLを実行したところ、WebBrowserが前面になってしまいます。
(デザイナ上は、Gridが前面)
==========================================================
<Grid x:Name="grdLayoutRoot" Background="White" Loaded="LayoutRoot_Loaded">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="75" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="70" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="25" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<sdk:Label Content="任意の文字列" Margin="0,0,7,0" />
<Button Content="印刷" Grid.Column="2" x:Name="btn印刷" Click="btn印刷_Click" />
<TextBlock Grid.Column="1" x:Name="txt任意文字列" Text="111" />
<WebBrowser Grid.ColumnSpan="3" Grid.Row="1"
x:Name="webPDF"
Source="http://~.pdf"
Loaded="webPDF_Loaded"/>
<Grid Background="Yellow" Grid.ColumnSpan="3" Grid.Row="1"/>
</Grid>