<Window x:Class="_4_WPF资源_1资源集合.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:_4_WPF资源_1资源集合"
        mc:Ignorable="d"
      Icon="public/003540AH4M72.jpg"  Title="_4_WPF资源_1资源集合" Height="450" Width="800">
    <Window.Resources>
        <ImageBrush x:Key="TileBrush" TileMode="Tile" ViewportUnits="Absolute" Viewport="0 0 32 32"
                    ImageSource="public/003540AH4M72.jpg" Opacity="0.3" />
    </Window.Resources>
    <StackPanel Margin="10">
        <Button Margin="5" Padding="15 5" Background="{StaticResource TileBrush}">
            StaticResource TileBrush
        </Button>
        
        <Button Margin="5" Padding="15 5" Background="{DynamicResource TileBrush}">
            DynamicResource TileBrush
        </Button>
    </StackPanel>
</Window>
