0
WPF瓷砖背景我有这样与PNG图像和纯色
<Viewbox Grid.Row="1">
<controls:Tile Name="tileInvoice" Click="tileInvoice_Click" VerticalAlignment="Stretch" ToolTip="{x:Static resx:omniLang.Invoice}">
<controls:Tile.Background>
<ImageBrush ImageSource="Resources/invoice.png" Stretch="Uniform"/>
</controls:Tile.Background>
<TextBlock Name="headerInvoice" Text="{x:Static resx:omniLang.Invoice}" FontSize="22" Foreground="Black" FontWeight="Bold" VerticalAlignment="Center" Margin="0,100,0,0" />
</controls:Tile>
</Viewbox>
我喜欢使用纯色背景,仍然使用它png图片代码。我已经超出了这个想法。我应该使用VisualBrush来实现吗?
非常类似的问题... http://stackoverflow.com/a/14085305/ 1706610 – FodderZone