我对网格布局的背景图像有一个奇怪的问题。由于某种原因,ListPicker 没有完全覆盖图像。相反,应用了一些不透明度......(查看图片中的齿轮图标)
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
<Grid>
<Grid.Background>
<ImageBrush
ImageSource="/BrewingApp;component/Images/icon_gears_big.png"
AlignmentX="Right"
AlignmentY="Bottom"
Stretch="None"
Opacity="0.5" />
</Grid.Background>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
...
<StackPanel
Grid.Row="1"
Margin="0,12,0,0">
<TextBlock Text="More Stuff :-)"></TextBlock>
<Rectangle
Grid.Row="1"
HorizontalAlignment="Stretch"
VerticalAlignment="Top"
Height="1"
Stroke="Red"
StrokeThickness="1" >
</Rectangle>
<toolkit:ListPicker
Header="Hop Formula"
ItemsSource="{Binding HopFormulaList}"
SelectedItem="{Binding HopFormulaSelection, Mode=TwoWay}"
HorizontalAlignment="Stretch" OpacityMask="Blue" />
</StackPanel>
</Grid>
谢谢!