<Window x:Class="WpfResursi.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:sys="clr-namespace:System;assembly=mscorlib"
        xmlns:local="clr-namespace:WpfResursi"
        mc:Ignorable="d"
        Title="MainWindow" Height="250" Width="300">
    <Window.Resources>
        <sys:String x:Key="strResurs">resurs</sys:String>
        <SolidColorBrush x:Key="colorBlue" Color="PowderBlue"/>
        </Window.Resources>
    <StackPanel>
        <TextBlock Text="{StaticResource strResurs}" FontSize="56" />
        <TextBlock>Ponovno koriscenje "<TextBlock Text="{StaticResource strResurs}" />" primera </TextBlock>
        <Button Padding="10" x:Name="StaticButton" Background="{StaticResource colorBlue}">
            Static
        </Button>
        <Button Padding="10" x:Name="DynamicButton" Background="{DynamicResource ButtonDynamicBackgroundColor}">
            Dynamic
        </Button>
    </StackPanel>
    </Window>
