<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"    
    Height="24"
    >
  <Grid Margin="4,0,4,8">
    <Grid.ColumnDefinitions>
      <ColumnDefinition Width="Auto"/>
      <ColumnDefinition Width="*"/>
    </Grid.ColumnDefinitions>
      
    <TextBlock Margin="0,0,8,0">Attenuation:</TextBlock>

    <Border Grid.Column="1" BorderBrush="Black" BorderThickness="1">
      <Grid>
        <Rectangle Name="meter" Grid.Column="1">
          <Rectangle.Fill>
            <LinearGradientBrush>
              <GradientStop Color="Yellow" Offset="0"/>
              <GradientStop Color="Red" Offset="1"/>
            </LinearGradientBrush>
          </Rectangle.Fill>
        </Rectangle>
        <Rectangle Name="mask" Fill="Gray" Width="50" HorizontalAlignment="Right"/>
      </Grid>
    </Border>
    
  </Grid>
</UserControl>

