<Page x:Class="WpfInteropShortcomings.Opacity"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Opacity"
    xmlns:wfi="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration" 
    xmlns:wf="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms" 
    VerticalAlignment="Top" Width="350" Height="350"
    >
  <Page.Background>
    <DrawingBrush ViewportUnits="Absolute" Viewport="0,0,30,30" TileMode="Tile">
      <DrawingBrush.Drawing>
        <GeometryDrawing Brush="Black">
          <GeometryDrawing.Geometry>
            <GeometryGroup>
              <RectangleGeometry Rect="1,0,1,1" />
              <RectangleGeometry Rect="0,1,1,1" />
            </GeometryGroup>
          </GeometryDrawing.Geometry>
        </GeometryDrawing>
      </DrawingBrush.Drawing>
    </DrawingBrush>
  </Page.Background>
    <Grid Margin="2" Opacity="0.8">
      <Grid.ColumnDefinitions>
        <ColumnDefinition Width="*" />
        <ColumnDefinition Width="*" />
      </Grid.ColumnDefinitions>
      <Grid.RowDefinitions>
        <RowDefinition />
      </Grid.RowDefinitions>


      <Rectangle Grid.ColumnSpan="2">
        <Rectangle.Fill>
          <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
            <GradientStop Color="Gray" Offset="0" />
            <GradientStop Color="White" Offset="0.5" />
            <GradientStop Color="Gray" Offset="1" />
          </LinearGradientBrush>
        </Rectangle.Fill>
      </Rectangle>
      <TextBlock FontSize="80" VerticalAlignment="Center">
        WPF<LineBreak />
        WPF<LineBreak />
        WPF
      </TextBlock>


      <wfi:WindowsFormsHost FontSize="30" FontWeight="Bold"   Grid.Column="1" Margin="0,20,0,0" VerticalAlignment="Top" Height="82" Background="LightGray">
        <wf:Label TextAlign="MiddleCenter"  Text="Windows Forms" />
      </wfi:WindowsFormsHost>

      <wfi:WindowsFormsHost FontSize="30" FontWeight="Bold"   Grid.Column="1" Margin="0,128,0,0" VerticalAlignment="Top" Height="82" Background="LightGray">
        <wf:Label TextAlign="MiddleCenter"  Text="Windows Forms" />
      </wfi:WindowsFormsHost>
      <wfi:WindowsFormsHost FontSize="30" FontWeight="Bold"   Grid.Column="1" Margin="0,235,0,0" VerticalAlignment="Top" Height="82" Background="LightGray">
        <wf:Label TextAlign="MiddleCenter"  Text="Windows Forms" />
      </wfi:WindowsFormsHost>

    </Grid>
</Page>
