如何将半透明度设置为背景,而不是为wp8设置前景?

ama*_*kes 1 .net c# xaml compact-framework windows-phone-8

我正在创建自定义加载消息,我想将背景设置为仅半透明.我遇到的问题是整个stackpanel被设置为半透明,包括背景和前景.如何才能使背景半透明并使前景保持原样?下面是我的xaml代码.

        <StackPanel Grid.Row="0" x:Name="spLoading" HorizontalAlignment="Center" VerticalAlignment="Center" Background="Transparent">
            <Border Margin="5" Padding="5" BorderThickness="1" BorderBrush="Black" Background="Black" Opacity=".1" CornerRadius="10">
                <TextBlock x:Name="txtLoading" Foreground="White" Text="loading . . ." HorizontalAlignment="Center" TextAlignment="Center" FontSize="30" FontWeight="Bold" Padding="5" />
            </Border>                
        </StackPanel>
Run Code Online (Sandbox Code Playgroud)

Aks*_*ain 5

这将完成所需.

<Border Margin="5" Padding="5" BorderThickness="1" BorderBrush="Black" CornerRadius="10">
            <Border.Background>
                 <SolidColorBrush Color="Black" Opacity="0.1" />
            </Border.Background>
            <TextBlock />
</Border> 
Run Code Online (Sandbox Code Playgroud)